Function at 0x140168a03
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
jmp 0x140305d20
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3f8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, __WSAFDIsSet
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x418]
mov rax, qword [0x14054a080]
xor rax, rbp
mov qword [rbp + 0x3c8], rax
lea rcx, [0x14057d41d]
call fcn.140168477
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140305d88
mov al, 1
jmp 0x140306165
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140305d9e
mov al, 1
jmp 0x140306165
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140305dbb
mov al, 1
jmp 0x140306165
mov rax, qword [rbp + 0x68]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
cmp dword [rax], 0x4550
je 0x140305dea
mov al, 1
jmp 0x140306165
mov rax, qword [rbp + 0x88]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x88]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0xa8], rax
mov r8, qword [rbp + 0x28]
lea rdx, [rbp + 0xc8]
lea rcx, [rbp + 4]
call fcn.1402f96b0
nop
lea rcx, [rbp + 0xc8]
call fcn.140165911
mov rcx, rax
call fcn.140164417
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 0xc8]
call fcn.140165911
mov rcx, rax
call fcn.140167987
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0xf8]
cmp qword [rax], 0
je 0x140305e7a
mov rax, qword [rbp + 0x118]
cmp qword [rax], 0
je 0x140305e7a
mov rax, qword [rbp + 0x118]
cmp qword [rax], 0xffffffffffffffff
jne 0x140305e81
mov al, 1
jmp 0x140306165
mov rax, qword [rbp + 0xf8]
mov rax, qword [rax]
mov qword [rbp + 0x138], rax
mov rax, qword [rbp + 0x138]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140305ecc
mov rax, qword [rbp + 0xf8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
mov rax, qword [rbp + 0x118]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov al, 1
jmp 0x140306165
mov rax, qword [rbp + 0x138]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0xf8]
add rax, qword [rcx]
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x158]
cmp dword [rax], 0x4550
jne 0x140305f27
mov rax, qword [rbp + 0x158]
mov rcx, qword [rbp + 0x88]
mov ecx, dword [rcx + 8]
cmp dword [rax + 8], ecx
jne 0x140305f27
mov rax, qword [rbp + 0x158]
movzx eax, word [rax + 6]
mov rcx, qword [rbp + 0x88]
movzx ecx, word [rcx + 6]
cmp eax, ecx
je 0x140305f50
mov rax, qword [rbp + 0xf8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
mov rax, qword [rbp + 0x118]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov al, 1
jmp 0x140306165
mov rax, qword [rbp + 0x158]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x158]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x178], rax
mov byte [rbp + 0x194], 0
mov dword [rbp + 0x1b4], 0
jmp 0x140305fb3
mov eax, dword [rbp + 0x1b4]
inc eax
mov dword [rbp + 0x1b4], eax
mov rax, qword [rbp + 0xa8]
add rax, 0x28
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x178]
add rax, 0x28
mov qword [rbp + 0x178], rax
mov rax, qword [rbp + 0x158]
movzx eax, word [rax + 6]
cmp dword [rbp + 0x1b4], eax
jge 0x14030613c
mov rax, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0x3f0]
mov rcx, rax
call fcn.140169043
test eax, eax
jne 0x140305ff7
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
test eax, eax
jne 0x140305ff9
jmp 0x140305f81
mov dword [rbp + 0x1d4], 0
jmp 0x140306013
mov eax, dword [rbp + 0x1d4]
inc eax
mov dword [rbp + 0x1d4], eax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x10]
cmp dword [rbp + 0x1d4], eax
jae 0x140306135
mov rax, qword [rbp + 0x178]
mov eax, dword [rax + 0x14]
mov rcx, qword [rbp + 0xf8]
add rax, qword [rcx]
mov ecx, dword [rbp + 0x1d4]
movzx eax, byte [rax + rcx]
mov byte [rbp + 0x1f4], al
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov ecx, dword [rbp + 0x1d4]
movzx eax, byte [rax + rcx]
movzx ecx, byte [rbp + 0x1f4]
cmp eax, ecx
jne 0x140306078
jmp 0x140306005
movzx eax, byte [rbp + 0x3f8]
test eax, eax
je 0x140306129
mov dword [rbp + 0x214], 0x40
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov ecx, dword [rbp + 0x1d4]
add rax, rcx
lea r9, [rbp + 0x234]
mov r8d, dword [rbp + 0x214]
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov ecx, dword [rbp + 0x1d4]
movzx edx, byte [rbp + 0x1f4]
mov byte [rax + rcx], dl
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov ecx, dword [rbp + 0x1d4]
add rax, rcx
lea r9, [rbp + 0x214]
mov r8d, dword [rbp + 0x234]
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov byte [rbp + 0x194], 1
jmp 0x140306005
jmp 0x14030613c
mov rax, qword [rbp + 0xf8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
mov rax, qword [rbp + 0x118]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
movzx eax, byte [rbp + 0x194]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_connect
call fcn.14016710d
mov rax, rdi
mov rcx, qword [rbp + 0x3c8]
xor rcx, rbp
call fcn.140164822
lea rsp, [rbp + 0x3d8]
pop rdi
pop rbp
ret