Function at 0x1400098b4
Capabilities:
Get system information on windows
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x50
xor edi, edi
xor r13d, r13d
mov r14, rdx
mov r12, rcx
cmp rdx, 0x40
jae 0x1400098f2
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140009ae7
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x140009903
mov ecx, 0xc1
jmp 0x1400098e7
movsxd rcx, dword [rcx + 0x3c]
lea rax, [rcx + 0x108]
cmp rdx, rax
jb 0x1400098e2
lea rbp, [rcx + r12]
cmp dword [rbp], 0x4550
jne 0x1400098fc
mov eax, 0x8664
cmp word [rbp + 4], ax
jne 0x1400098fc
test byte [rbp + 0x38], 1
jne 0x1400098fc
movzx eax, word [rbp + 6]
movzx ecx, word [rbp + 0x14]
mov r8d, dword [rbp + 0x38]
test eax, eax
je 0x14000996a
lea rcx, [rcx + rbp + 0x24]
mov edx, eax
cmp dword [rcx + 4], r13d
jne 0x140009955
mov eax, dword [rcx]
add rax, r8
jmp 0x14000995a
mov eax, dword [rcx]
add eax, dword [rcx + 4]
cmp rax, rdi
cmova rdi, rax
add rcx, 0x28
dec rdx
jne 0x140009948
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov r11d, dword [rsp + 0x24]
mov eax, dword [rbp + 0x50]
lea rbx, [rax + r11 - 1]
lea rax, [r11 - 1]
lea rcx, [r11 + rdi - 1]
not rax
and rbx, rax
lea rax, [r11 - 1]
not rax
and rcx, rax
cmp rbx, rcx
jne 0x1400098fc
mov rcx, qword [rbp + 0x30]
mov edi, 0x3000
mov r9d, 4
mov r8d, edi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1400099eb
lea r9d, [rax + 4]
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1400099eb
mov ecx, reloc.WS2_32.dll_ntohl
jmp 0x1400098e7
lea rcx, [rsi + rbx]
mov rax, rsi
jmp 0x140009a3b
mov ecx, reloc.WS2_32.dll_recv
call fcn.140051454
mov rdi, rax
test rax, rax
je 0x140009b1f
mov qword [rax], r13
mov r9d, 4
mov r8d, 0x3000
mov rdx, rbx
xor ecx, ecx
mov qword [rax + 8], rsi
mov r13, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x140009b08
lea rcx, [rax + rbx]
movabs rdx, 0xffffffff00000000
and rcx, rdx
and rax, rdx
cmp rax, rcx
jb 0x1400099f4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
lea r8d, [rdx + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140009b1f
mov qword [rax + 8], rsi
movzx eax, word [rbp + 0x16]
and qword [rdi + 0x58], 0
shr eax, 0xd
and eax, 1
mov dword [rdi + 0x20], eax
lea rax, [0x140009884]
mov qword [rdi + 0x28], rax
lea rax, [0x14000988c]
mov qword [rdi + 0x30], rax
lea rax, [0x140009894]
mov qword [rdi + 0x38], rax
lea rax, [0x14000989c]
mov qword [rdi + 0x40], rax
lea rax, [0x1400098a4]
mov qword [rdi + 0x48], rax
mov eax, dword [rsp + 0x24]
mov qword [rdi + 0x70], r13
mov dword [rdi + 0x68], eax
mov edx, dword [rbp + 0x54]
cmp r14, rdx
jae 0x140009b35
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.140009dc4
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
mov rcx, rdi
lea rdx, [0x14000988c]
xor r8d, r8d
call fcn.1400091cc
jmp 0x1400099e1
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r13
jmp 0x140009b0b
mov r9d, 4
mov r8d, 0x1000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x54]
mov rdx, r12
mov rcx, rax
mov rbx, rax
call fcn.14004fa50
movsxd rax, dword [r12 + 0x3c]
mov r9, rdi
add rax, rbx
mov r8, rbp
mov rdx, r14
mov qword [rdi], rax
mov rcx, r12
mov qword [rax + 0x30], rsi
call fcn.14000924c
test eax, eax
je 0x140009adf
mov rax, qword [rdi]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rbp + 0x30]
je 0x140009b9e
mov rcx, rdi
call fcn.140009640
mov dword [rdi + 0x24], eax
jmp 0x140009ba5
mov dword [rdi + 0x24], 1
mov rcx, rdi
call fcn.140009700
test eax, eax
je 0x140009adf
mov rcx, rdi
call fcn.14000945c
test eax, eax
je 0x140009adf
mov rcx, rdi
call fcn.1400095f0
test eax, eax
je 0x140009adf
mov rax, qword [rdi]
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x140009c12
cmp dword [rdi + 0x20], 0
lea rax, [rsi + rcx]
je 0x140009c0c
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x140009c03
mov ecx, 0x45a
jmp 0x140009ad9
mov dword [rdi + 0x1c], 1
jmp 0x140009c17
mov qword [rdi + 0x60], rax
jmp 0x140009c17
and qword [rdi + 0x60], 0
mov rax, rdi
jmp 0x140009ae9