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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffcc
mov dword [esp], edx
mov edi, eax
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
call fcn.0046184c
test al, al
jne 0x4618b4
push 0x461af8
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
jne 0x4618ab
mov eax, 0x461b10
call fcn.00433a8c
mov dword [esp + 4], ebx
jmp 0x461ae9
test edi, edi
je 0x461ae9
mov eax, edi
mov edx, eax
add edx, 0x3c
mov edx, dword [edx]
add edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
cmp dword [eax], 0x4550
jne 0x461ae9
push 0x40
push 0x3000
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
test esi, esi
je 0x461ae9
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x54]
mov edx, esi
mov eax, edi
call fcn.00403040
mov eax, dword [esp + 8]
lea ebx, [eax + 0x18]
mov eax, dword [esp + 8]
movzx eax, word [eax + 0x14]
add ebx, eax
mov eax, dword [esp + 8]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jb 0x46195e
inc eax
mov dword [esp + 0x30], eax
mov edx, 0x461b64
mov eax, ebx
call fcn.00409178
test eax, eax
jne 0x461942
mov dword [esp + 0xc], ebx
mov eax, dword [ebx + 0xc]
add eax, esi
mov edx, dword [ebx + 0x14]
add edx, edi
mov ecx, dword [ebx + 0x10]
xchg edx, eax
call fcn.00403040
add ebx, 0x28
dec dword [esp + 0x30]
jne 0x46192e
cmp dword [esp + 0xc], 0
je 0x461aca
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x14]
add eax, edi
xor ebx, ebx
jmp 0x4619d2
mov edx, 8
jmp 0x4619ba
add edi, edx
cmp word [edi], 0
je 0x4619b7
mov ecx, eax
add ecx, edx
movsx ecx, word [ecx]
add ecx, dword [eax]
sub ecx, 0x3000
mov dword [esp + 0x18], ecx
mov ecx, esi
add ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
mov edi, dword [esp + 8]
sub ecx, dword [edi + 0x34]
add ecx, esi
mov edi, dword [esp + 0x1c]
mov dword [edi], ecx
add edx, 2
mov edi, eax
mov ecx, edi
add ecx, 4
cmp edx, dword [ecx]
jb 0x46197d
mov ecx, eax
add ecx, 4
mov ecx, dword [ecx]
add ecx, eax
mov eax, ecx
add ebx, edx
mov edx, dword [esp + 0xc]
cmp ebx, dword [edx + 0x10]
jb 0x461976
mov eax, dword [esp + 8]
cmp dword [eax + 0x80], 0
je 0x461aca
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x80]
add eax, esi
mov dword [esp + 0x10], eax
jmp 0x461abd
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
add eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0x10]
add ebp, esi
mov eax, dword [esp + 0x20]
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0
jne 0x461a45
mov eax, dword [esp + 0x20]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0
je 0x461ae9
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
add edi, esi
jmp 0x461aad
mov byte [esp + 0x2c], 0
mov ebx, dword [edi]
mov eax, ebx
and eax, 0x7fffffff
cmp ebx, eax
je 0x461a6c
mov byte [esp + 0x2c], 1
and ebx, 0x7fffffff
cmp byte [esp + 0x2c], 0
jne 0x461a91
add ebx, esi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x14]
add eax, 2
push eax
mov eax, dword [esp + 0x28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x28], eax
jmp 0x461aa0
push ebx
mov eax, dword [esp + 0x28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [ebp], eax
add ebp, 4
add edi, 4
cmp dword [edi], 0
jne 0x461a4f
mov eax, dword [esp + 0x10]
add eax, 0x14
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
jne 0x461a01
mov eax, dword [esp + 8]
mov ebx, dword [eax + 0x28]
mov edi, esi
add ebx, edi
push 0
push 1
push edi
call ebx
test al, al
je 0x461ae9
mov eax, dword [esp]
mov dword [eax], ebx
mov dword [esp + 4], esi
mov eax, dword [esp + 4]
add esp, 0x34
pop ebp
pop edi
pop esi
pop ebx
ret