Function at 0x481760
Capabilities:
Create process on windows
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x634211
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ecx, ecx
jne 0x481799
xor eax, eax
jmp 0x481d49
push ecx
lea ecx, [ebp - 0x244]
call fcn.004178d0
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], 0
call fcn.00412120
mov esi, dword [ebp - 0x244]
xor edi, edi
movzx eax, word [esi]
test ax, ax
je 0x48184d
mov ecx, eax
nop dword [eax]
push ecx
call fcn.0061410a
add esp, 4
test eax, eax
je 0x4817e8
test edi, edi
mov eax, esi
cmovne eax, edi
mov edi, eax
jmp 0x4817ea
xor edi, edi
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x4817d0
test edi, edi
je 0x481847
mov eax, dword [ebp - 0x244]
sub edi, eax
sar edi, 1
js 0x481d6f
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x48182f
push edi
lea ecx, [ebp - 0x244]
call fcn.00401d50
mov eax, dword [ebp - 0x244]
cmp edi, dword [eax - 8]
jg 0x481d6f
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x244]
mov word [eax + edi*2], cx
mov esi, dword [ebp - 0x244]
movzx eax, word [esi]
push eax
call fcn.0061410a
add esp, 4
test eax, eax
je 0x481874
nop dword [eax]
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.0061410a
add esp, 4
test eax, eax
jne 0x481860
mov eax, dword [ebp - 0x244]
cmp esi, eax
je 0x481940
mov edi, dword [eax - 0xc]
sub esi, eax
sar esi, 1
test edi, edi
js 0x481d79
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x4818b4
push edi
lea ecx, [ebp - 0x244]
call fcn.00401d50
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax - 0xc]
lea ebx, [eax + esi*2]
mov edi, ecx
sub edi, esi
lea edx, [edi*2 + 2]
test edx, edx
je 0x48190f
test ebx, ebx
jne 0x4818e2
call fcn.00607092
mov dword [eax], 0x16
call fcn.00606fb9
lea eax, [ebx + 0x16]
jmp 0x481911
lea ecx, [ecx*2 + 2]
cmp ecx, edx
jae 0x481904
call fcn.00607092
mov dword [eax], 0x22
call fcn.00606fb9
mov eax, 0x22
jmp 0x481911
push edx
push ebx
push eax
call fcn.005fe5c0
add esp, 0xc
xor eax, eax
push eax
call fcn.00417760
add esp, 4
test edi, edi
js 0x481d6f
mov eax, dword [ebp - 0x244]
cmp edi, dword [eax - 8]
jg 0x481d6f
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x244]
mov word [eax + edi*2], cx
push 0x22c
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.005feb40
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
or edi, 0xffffffff
mov dword [ebp - 0x250], ebx
cmp ebx, edi
jne 0x48197c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x481d25
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4819ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x481d25
mov ecx, 1
call fcn.004802f0
nop word [eax + eax]
push dword [ebp - 0x238]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x24c], ebx
test ebx, ebx
je 0x481cf6
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x481d65
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x248], esi
mov byte [ebp - 4], 1
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x481a2e
push 0x400
lea ecx, [ebp - 0x248]
call fcn.00401d50
mov esi, dword [ebp - 0x248]
cmp dword [esi - 8], 0x400
jl 0x481d6f
push 0x400
xor eax, eax
mov dword [esi - 0xc], 0x400
push esi
push eax
push ebx
mov word [esi + 0x800], ax
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push dword [esi - 8]
push esi
call fcn.006071cc
add esp, 8
test eax, eax
js 0x481d6f
cmp eax, dword [esi - 8]
jg 0x481d6f
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x248]
call fcn.00412120
mov edi, dword [ebp - 0x248]
xor esi, esi
mov ebx, edi
movzx eax, word [edi]
test ax, ax
je 0x481b0b
mov ecx, eax
nop
push ecx
call fcn.0061410a
add esp, 4
test eax, eax
je 0x481ab8
test esi, esi
mov eax, ebx
cmovne eax, esi
mov esi, eax
jmp 0x481aba
xor esi, esi
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x481aa0
test esi, esi
je 0x481b0b
sub esi, edi
sar esi, 1
js 0x481d6f
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x481af9
push esi
lea ecx, [ebp - 0x248]
call fcn.00401d50
mov edi, dword [ebp - 0x248]
cmp esi, dword [edi - 8]
jg 0x481d6f
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
movzx eax, word [edi]
mov esi, edi
push eax
call fcn.0061410a
add esp, 4
test eax, eax
je 0x481bf1
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.0061410a
add esp, 4
test eax, eax
jne 0x481b21
cmp esi, edi
je 0x481bf1
mov edx, dword [edi - 0xc]
sub esi, edi
sar esi, 1
test edx, edx
js 0x481d6f
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x481b6f
push edx
lea ecx, [ebp - 0x248]
call fcn.00401d50
mov edi, dword [ebp - 0x248]
mov eax, dword [edi - 0xc]
lea edx, [edi + esi*2]
mov ebx, eax
sub ebx, esi
lea ecx, [ebx*2 + 2]
test ecx, ecx
je 0x481bcc
test edx, edx
jne 0x481b9f
call fcn.00607092
mov dword [eax], 0x16
call fcn.00606fb9
mov eax, 0x16
jmp 0x481bce
lea eax, [eax*2 + 2]
cmp eax, ecx
jae 0x481bc1
call fcn.00607092
mov dword [eax], 0x22
call fcn.00606fb9
mov eax, 0x22
jmp 0x481bce
push ecx
push edx
push edi
call fcn.005fe5c0
add esp, 0xc
xor eax, eax
push eax
call fcn.00417760
add esp, 4
test ebx, ebx
js 0x481d6f
cmp ebx, dword [edi - 8]
jg 0x481d6f
xor eax, eax
mov dword [edi - 0xc], ebx
mov word [edi + ebx*2], ax
push dword [ebp - 0x24c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x481d65
mov ecx, edi
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x481c36
test dx, dx
je 0x481c32
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x481c36
add ecx, 4
add eax, 4
test dx, dx
jne 0x481c10
xor eax, eax
jmp 0x481c3b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x481cda
push dword [ebp - 0x238]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x481c66
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
jmp 0x481cda
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x481d65
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24c]
push dword [ebp - 0x238]
push str._c_taskkill__f__PID___d
push eax
call fcn.00402970
mov esi, dword [ebp - 0x24c]
add esp, 0xc
push 0
push 0
push esi
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x481cda
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x481cf6
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x250]
lea eax, [ebp - 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4819c0
xor ecx, ecx
call fcn.004802f0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x481d47
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401f90
push 0x80070057
call fcn.00401f90
push 0x80070057
call fcn.00401f90
int3