Function at 0x475e88
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, 0xffffffc4
mov dword [esp], edx
mov ebx, eax
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0x10], eax
call fcn.00475e64
test al, al
jne 0x475ecc
push 0x476158
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
jne 0x475ec3
mov eax, 0x476170
call fcn.00430df8
mov dword [esp + 4], ebx
jmp 0x476149
test ebx, ebx
je 0x476149
mov eax, ebx
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 0x476149
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 dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
je 0x476149
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x54]
mov edx, dword [esp + 0x14]
mov eax, ebx
call fcn.00402c58
mov eax, dword [esp + 8]
add eax, 0x18
mov edx, dword [esp + 8]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
movzx esi, word [eax + 6]
dec esi
test esi, esi
jb 0x475fa5
inc esi
mov edx, 0x4761c4
mov eax, dword [esp + 0xc]
call fcn.00408ed0
test eax, eax
jne 0x475f67
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
add eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x14]
add eax, ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
call fcn.00402c58
mov eax, dword [esp + 0xc]
add eax, 0x28
mov dword [esp + 0xc], eax
dec esi
jne 0x475f4d
cmp dword [esp + 0x10], 0
je 0x476124
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
add eax, ebx
mov dword [esp + 0x18], eax
xor esi, esi
jmp 0x476023
mov eax, 8
jmp 0x476003
add edx, eax
mov bx, word [edx]
test bx, bx
je 0x476000
movsx ecx, bx
mov edx, dword [esp + 0x18]
add ecx, dword [edx]
sub ecx, 0x3000
add ecx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
mov ecx, dword [esp + 8]
sub edx, dword [ecx + 0x34]
add edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [ecx], edx
add eax, 2
mov edx, dword [esp + 0x18]
mov ecx, edx
add ecx, 4
cmp eax, dword [ecx]
jb 0x475fc8
mov edx, dword [esp + 0x18]
add edx, 4
mov edx, dword [edx]
add edx, dword [esp + 0x18]
mov dword [esp + 0x18], edx
add esi, eax
mov eax, dword [esp + 0x10]
cmp esi, dword [eax + 0x10]
jb 0x475fc1
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x476124
add eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jmp 0x476117
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
mov ebp, dword [esp + 0x14]
add eax, ebp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
add eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov edi, eax
test edi, edi
jne 0x47608d
mov eax, dword [esp + 0x2c]
push eax
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
test edi, edi
je 0x476149
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
add eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x476103
xor ebx, ebx
mov eax, dword [esp + 0x20]
mov esi, dword [eax]
mov eax, esi
and eax, 0x7fffffff
cmp esi, eax
je 0x4760b8
mov bl, 1
and esi, 0x7fffffff
test bl, bl
jne 0x4760d8
add esi, dword [esp + 0x14]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x24]
add eax, 2
push eax
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x34], eax
jmp 0x4760e3
push esi
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [eax], edx
mov eax, dword [esp + 0x30]
add eax, 4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
add eax, 4
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
cmp dword [eax], 0
jne 0x47609d
mov eax, dword [esp + 0x1c]
add eax, 0x14
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp dword [eax], 0
jne 0x47604b
mov eax, dword [esp + 8]
mov ebx, dword [eax + 0x28]
mov esi, dword [esp + 0x14]
add ebx, esi
push 0
push 1
push esi
call ebx
test al, al
je 0x476149
mov eax, dword [esp]
mov dword [eax], ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add esp, 0x3c
pop ebp
pop edi
pop esi
pop ebx
ret