Function at 0x404300
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x43e25c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x244], 0xffffffff
mov dword [ebp - 0x234], 0
push 0x228
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.0040fc50
add esp, 0xc
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4043a6
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
jne 0x40437f
mov dword [ebp - 0x264], 0x439570
jmp 0x404389
mov dword [ebp - 0x264], 0x439578
mov ecx, dword [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x264]
push edx
push str._TOKEN__Session
call fcn.00402370
add esp, 0xc
jmp 0x4043af
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x23c], eax
call fcn.00403830
mov dword [ebp - 0x26c], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
jne 0x4043ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._TOKEN__CreateToolhelp32Snapshot_Error:_d.
call fcn.00402530
add esp, 8
xor eax, eax
jmp 0x4046d4
mov dword [ebp - 0x234], 0x22c
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x404438
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._TOKEN__Process32First_Error:_d.
call fcn.00402530
add esp, 8
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4046d4
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4046c1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00408026
add esp, 8
test eax, eax
jne 0x4046bc
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4046a8
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x238], ecx
cmp dword [ebp - 0x238], 0
jne 0x4044a9
mov dword [ebp - 0x270], 0
jmp 0x404568
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x248]
add eax, 2
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x248]
mov dx, word [ecx]
mov word [ebp - 0x256], dx
add dword [ebp - 0x248], 2
cmp word [ebp - 0x256], 0
jne 0x4044c4
mov eax, dword [ebp - 0x248]
sub eax, dword [ebp - 0x288]
sar eax, 1
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp - 0x274]
add ecx, 1
mov dword [ebp - 0x240], ecx
cmp dword [ebp - 0x240], 0x3fffffff
jle 0x404520
mov dword [ebp - 0x25c], 0
jmp 0x40455c
mov eax, dword [ebp - 0x240]
shl eax, 1
call fcn.0041d730
mov dword [ebp - 0x27c], esp
mov edx, dword [ebp - 0x26c]
push edx
mov eax, dword [ebp - 0x240]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x27c]
push edx
call fcn.00403890
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x270]
push eax
push 0x439608
call fcn.004021b0
add esp, 0x10
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x23c]
jne 0x4046a6
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x254], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jne 0x4045c3
mov dword [ebp - 0x268], 0
jmp 0x404682
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x24c], ecx
mov edx, dword [ebp - 0x24c]
add edx, 2
mov dword [ebp - 0x284], edx
mov eax, dword [ebp - 0x24c]
mov cx, word [eax]
mov word [ebp - 0x24e], cx
add dword [ebp - 0x24c], 2
cmp word [ebp - 0x24e], 0
jne 0x4045de
mov edx, dword [ebp - 0x24c]
sub edx, dword [ebp - 0x284]
sar edx, 1
mov dword [ebp - 0x278], edx
mov eax, dword [ebp - 0x278]
add eax, 1
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0x3fffffff
jle 0x40463a
mov dword [ebp - 0x260], 0
jmp 0x404676
mov eax, dword [ebp - 0x240]
shl eax, 1
call fcn.0041d730
mov dword [ebp - 0x280], esp
mov ecx, dword [ebp - 0x26c]
push ecx
mov edx, dword [ebp - 0x240]
shl edx, 1
push edx
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x280]
push ecx
call fcn.00403890
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x268], edx
mov eax, dword [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x268]
push edx
push str._TOKEN_
call fcn.004021b0
add esp, 0x10
jmp 0x4046c1
jmp 0x4046bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._TOKEN__ProcessIdToSessionId_Error:_d.
call fcn.00402530
add esp, 8
jmp 0x404438
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x254]
lea esp, [ebp - 0x288]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406523
mov esp, ebp
pop ebp
ret