Function at 0x14002ffe0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa0
mov rax, qword [0x1400bd0c0]
xor rax, rsp
mov qword [rbp - 9], rax
mov qword [rbp - 0x49], r9
mov r15, rdx
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x41], rax
mov r13, qword [0x1400be000]
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140030339
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x140030339
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x140030339
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 r14, rax
test rax, rax
je 0x140030339
movzx ecx, word [rdi + 0x14]
mov eax, dword [rcx + rdi + 0x24]
mov dword [rbp - 0x39], eax
sub ebx, eax
mov ecx, ebx
mov qword [rbp - 0x51], rcx
je 0x140030328
mov edx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
xor esi, esi
mov eax, dword [rdx + rax]
cmp dword [0x1400be414], eax
jle 0x140030183
lea rcx, [0x1400be414]
call fcn.1400947b8
cmp dword [0x1400be414], 0xffffffff
jne 0x14003017f
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], reloc.WS2_32.dll_ntohs
lea ecx, [rsi + 0x20]
call fcn.140094398
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x21], reloc.WS2_32.dll_setsockopt
mov qword [rbp - 0x19], Ordinal_32
movups xmm0, xmmword [str.ExAllocatePoolWithTag]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400b01c8]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x1400b01cc]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], sil
lea r8, [rbp - 0x31]
mov rdx, qword [0x1400be018]
mov rcx, r13
call fcn.14002c8e0
mov qword [0x1400be478], rax
mov rdx, qword [rbp - 0x19]
cmp rdx, 0xf
jbe 0x140030173
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003016d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003016d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140094390
nop
lea rcx, [0x1400be414]
call fcn.14009474c
mov rcx, qword [rbp - 0x51]
cmp qword [0x1400be478], 0
je 0x140030328
mov qword [rbp - 0x59], rsi
mov qword [rsp + 0x20], rcx
lea rdx, [rbp - 0x59]
mov rcx, r13
call fcn.14002f4d0
test al, al
je 0x140030328
mov r12, qword [rbp - 0x59]
test r12, r12
je 0x140030328
mov r8d, dword [rdi + 0x54]
mov rdx, r15
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x14003020b
add rbx, rdi
nop dword [rax]
test dword [rbx + 0x14], 0x80
ja 0x1400301fd
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r15
mov ecx, dword [rbx - 4]
add rcx, r14
call sub.VCRUNTIME140.dll_memcpy
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x1400301e0
mov esi, dword [rbp - 0x39]
mov rbx, r12
sub rbx, rsi
mov rdx, r14
lea rcx, [rbp - 0x31]
call fcn.140030c50
mov rdx, rbx
sub rdx, qword [rdi + 0x30]
mov rcx, rax
call fcn.140030370
mov rdx, rbx
mov rcx, r14
call fcn.140030470
test al, al
je 0x140030339
mov rdx, r14
lea rcx, [rbp - 0x31]
call fcn.140030da0
mov rdx, rax
mov rcx, r13
call fcn.140030520
test al, al
je 0x14003030a
lea rax, [rsi + r14]
test rax, rax
je 0x14003030a
xor esi, esi
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x31], gethostname
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], r12
mov rax, qword [rbp - 0x51]
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x39], esi
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
lea r9d, [rsi + 0x28]
lea r8, [rbp - 0x31]
mov edx, 0x80862007
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14003030a
mov r8d, dword [rdi + 0x28]
add r8, rbx
mov dword [rbp - 0x39], esi
mov rax, qword [rbp - 0x49]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rbp - 0x39]
mov rcx, r13
call fcn.140030830
test al, al
je 0x14003030a
mov rax, qword [rbp - 0x41]
test rax, rax
je 0x1400302f4
mov ecx, dword [rbp - 0x39]
mov dword [rax], ecx
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r12
jmp 0x14003033b
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r12
mov rcx, r13
call fcn.14002c7b0
jmp 0x140030339
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140094370
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret