Function at 0x1001d5f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10091014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x1007b82c
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.LdrGetProcedureAddress
push edi
call esi
push str.NtAllocateVirtualMemory
push edi
mov dword [ebp - 0x38], eax
call esi
push str.LdrLoadDll
push edi
mov dword [ebp - 0x30], eax
call esi
push str.RtlInitAnsiString
push edi
mov dword [ebp - 0x40], eax
call esi
push str.RtlAnsiStringToUnicodeString
push edi
mov dword [ebp - 0x34], eax
call esi
push str.RtlFreeUnicodeString
push edi
mov dword [ebp - 0x3c], eax
call esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
cmp esi, 0x40
jbe 0x1001d9d4
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x1001d9d4
mov ecx, dword [ebx + 0x3c]
lea eax, [ecx + 0xf8]
cmp esi, eax
jb 0x1001d9d4
add ecx, ebx
mov dword [ebp - 0x28], ecx
cmp dword [ecx], 0x4550
jne 0x1001d9d4
mov ax, word [ecx + 0x16]
mov edx, 0x2002
and ax, dx
cmp ax, dx
jne 0x1001d9d4
mov eax, 0xe0
cmp word [ecx + 0x14], ax
jne 0x1001d9d4
movzx edi, word [ecx + 6]
xor edx, edx
test edi, edi
jle 0x1001d6ed
add ecx, 0x108
mov eax, dword [ecx + 4]
add eax, dword [ecx]
cmp eax, esi
ja 0x1001d9d4
inc edx
add ecx, 0x28
cmp edx, edi
jl 0x1001d6d5
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
xor edx, edx
mov ecx, dword [ecx + 0x38]
mov dword [ebp - 0x2c], ecx
mov eax, dword [eax + 0x54]
dec eax
add eax, ecx
div ecx
mov esi, eax
imul esi, ecx
test edi, edi
jle 0x1001d744
mov edx, dword [ebp - 0x28]
mov ebx, ecx
add edx, 0x108
mov dword [ebp - 0x24], edx
mov ecx, dword [edx - 8]
lea eax, [ebx - 1]
cmp dword [edx], ecx
cmovg ecx, dword [edx]
add ecx, dword [edx - 4]
xor edx, edx
add eax, ecx
div ebx
mov edx, dword [ebp - 0x24]
imul eax, ebx
cmp esi, eax
cmovl esi, eax
add edx, 0x28
mov dword [ebp - 0x24], edx
sub edi, 1
jne 0x1001d717
mov ebx, dword [ebp - 0x20]
test esi, esi
je 0x1001d9d4
push 0x40
push 0x1000
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
call dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x1001d9d7
mov esi, dword [ebp - 0x28]
movzx eax, word [esi + 6]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x54]
lea esi, [eax + ecx*8]
xor ecx, ecx
test esi, esi
jle 0x1001d794
mov al, byte [ebx + ecx]
mov byte [ecx + edx], al
inc ecx
mov edx, dword [ebp - 0x1c]
cmp ecx, esi
jl 0x1001d786
mov eax, dword [ebp - 0x28]
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x20], ecx
cmp si, word [eax + 6]
jae 0x1001d7ed
lea esi, [eax + 0x108]
nop word [eax + eax]
mov eax, dword [esi - 4]
test eax, eax
je 0x1001d7db
cmp dword [esi], 0
je 0x1001d7db
xor ecx, ecx
lea edi, [eax + edx]
cmp dword [esi], ecx
jbe 0x1001d7d8
mov eax, dword [esi + 4]
add eax, ebx
mov al, byte [eax + ecx]
mov byte [ecx + edi], al
inc ecx
cmp ecx, dword [esi]
jb 0x1001d7c5
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
inc ecx
add esi, 0x28
mov dword [ebp - 0x20], ecx
movzx eax, word [eax + 6]
cmp ecx, eax
jl 0x1001d7b0
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebx + 0xa0]
test ecx, ecx
je 0x1001d886
cmp dword [ebx + 0xa4], 0
jbe 0x1001d886
mov eax, edx
lea edi, [ecx + edx]
sub eax, dword [ebx + 0x34]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x20], eax
lea eax, [edi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [edi]
add eax, ecx
je 0x1001d886
mov dword [ebp - 0x30], 0x3000
mov dword [ebp - 0x2c], 0xa000
lea ebx, [ecx - 8]
xor esi, esi
shr ebx, 1
test ebx, ebx
jle 0x1001d86f
nop
movzx eax, word [edi + esi*2 + 8]
mov ecx, eax
and ecx, 0xf000
cmp cx, word [ebp - 0x30]
je 0x1001d859
cmp cx, word [ebp - 0x2c]
jne 0x1001d86a
mov ecx, dword [ebp - 0x20]
and eax, 0xfff
add eax, edx
add eax, dword [edi]
add dword [eax], ecx
mov edx, dword [ebp - 0x1c]
inc esi
cmp esi, ebx
jl 0x1001d840
mov eax, dword [ebp - 0x24]
add edi, dword [eax]
mov ecx, dword [edi + 4]
lea eax, [edi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [edi]
add eax, ecx
jne 0x1001d833
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x1001d9d7
lea esi, [eax + edx]
mov eax, dword [esi]
mov dword [ebp - 0x2c], esi
test eax, eax
je 0x1001d98b
mov edi, dword [ebp - 0x34]
mov ecx, dword [esi + 0x10]
lea ebx, [eax + edx]
mov eax, dword [esi + 0xc]
add ecx, edx
add eax, edx
mov dword [ebp - 0x30], ecx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], 0
push eax
call edi
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
call dword [ebp - 0x40]
lea eax, [ebp - 0x18]
push eax
call dword [ebp - 0x44]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1001d9d4
xor esi, esi
cmp dword [ebx], esi
je 0x1001d972
mov eax, ebx
xor edi, edi
nop dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x24], 0
test eax, eax
jns 0x1001d922
movzx eax, ax
test eax, eax
je 0x1001d9d4
lea edx, [ebp - 0x24]
push edx
push eax
push 0
push ecx
jmp 0x1001d945
mov edx, dword [ebp - 0x1c]
add eax, 2
add eax, edx
je 0x1001d9d7
push eax
lea eax, [ebp - 0x10]
push eax
call dword [ebp - 0x34]
lea eax, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1001d9d4
mov ecx, dword [ebp - 0x30]
inc esi
mov dword [edi + ecx], eax
lea edi, [esi*4]
cmp dword [edi + ebx], 0
lea eax, [edi + ebx]
je 0x1001d96f
mov ecx, dword [ebp - 0x20]
jmp 0x1001d900
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
add esi, 0x14
mov dword [ebp - 0x2c], esi
mov eax, dword [esi]
test eax, eax
jne 0x1001d8a7
mov ebx, dword [ebp - 0x28]
cmp dword [ebp + 0x10], 0
mov dword [ebx + 0x34], edx
je 0x1001d9d4
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x28]
push ecx
push 1
push 0
add eax, ecx
call eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x10], 0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001a41e
mov esp, ebp
pop ebp
ret 0xc