Function at 0x14000caac
Capabilities:
Enumerate pe sections
Get system information on windows
Parse pe header

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xf8
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x60], 0
mov edx, 0x40
mov rcx, qword [rsp + 0x118]
call fcn.14000d30c
test eax, eax
jne 0x14000cb04
xor eax, eax
jmp 0x14000d272
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000cb32
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000d272
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
add rax, 0x108
mov rdx, rax
mov rcx, qword [rsp + 0x118]
call fcn.14000d30c
test eax, eax
jne 0x14000cb5c
xor eax, eax
jmp 0x14000d272
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
cmp dword [rax], 0x4550
je 0x14000cb9d
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000d272
mov rax, qword [rsp + 0xb0]
movzx eax, word [rax + 4]
cmp eax, 0x8664
je 0x14000cbc2
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000d272
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x38]
and eax, 1
test eax, eax
je 0x14000cbe6
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000d272
mov rax, qword [rsp + 0xb0]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0xb0]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x38]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x38], 0
jmp 0x14000cc3f
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xb8]
add rax, 0x28
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb0]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x38], eax
jae 0x14000ccba
mov rax, qword [rsp + 0xb8]
cmp dword [rax + 0x10], 0
jne 0x14000cc79
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0xc]
add rax, qword [rsp + 0x68]
mov qword [rsp + 0xc0], rax
jmp 0x14000cc99
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0xb8]
add eax, dword [rcx + 0x10]
mov eax, eax
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0xc0], rax
jbe 0x14000ccb5
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x48], rax
jmp 0x14000cc21
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0xb0]
mov ecx, dword [rcx + 0x50]
mov edx, eax
call fcn.14000d27c
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x74]
mov edx, eax
mov rcx, qword [rsp + 0x48]
call fcn.14000d27c
cmp qword [rsp + 0x58], rax
je 0x14000cd09
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000d272
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x30]
call qword [rsp + 0x120]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14000cd8d
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [rsp + 0x120]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14000cd8d
mov ecx, ntohs
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000d272
mov rax, qword [rsp + 0x50]
shr rax, 0x20
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
add rdx, rcx
mov rcx, rdx
shr rcx, 0x20
cmp rax, rcx
jae 0x14000ceab
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400295f8
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
jne 0x14000ce18
mov r9, qword [rsp + 0x148]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x128]
mov r8, qword [rsp + 0x148]
mov rdx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x60]
call fcn.14000d2a4
mov ecx, ntohs
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000d272
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x60]
mov qword [rax], rcx
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [rsp + 0x120]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14000cea6
mov r8, qword [rsp + 0x148]
mov rdx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x60]
call fcn.14000d2a4
mov ecx, ntohs
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000d272
jmp 0x14000cd8d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x78
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
jne 0x14000cf20
mov r9, qword [rsp + 0x148]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x128]
mov r8, qword [rsp + 0x148]
mov rdx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x60]
call fcn.14000d2a4
mov ecx, ntohs
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000d272
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0xb0]
movzx eax, word [rax + 0x16]
and eax, 0x2000
test eax, eax
je 0x14000cf53
mov dword [rsp + 0xe0], 1
jmp 0x14000cf5e
mov dword [rsp + 0xe0], 0
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0xe0]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x120]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x128]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x130]
mov qword [rax + 0x38], rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x138]
mov qword [rax + 0x40], rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x140]
mov qword [rax + 0x48], rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x148]
mov qword [rax + 0x58], rcx
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0x74]
mov dword [rax + 0x68], ecx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x70], rcx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x54]
mov edx, eax
mov rcx, qword [rsp + 0x118]
call fcn.14000d30c
test eax, eax
jne 0x14000d030
jmp 0x14000d263
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x54]
mov rcx, qword [rsp + 0x148]
mov qword [rsp + 0x20], rcx
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x120]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x54]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xa0]
mov qword [rcx], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x30], rcx
mov r9, qword [rsp + 0xa0]
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
call fcn.14000d340
test eax, eax
jne 0x14000d0e6
jmp 0x14000d263
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x30]
mov rax, qword [rax + 0x30]
sub rax, rcx
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x14000d139
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.14000dae0
mov rcx, qword [rsp + 0xa0]
mov dword [rcx + 0x24], eax
jmp 0x14000d148
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0x24], 1
mov rcx, qword [rsp + 0xa0]
call fcn.14000dccc
test eax, eax
jne 0x14000d163
jmp 0x14000d263
mov rcx, qword [rsp + 0xa0]
call fcn.14000d584
test eax, eax
jne 0x14000d17e
jmp 0x14000d263
mov rcx, qword [rsp + 0xa0]
call fcn.14000da3c
test eax, eax
jne 0x14000d199
jmp 0x14000d263
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
cmp dword [rax + 0x28], 0
je 0x14000d249
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x20], 0
je 0x14000d222
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd8], rax
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0xd8]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0
jne 0x14000d211
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000d263
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0x1c], 1
jmp 0x14000d247
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xa0]
mov qword [rcx + 0x60], rax
jmp 0x14000d259
mov rax, qword [rsp + 0xa0]
mov qword [rax + 0x60], 0
mov rax, qword [rsp + 0xa0]
jmp 0x14000d272
mov rcx, qword [rsp + 0xa0]
call fcn.14000e33c
xor eax, eax
add rsp, 0xf8
pop rdi
pop rsi
ret