Function at 0x140086810
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 [0x14033b640]
xor rax, rsp
mov qword [rbp - 1], rax
mov r13, rdx
mov rdi, rcx
mov qword [rbp - 0x49], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400868c2
movsxd rsi, dword [rdx + 0x3c]
add rsi, rdx
cmp dword [rsi], 0x4550
jne 0x1400868c2
mov eax, 0x20b
cmp word [rsi + 0x18], ax
jne 0x1400868c2
mov ebx, dword [rsi + 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 0x1400868c2
movzx ecx, word [rsi + 0x14]
mov eax, dword [rcx + rsi + 0x24]
mov dword [rbp - 0x31], eax
sub ebx, eax
mov edx, ebx
mov qword [rbp - 0x39], rdx
jne 0x1400868eb
xor r14d, r14d
mov rdi, r14
mov rbx, qword [rbp - 0x49]
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, rdi
mov rcx, rbx
call fcn.140081fb0
xor eax, eax
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140223960
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 [0x14034da7c], eax
jle 0x1400869b2
lea rcx, [0x14034da7c]
call fcn.140223a98
cmp dword [0x14034da7c], 0xffffffff
jne 0x1400869ae
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, str.ExAllocatePoolWithTag
lea rcx, [rbp - 0x29]
call fcn.14005cfa0
nop
lea r8, [rbp - 0x29]
mov rdx, qword [0x14034d7d8]
mov rcx, rdi
call fcn.1400820c0
mov qword [0x14034daf0], rax
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x1400869a2
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008699c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140086b2d
call fcn.1402239bc
nop
lea rcx, [0x14034da7c]
call fcn.140223a2c
mov rdx, qword [rbp - 0x39]
xor r14d, r14d
cmp qword [0x14034daf0], r14
je 0x14008689f
mov qword [rbp - 0x41], r14
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x41]
mov rcx, rdi
call fcn.1400855c0
test al, al
je 0x14008689f
mov rdi, qword [rbp - 0x41]
test rdi, rdi
je 0x1400868a2
mov r8d, dword [rsi + 0x54]
mov rdx, r13
mov rcx, r12
call fcn.140262f80
movzx ebx, word [rsi + 0x14]
add rbx, 0x28
mov r15d, r14d
cmp r14w, word [rsi + 6]
jae 0x140086a3d
add rbx, rsi
test dword [rbx + 0x14], 0x80
ja 0x140086a2d
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r13
mov ecx, dword [rbx - 4]
add rcx, r12
call fcn.140262f80
inc r15d
add rbx, 0x28
movzx eax, word [rsi + 6]
cmp r15d, eax
jl 0x140086a10
mov r13d, dword [rbp - 0x31]
mov r15, rdi
sub r15, r13
mov rbx, r15
sub rbx, qword [rsi + 0x30]
mov rdx, r12
lea rcx, [rbp - 0x29]
call fcn.1400872c0
mov rdx, rbx
mov rcx, rax
call fcn.140086b40
mov rdx, r12
lea rcx, [rbp - 0x29]
call fcn.140087410
mov rdx, rax
mov rbx, qword [rbp - 0x49]
mov rcx, rbx
call fcn.140086c40
test al, al
je 0x1400868a6
lea rax, [r12 + r13]
test rax, rax
je 0x1400868a6
mov qword [rbp - 0x21], r14
mov qword [rbp - 0x29], gethostname
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rdi
mov rax, qword [rbp - 0x39]
mov qword [rbp - 9], rax
mov dword [rbp - 0x31], r14d
mov qword [rsp + 0x38], r14
lea rax, [rbp - 0x31]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
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 0x1400868a6
mov r8d, dword [rsi + 0x28]
add r8, r15
mov dword [rbp - 0x31], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea rdx, [rbp - 0x31]
mov rcx, rbx
call fcn.140086ea0
test al, al
je 0x1400868a6
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x1400868c4
call fcn.14023360c
int3