Function at 0x403400
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bd80
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x4ce4bc]
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
mov ecx, dword [0x4d2570]
mov ecx, dword [ecx + 0x10]
call fcn.004300e0
test eax, eax
je 0x4034d7
mov eax, dword [0x4d2570]
lea ecx, [ebp - 0x40]
push 0xc
push str.LocalService
mov esi, dword [eax + 0x18]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00404580
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.004439b0
mov edx, dword [ebp - 0x2c]
mov esi, eax
cmp edx, 8
jb 0x4034c6
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4034bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4034bc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049995e
add esp, 8
xor ecx, ecx
mov eax, 9
test esi, esi
cmovne eax, ecx
jmp 0x403795
xor esi, esi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x288], edi
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x284], ebx
push 7
xor eax, eax
mov dword [ebp - 0x28], ebx
push 0x4a982c
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00404580
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
mov dword [ebp - 0x274], eax
jb 0x403548
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x274], eax
test eax, eax
je 0x40363e
cmp word [eax], 0
je 0x40363e
push 0x228
lea eax, [ebp - 0x268]
mov dword [ebp - 0x26c], 0x22c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x270], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x270]
cmp eax, 0xffffffff
je 0x40363e
lea ecx, [ebp - 0x26c]
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x403632
mov esi, dword [ebp - 0x274]
lea eax, [ebp - 0x248]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40360a
mov eax, dword [ebp - 0x264]
cmp eax, dword [ebp - 0x278]
je 0x40360a
cmp edi, ebx
je 0x4035eb
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x288], edi
jmp 0x40360a
lea eax, [ebp - 0x264]
push eax
push edi
lea ecx, [ebp - 0x28c]
call fcn.00401e60
mov ebx, dword [ebp - 0x284]
mov edi, dword [ebp - 0x288]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x270]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4035b7
mov esi, dword [ebp - 0x28c]
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x27c], esi
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x278], ecx
cmp esi, edi
je 0x403699
sub edi, esi
lea ecx, [ebp - 0x34]
mov esi, edi
sar esi, 2
push esi
call fcn.00404520
push edi
push dword [ebp - 0x27c]
mov dword [ebp - 0x274], eax
lea ecx, [eax + esi*4]
push eax
mov dword [ebp - 0x270], ecx
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x270]
add esp, 0xc
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x278], ecx
mov esi, edx
cmp esi, ecx
je 0x4036e3
mov ebx, dword [ebp - 0x278]
push dword [esi]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4036ca
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebx
jne 0x4036a5
mov ebx, dword [ebp - 0x280]
mov ecx, dword [ebp - 0x270]
mov edx, dword [ebp - 0x274]
test edx, edx
je 0x403710
sub ecx, edx
mov eax, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x403706
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403783
push ecx
push edx
call fcn.0049995e
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x403746
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40373c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403783
push edx
push ecx
call fcn.0049995e
add esp, 8
mov ecx, dword [ebp - 0x27c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ecx, ecx
je 0x403793
sub ebx, ecx
mov eax, ecx
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x403789
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403789
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push ecx
call fcn.0049995e
add esp, 8
xor eax, eax
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.0049996c
mov esp, ebp
pop ebp
ret