Function at 0x4125b0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x4125c4
call fcn.00412400
mov ebx, dword [esp + 0x54]
mov esi, dword [ebx + 0x3c]
add esi, ebx
lea eax, [esi + 0x50]
push 0x40
mov dword [esp + 0x30], eax
mov eax, dword [eax]
push 0x1000
push eax
push 0
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esi + 0x54]
push ecx
mov ebp, eax
push ebx
push ebp
mov dword [esp + 0x1c], ebp
call fcn.00411e80
movzx edx, word [esi + 0x14]
mov eax, dword [esp + 0x20]
xor ecx, ecx
add esp, 0xc
lea esi, [esi + edx + 0x18]
mov dword [esp + 0x54], 0
cmp cx, word [eax + 6]
jae 0x41267a
add esi, 0x10
lea ecx, [ecx]
mov eax, dword [esi - 8]
mov ebp, dword [esi - 4]
add ebp, dword [esp + 0x10]
mov edx, dword [esi]
push eax
push ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
call fcn.00411e60
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 8
cmp eax, ecx
jl 0x41264c
mov eax, ecx
push eax
mov eax, dword [esi + 4]
add eax, ebx
push eax
push ebp
call fcn.00411e80
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x60]
movzx edx, word [ecx + 6]
inc eax
add esp, 0xc
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x54], eax
jl 0x412620
mov ebp, dword [esp + 0x10]
mov eax, ecx
mov ecx, dword [eax + 0xa4]
mov ebx, dword [eax + 0xa0]
mov esi, ebp
sub esi, dword [eax + 0x34]
add ebx, ebp
mov dword [esp + 0x1c], ecx
mov edx, ebx
test ecx, ecx
jle 0x4126dd
mov eax, dword [edx + 4]
sub eax, 8
shr eax, 1
lea ecx, [edx + 8]
test eax, eax
jle 0x4126cf
mov dword [esp + 0x54], eax
lea ebx, [ebx]
movzx eax, word [ecx]
test eax, 0xf000
je 0x4126c5
and eax, 0xfff
add eax, dword [edx]
add eax, ebp
add dword [eax], esi
add ecx, 2
sub dword [esp + 0x54], 1
jne 0x4126b0
mov edx, ecx
sub ecx, ebx
cmp ecx, dword [esp + 0x1c]
jl 0x412697
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x80]
mov eax, dword [ebx + ebp + 0xc]
add ebx, ebp
mov dword [esp + 0x18], ebx
test eax, eax
je 0x412949
jmp 0x4126fb
mov ebx, dword [esp + 0x18]
add ebp, eax
push ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push 0xc
mov dword [esp + 0x2c], esi
call fcn.0042bb84
xor ecx, ecx
add esp, 4
mov dword [eax + 8], esi
cmp dword [edi + 0x1c], ecx
mov dword [eax + 4], ecx
jne 0x41272c
mov dword [eax], ecx
mov dword [edi + 0x1c], eax
jmp 0x412737
mov edx, dword [edi + 0x20]
mov dword [eax], edx
mov edx, dword [edi + 0x20]
mov dword [edx + 4], eax
mov dword [edi + 0x20], eax
cmp dword [ebx + 4], ecx
jne 0x41274c
mov ebx, dword [ebx + 0x10]
add ebx, dword [esp + 0x10]
mov dword [esp + 0x54], ebx
jmp 0x412758
mov eax, dword [ebx]
add eax, dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov ebx, eax
cmp dword [ebx], ecx
je 0x41292f
mov eax, dword [ebx]
test eax, eax
jns 0x41277a
and eax, 0xffff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx], eax
jmp 0x41291f
mov ecx, dword [esp + 0x10]
lea ebx, [eax + ecx + 2]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [edi]
mov edx, dword [edx + 4]
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebp
mov ecx, edi
call edx
test eax, eax
je 0x412842
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0x40
push 0x1000
push 0x12
push 0
mov byte [esp + 0x4c], 0x58
mov byte [esp + 0x4d], 0x68
mov dword [esp + 0x4e], eax
mov byte [esp + 0x52], 0x68
mov dword [esp + 0x53], esi
mov byte [esp + 0x57], 0x50
mov byte [esp + 0x58], 0x68
mov dword [esp + 0x59], ecx
mov byte [esp + 0x5d], 0xc3
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0xc
mov esi, eax
call fcn.0042bb84
xor ecx, ecx
add esp, 4
mov dword [eax + 8], esi
cmp dword [edi + 8], ecx
mov dword [eax + 4], ecx
jne 0x41280c
mov dword [eax], ecx
mov dword [edi + 8], eax
jmp 0x412817
mov edx, dword [edi + 0xc]
mov dword [eax], edx
mov ecx, dword [edi + 0xc]
mov dword [ecx + 4], eax
push 0x12
lea edx, [esp + 0x40]
push edx
push esi
mov dword [edi + 0xc], eax
call fcn.00411e80
add esp, 0xc
push 0x12
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [esp + 0x54]
mov dword [eax], esi
jmp 0x412848
mov ecx, dword [esp + 0x54]
mov dword [ecx], esi
push 0
call fcn.0042bbbe
add esp, 4
test ebp, ebp
jne 0x412869
push 1
call fcn.0042bb84
add esp, 4
mov dword [esp + 0x30], eax
mov byte [eax], 0
jmp 0x412891
xor ecx, ecx
mov eax, ebp
cmp byte [ebp], cl
je 0x412879
inc eax
inc ecx
cmp byte [eax], 0
jne 0x412872
lea esi, [ecx + 1]
push esi
call fcn.0042bb84
push esi
push ebp
push eax
mov dword [esp + 0x40], eax
call fcn.00411e80
add esp, 0x10
push 0
call fcn.0042bbbe
add esp, 4
test ebx, ebx
jne 0x4128b3
push 1
call fcn.0042bb84
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
mov byte [esi], bl
jmp 0x4128e5
xor ecx, ecx
mov eax, ebx
cmp byte [ebx], cl
je 0x4128c7
jmp 0x4128c0
inc eax
inc ecx
cmp byte [eax], 0
jne 0x4128c0
lea ebp, [ecx + 1]
push ebp
call fcn.0042bb84
push ebp
mov esi, eax
push ebx
push esi
mov dword [esp + 0x44], esi
call fcn.00411e80
mov ebp, dword [esp + 0x34]
add esp, 0x10
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x30]
push eax
lea ecx, [edi + 0x14]
mov dword [esp + 0x3c], edx
call fcn.00412470
push esi
call fcn.0042bbbe
mov ecx, dword [esp + 0x34]
xor esi, esi
push ecx
mov dword [esp + 0x3c], esi
call fcn.0042bbbe
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x30]
add esp, 8
add ebx, 4
cmp dword [ebx], 0
mov dword [esp + 0x54], ebx
jne 0x412760
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
add eax, 0x14
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4126f7
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x28]
lea eax, [edx + ebp]
mov dword [edi + 0x10], eax
test eax, eax
je 0x412980
push 0
push 1
push ebp
call eax
mov eax, dword [edi + 0x10]
push 0
push 2
push ebp
call eax
mov dword [edi + 4], ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret 8