Function at 0x10001830
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013f00
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10001640
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x10001a58
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x10001a58
mov esi, dword [ebx + 0x3c]
add esi, ebx
mov dword [ebp - 0x24], esi
cmp dword [esi], 0x4550
jne 0x10001a58
test esi, esi
je 0x10001a58
push dword [esi + 0x50]
push ebx
push str.ImageBase:_0x_p_____d_n
call fcn.100010c0
add esp, 0xc
push 0x40
push 0x3000
push dword [esi + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x10001a58
cmp dword [esi + 0x84], 0
mov ecx, esi
mov dword [ebp - 0x10], ecx
je 0x1000196d
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x1000196d
cmp dword [eax + ebx + 0xc], 0
lea edi, [eax + ebx]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
je 0x1000196d
mov dword [ebp - 0x10], esi
nop word [eax + eax]
mov eax, dword [edi + 0xc]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x1000195b
mov esi, dword [edi]
mov ecx, dword [ebp - 0x14]
mov edi, dword [edi + 0x10]
add esi, ecx
add edi, ecx
mov eax, dword [esi]
test eax, eax
je 0x10001958
jns 0x10001933
movzx eax, word [esi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x10001946
mov eax, dword [esi]
add ecx, 2
add eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001948
mov dword [edi], eax
mov eax, dword [esi + 4]
add esi, 4
mov ecx, dword [ebp - 0x14]
add edi, 4
test eax, eax
jne 0x10001924
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
add edi, 0x14
mov dword [ebp - 0x18], edi
cmp dword [edi + 0xc], 0
jne 0x10001900
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov edi, dword [ecx + 0xa0]
sub eax, dword [ecx + 0x34]
add edi, ebx
cmp dword [ecx + 0xa4], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
jbe 0x10001a17
mov ecx, dword [edi + 4]
lea edx, [edi + 8]
xor esi, esi
lea eax, [ecx - 8]
test eax, 0xfffffffe
jbe 0x100019fe
movzx eax, word [edx]
mov ecx, eax
shr ecx, 0xc
dec ecx
cmp ecx, 9
ja case.0x100019b9.4
movzx ecx, byte [ecx + 0x10001a80]
jmp dword [ecx*4 + 0x10001a6c]
mov ecx, dword [ebp - 0x18]
shr ecx, 0x10
jmp 0x100019e4
mov ecx, dword [ebp - 0x18]
movzx ecx, cx
jmp 0x100019e4
mov ecx, dword [ebp - 0x10]
mov ebx, 0x8664
cmp word [ecx + 4], bx
mov ebx, dword [ebp - 0x14]
jne case.0x100019b9.4
mov ecx, dword [ebp - 0x18]
and eax, 0xfff
add eax, dword [edi]
add dword [eax + ebx], ecx
mov ecx, dword [edi + 4]
inc esi
add edx, 2
lea eax, [ecx - 8]
shr eax, 1
cmp esi, eax
jb 0x100019a4
mov eax, dword [ebp - 0x1c]
mov edi, edx
add eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
cmp eax, dword [ecx + 0xa4]
jb 0x10001992
mov eax, dword [ebp - 0x24]
push dword [eax + 0x50]
push ebx
mov ebx, dword [ebp - 0x20]
push ebx
call fcn.10004680
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0x28]
add esi, ebx
push esi
push str.EntryPoint_at_0x_p_n
call fcn.100010c0
add esp, 0x14
push 0
push 1
push ebx
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret