Investigation of Linux.Mirai Trojan family
u97CXm
u97CXm
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
26<br />
26<br />
.text:0804B95F xor edx, edx<br />
.text:0804B961 jmp short loc_804B977<br />
.text:0804B963 ;<br />
-------------------------------------------------------------------------<br />
--<br />
.text:0804B963<br />
.text:0804B963 next_entry:<br />
command+4Aj<br />
.text:0804B963 xor eax, eax<br />
.text:0804B965 mov al, dl<br />
.text:0804B967 lea esi, ds:0[eax*8]<br />
; CODE XREF: run_-<br />
.text:0804B96E mov al, [esp+2Ch+local_saved_number]<br />
.text:0804B972 cmp [esi+ecx], al<br />
.text:0804B975 jz short handler_found<br />
.text:0804B977<br />
.text:0804B977 loc_804B977:<br />
command+31j<br />
.text:0804B977 inc edx<br />
.text:0804B978 cmp dl, bl<br />
.text:0804B97A jnz short next_entry<br />
; CODE XREF: run_-<br />
Then child processes are run:<br />
handler_found:<br />
pid_children = fork(); //parent<br />
if ( pid_children 0 )<br />
exit(0); //child dies, so parent returns to command execution<br />
if ( !pid_2){<br />
v6 = fork();<br />
if ( !v6 ){<br />
setsid();<br />
init_random();<br />
handlers.handlers[v7].func(target_count, targets, params_-<br />
count, params); // run command<br />
}<br />
exit(0);<br />
if ( v6 > 0 ){