Function at 0x100017f4
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100030b8
push 0x10002a20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff74
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
cmp dword [ebp + 8], 0
jne 0x1000182a
xor eax, eax
jmp 0x10001d65
mov eax, dword [ebp + 8]
push eax
call fcn.10001d78
test eax, eax
jne 0x1000184b
push str.PE_check_is_error
call fcn.10001000
add esp, 4
xor eax, eax
jmp 0x10001d65
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], edx
push 0x40
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
jne 0x100018a1
push str.IsbadReadPtr_pdosHeader_error
call fcn.10001000
add esp, 4
mov dword [ebp - 0x80], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x80]
jmp 0x10001d65
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x74], edx
push 0xf8
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
jne 0x100018ea
push str.IsbadreadPtr_NtHeader_error
call fcn.10001000
add esp, 4
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x84]
jmp 0x10001d65
mov ecx, dword [ebp - 0x74]
xor edx, edx
mov dx, word [ecx + 0x14]
cmp edx, 0xe0
jne 0x1000190c
mov eax, dword [ebp - 0x74]
xor ecx, ecx
mov cx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x10001953
push 0x10b
mov edx, dword [ebp - 0x74]
xor eax, eax
mov ax, word [edx + 0x18]
push eax
push 0xe0
mov ecx, dword [ebp - 0x74]
xor edx, edx
mov dx, word [ecx + 0x14]
push edx
push str._x__x__x__x
call fcn.10001000
add esp, 0x14
mov dword [ebp - 0x88], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x88]
jmp 0x10001d65
mov eax, dword [ebp - 0x74]
xor ecx, ecx
mov cx, word [eax + 6]
cmp ecx, 1
jge 0x1000198a
push str.This_is_a_special_problem
call fcn.10001000
add esp, 4
mov dword [ebp - 0x8c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x8c]
jmp 0x10001d65
push str.PEHeader_check_over_n
call fcn.10001000
add esp, 4
mov edx, dword [ebp - 0x74]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 0x74]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x28], 0x28
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x74]
xor edx, edx
mov dx, word [ecx + 6]
mov ecx, dword [ebp - 0x28]
imul ecx, edx
add eax, ecx
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x68], edx
push str.Section::::
call fcn.10001000
add esp, 4
mov word [ebp - 0x64], 0
jmp 0x100019f2
mov ax, word [ebp - 0x64]
add ax, 1
mov word [ebp - 0x64], ax
mov ecx, dword [ebp - 0x64]
and ecx, 0xffff
mov edx, dword [ebp - 0x74]
xor eax, eax
mov ax, word [edx + 6]
cmp ecx, eax
jge 0x10001a8c
mov ecx, dword [ebp - 0x64]
and ecx, 0xffff
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x64]
and edx, 0xffff
imul edx, edx, 0x28
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + ecx + 0xc]
mov eax, dword [ebp - 0x34]
add ecx, dword [eax + edx + 0x10]
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x7c]
jae 0x10001a43
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x64]
and eax, 0xffff
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + eax + 0x10]
push edx
mov eax, dword [ebp - 0x64]
and eax, 0xffff
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + eax + 0xc]
push edx
mov eax, dword [ebp - 0x64]
and eax, 0xffff
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x34]
add ecx, eax
push ecx
push str._s__x__d
call fcn.10001000
add esp, 0x10
jmp 0x100019e6
push str.DataDirectory::::
call fcn.10001000
add esp, 4
mov word [ebp - 0x64], 0
jmp 0x10001aad
mov dx, word [ebp - 0x64]
add dx, 1
mov word [ebp - 0x64], dx
mov eax, dword [ebp - 0x64]
and eax, 0xffff
cmp eax, 0xf
jge 0x10001aeb
mov ecx, dword [ebp - 0x64]
and ecx, 0xffff
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + ecx*8 + 0x7c]
push eax
mov ecx, dword [ebp - 0x64]
and ecx, 0xffff
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + ecx*8 + 0x78]
push eax
push str._x__d_n
call fcn.10001000
add esp, 0xc
jmp 0x10001aa1
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x68]
xor edx, edx
div dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x68]
xor edx, edx
div dword [ebp - 0x54]
test edx, edx
je 0x10001b15
mov edx, dword [ebp - 0x60]
add edx, 1
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
imul eax, dword [ebp - 0x54]
mov dword [ebp - 0x70], eax
push 0x40
push 0x1000
mov ecx, dword [ebp - 0x70]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10001b64
push str.virtualAlloc__d_error
call fcn.10001000
add esp, 4
mov dword [ebp - 0x90], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x90]
jmp 0x10001d65
push str.VirtualAlloc_ok__n
call fcn.10001000
add esp, 4
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov word [ebp - 0x64], 0
jmp 0x10001b9a
mov dx, word [ebp - 0x64]
add dx, 1
mov word [ebp - 0x64], dx
mov eax, dword [ebp - 0x64]
and eax, 0xffff
mov ecx, dword [ebp - 0x74]
xor edx, edx
mov dx, word [ecx + 6]
cmp eax, edx
jge 0x10001c0b
mov eax, dword [ebp - 0x64]
and eax, 0xffff
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x64]
and eax, 0xffff
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + eax + 0x14]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x64]
and eax, 0xffff
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + eax + 0x10]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
jmp 0x10001b8e
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.10001073
test eax, eax
jne 0x10001c4f
push 0x8000
push 0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x94], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x94]
jmp 0x10001d65
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.10001373
test eax, eax
jne 0x10001c8d
push 0x8000
push 0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x98], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x98]
jmp 0x10001d65
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.10001535
test eax, eax
jne 0x10001ccf
push 0x8000
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x9c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x9c]
jmp 0x10001d65
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x28]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push str._llx__llx__llx
call fcn.10001000
add esp, 0x10
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp - 0x30]
push eax
call dword [ebp - 0x2c]
test eax, eax
jne 0x10001d17
push str.EntryPoint_ok_
call fcn.10001000
add esp, 4
jmp 0x10001d24
push str.EntryPoint_failed
call fcn.10001000
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x10001d51
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x10004390
call fcn.10001000
add esp, 8
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8