Function at 0x40be90
Capabilities:
Enumerate processes
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x428cc2
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x43a14c]
xor eax, esp
mov dword [esp + 0x27c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43a14c]
xor eax, esp
push eax
lea eax, [esp + 0x294]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2a4]
mov ebp, dword [esp + 0x2a8]
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], edx
cmp dword [0x44120c], ebx
jne 0x40c280
mov eax, 1
mov dword [0x44120c], eax
mov dword [esp + 0x1c], ebx
test byte [0x441254], al
jne 0x40bf2d
or dword [0x441254], eax
push 0x1c
lea eax, [esp + 0x48]
push eax
push fcn.004095b0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [esp + 0x48]
mov dword [0x441250], edi
jmp 0x40bf33
mov edi, dword [0x441250]
push 0x430a0c
push 0x81
push edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x40bf75
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x40bf75
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40bf75
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x20], eax
push ebx
push 0xf
mov dword [esp + 0x30], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x60]
mov esi, eax
push ecx
push esi
mov dword [esp + 0x68], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40bfe3
lea edx, [esp + 0x60]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x40bfdc
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
nop
push str.winlogon.exe
lea eax, [esp + 0x88]
push eax
call edi
test eax, eax
je 0x40bfd4
lea ecx, [esp + 0x60]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40bfb0
jmp 0x40bfdc
mov edx, dword [esp + 0x68]
mov dword [esp + 0x28], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], ebx
je 0x40c280
cmp dword [esp + 0x1c], ebx
jbe 0x40c280
cmp dword [esp + 0x28], 4
jbe 0x40c280
mov eax, dword [0x44030c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44030c
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x29c], 0
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x64
or eax, ecx
jge 0x40c047
mov ecx, 0x64
lea eax, [esp + 0x24]
call fcn.004015c0
mov ebx, dword [esp + 0x24]
push 0x14
call fcn.00417ac0
add esp, 4
lea esi, [esp + 0x24]
call fcn.004039d0
mov edi, dword [esp + 0x2ac]
push ebx
lea esi, [edi + 4]
push esi
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x40c0a8
push esi
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x40c0a8
mov eax, dword [esp + 0x18]
push edi
push eax
lea ecx, [esi + 4]
push edi
push ecx
mov dword [esi], edi
call fcn.00418525
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [0x44030c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44030c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0
mov edx, ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2a0], 1
call fcn.00415d90
add esp, 4
mov esi, eax
mov edx, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x2a0], 2
call fcn.00415d90
add esp, 4
mov edi, eax
push 0
mov edx, ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x2a0], 3
call fcn.00415d90
add esp, 4
mov ebp, eax
mov edx, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x44]
mov byte [esp + 0x2a0], 4
call fcn.00415d90
add esp, 4
mov byte [esp + 0x29c], 5
mov ecx, dword [esi]
mov edx, dword [edi]
push ecx
mov ecx, dword [ebp]
push edx
mov edx, dword [eax]
push ecx
push edx
push str.__u__s__a__s__cmd__s__fmn__s
lea edi, [esp + 0x2c]
call fcn.004016c0
mov byte [esp + 0x2b0], 4
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c177
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x29c], 3
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c19f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x29c], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x29c], 1
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
cmp dword [esi - 4], 1
jle 0x40c20b
mov ecx, dword [esi - 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00401610
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
push esi
push 0x430a50
push 0
push eax
push ecx
push edx
call fcn.0040fc30
add esp, 0x18
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi - 0x10]
mov byte [esp + 0x29c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c259
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov dword [esp + 0x29c], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c280
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov ecx, dword [esp + 0x294]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.00418154
add esp, 0x28c
ret