Function at 0x140011325
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
jmp 0x140012320
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x528
lea rbp, [rsp + 0x40]
lea rcx, [0x1400250f2]
call fcn.140011406
lea rax, str.C:CodeSocket_
mov qword [rbp + 8], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x28], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbp + 0x48], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x50]
mov qword [rbp + 0xc8], rax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xa8]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0xe8], rax
cmp qword [rbp + 0xe8], 0
jne 0x140012474
lea rdx, [0x14001bc68]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001108c
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x140012956
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x54]
mov r8d, eax
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0xe8]
call fcn.140011212
mov rax, qword [rbp + 0xa8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0xa8]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x108], rax
mov dword [rbp + 0x124], 0
jmp 0x1400124c9
mov eax, dword [rbp + 0x124]
inc eax
mov dword [rbp + 0x124], eax
mov rax, qword [rbp + 0xa8]
movzx eax, word [rax + 6]
cmp dword [rbp + 0x124], eax
jae 0x14001255b
mov eax, dword [rbp + 0x124]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x108]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rbp + 0xe8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x148], rax
mov eax, dword [rbp + 0x124]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x108]
mov eax, dword [rcx + rax + 0x14]
mov rcx, qword [rbp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x168], rax
mov eax, dword [rbp + 0x124]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x108]
mov eax, dword [rcx + rax + 0x10]
mov r8d, eax
mov rdx, qword [rbp + 0x168]
mov rcx, qword [rbp + 0x148]
call fcn.140011212
jmp 0x1400124bb
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax + 0x30]
mov rcx, qword [rbp + 0xe8]
sub rcx, rax
mov rax, rcx
mov dword [rbp + 0x184], eax
cmp dword [rbp + 0x184], 0
je 0x1400126c5
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rbp + 0xa8]
mov eax, dword [rcx + rax + 0x88]
mov dword [rbp + 0x1a4], eax
cmp dword [rbp + 0x1a4], 0
je 0x1400126c5
mov eax, dword [rbp + 0x1a4]
mov rcx, qword [rbp + 0xe8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1c8], rax
mov rax, qword [rbp + 0x1c8]
cmp dword [rax], 0
je 0x1400126c5
mov rax, qword [rbp + 0x1c8]
mov eax, dword [rax + 4]
sub rax, 8
xor edx, edx
mov ecx, 2
div rcx
mov dword [rbp + 0x1e4], eax
mov rax, qword [rbp + 0x1c8]
add rax, 8
mov qword [rbp + 0x208], rax
mov dword [rbp + 0x224], 0
jmp 0x140012624
mov eax, dword [rbp + 0x224]
inc eax
mov dword [rbp + 0x224], eax
mov eax, dword [rbp + 0x1e4]
cmp dword [rbp + 0x224], eax
jae 0x1400126a2
mov eax, dword [rbp + 0x224]
mov rcx, qword [rbp + 0x208]
movzx eax, word [rcx + rax*2]
sar eax, 0xc
cmp eax, 3
jne 0x14001269d
mov rax, qword [rbp + 0x1c8]
mov eax, dword [rax]
mov rcx, qword [rbp + 0xe8]
add rcx, rax
mov rax, rcx
mov ecx, dword [rbp + 0x224]
mov rdx, qword [rbp + 0x208]
movzx ecx, word [rdx + rcx*2]
and ecx, 0xfff
movsxd rcx, ecx
add rax, rcx
mov qword [rbp + 0x248], rax
mov rax, qword [rbp + 0x248]
mov eax, dword [rax]
add eax, dword [rbp + 0x184]
mov rcx, qword [rbp + 0x248]
mov dword [rcx], eax
jmp 0x140012616
mov rax, qword [rbp + 0x1c8]
mov eax, dword [rax + 4]
mov rcx, qword [rbp + 0x1c8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1c8], rax
jmp 0x1400125ca
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0xa8]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0xe8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x268], rax
mov rax, qword [rbp + 0x268]
cmp dword [rax + 0xc], 0
je 0x1400128df
mov rax, qword [rbp + 0x268]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0xe8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x288], rax
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp + 0x2a8], rax
cmp qword [rbp + 0x2a8], 0
jne 0x14001276a
lea rdx, [0x14001bca8]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001108c
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x140012956
mov rax, qword [rbp + 0x268]
mov eax, dword [rax + 0x10]
mov rcx, qword [rbp + 0xe8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x2c8], rax
mov rax, qword [rbp + 0x2c8]
cmp qword [rax], 0
je 0x1400128c8
mov rax, qword [rbp + 0x2c8]
movabs rcx, 0x8000000000000000
mov rax, qword [rax]
and rax, rcx
test rax, rax
je 0x140012829
mov rax, qword [rbp + 0x2c8]
mov rax, qword [rax]
and rax, 0xffff
mov rdx, rax
mov rcx, qword [rbp + 0x2a8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x2e8], rax
cmp qword [rbp + 0x2e8], 0
jne 0x140012813
lea rdx, [0x14001bce0]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001108c
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x140012956
mov rax, qword [rbp + 0x2c8]
mov rcx, qword [rbp + 0x2e8]
mov qword [rax], rcx
jmp 0x1400128b1
mov rax, qword [rbp + 0x2c8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xe8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x308], rax
mov rax, qword [rbp + 0x308]
add rax, 2
mov rdx, rax
mov rcx, qword [rbp + 0x2a8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x328], rax
cmp qword [rbp + 0x328], 0
jne 0x1400128a0
lea rdx, [0x14001bce0]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001108c
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x140012956
mov rax, qword [rbp + 0x2c8]
mov rcx, qword [rbp + 0x328]
mov qword [rax], rcx
mov rax, qword [rbp + 0x2c8]
add rax, 8
mov qword [rbp + 0x2c8], rax
jmp 0x140012788
mov rax, qword [rbp + 0x268]
add rax, 0x14
mov qword [rbp + 0x268], rax
jmp 0x1400126f0
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x28]
mov rcx, qword [rbp + 0xe8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x348], rax
xor r8d, r8d
mov edx, 1
mov rcx, qword [rbp + 0xe8]
call qword [rbp + 0x348]
test eax, eax
jne 0x140012940
lea rdx, str.DLL
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001108c
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x140012956
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea rsp, [rbp + 0x4e8]
pop rdi
pop rbp
ret