Function at 0x140013940
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0x90
mov rax, qword [0x1400bf080]
xor rax, rsp
mov qword [rbp - 1], rax
mov r13, rdx
mov r15, rcx
mov qword [rbp - 0x49], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400139f1
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x1400139f1
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x1400139f1
mov ebx, dword [rdi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
je 0x1400139f1
movzx ecx, word [rdi + 0x14]
mov eax, dword [rcx + rdi + 0x24]
mov dword [rbp - 0x31], eax
sub ebx, eax
mov edx, ebx
mov qword [rbp - 0x39], rdx
jne 0x140013a1a
xor esi, esi
mov r15, rsi
mov rbx, qword [rbp - 0x49]
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r15
mov rcx, rbx
call fcn.14000f930
xor eax, eax
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14008a0e0
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x1400c18e4], eax
jle 0x140013ae4
lea rcx, [0x1400c18e4]
call fcn.14008a1a8
cmp dword [0x1400c18e4], 0xffffffff
jne 0x140013ae0
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, [0x14009f3e8]
lea rcx, [rbp - 0x29]
call fcn.14000ba80
nop
lea r8, [rbp - 0x29]
mov rdx, qword [0x1400c1398]
mov rcx, r15
call fcn.14000fa40
mov qword [0x1400c1948], rax
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x140013ad4
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013ace
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013ace
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008a818
nop
lea rcx, [0x1400c18e4]
call fcn.14008a13c
mov rdx, qword [rbp - 0x39]
xor esi, esi
cmp qword [0x1400c1948], rsi
je 0x1400139ce
mov qword [rbp - 0x41], rsi
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x41]
mov rcx, r15
call fcn.1400127a0
test al, al
je 0x1400139ce
mov r15, qword [rbp - 0x41]
test r15, r15
je 0x1400139d1
mov r8d, dword [rdi + 0x54]
mov rdx, r13
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
mov r14d, esi
cmp si, word [rdi + 6]
jae 0x140013b6d
add rbx, rdi
test dword [rbx + 0x14], 0x80
ja 0x140013b5d
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r13
mov ecx, dword [rbx - 4]
add rcx, r12
call sub.VCRUNTIME140.dll_memcpy
inc r14d
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp r14d, eax
jl 0x140013b40
mov r13d, dword [rbp - 0x31]
mov r14, r15
sub r14, r13
mov rbx, r14
sub rbx, qword [rdi + 0x30]
mov rdx, r12
lea rcx, [rbp - 0x29]
call fcn.1400143e0
mov rdx, rbx
mov rcx, rax
call fcn.140013c60
mov rdx, r12
lea rcx, [rbp - 0x29]
call fcn.140014530
mov rdx, rax
mov rbx, qword [rbp - 0x49]
mov rcx, rbx
call fcn.140013d60
test al, al
je 0x1400139d5
lea rax, [r12 + r13]
test rax, rax
je 0x1400139d5
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x29], gethostname
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], r15
mov rax, qword [rbp - 0x39]
mov qword [rbp - 9], rax
mov dword [rbp - 0x31], esi
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x31]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, Ordinal_41
lea r8, [rbp - 0x29]
mov edx, 0x80862007
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400139d5
mov r8d, dword [rdi + 0x28]
add r8, r14
mov dword [rbp - 0x31], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, [rbp - 0x31]
mov rcx, rbx
call fcn.140013fc0
test al, al
je 0x1400139d5
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r15
jmp 0x1400139f3