Function at 0x14008a430
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, 0xe0
mov rax, qword [0x14011f080]
xor rax, rsp
mov qword [rbp - 9], rax
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x38], rcx
mov qword [rbp - 0x29], rdx
xor edi, edi
mov rcx, qword [rdx]
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14008aa22
movsxd r13, dword [rcx + 0x3c]
add r13, rcx
mov qword [rbp - 0x51], r13
cmp dword [r13], 0x4550
jne 0x14008aa22
mov eax, 0x20b
cmp word [r13 + 0x18], ax
jne 0x14008aa22
mov ebx, dword [r13 + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rdi + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14008a9b9
movzx eax, word [r13 + 0x14]
mov esi, dword [rax + r13 + 0x24]
sub ebx, esi
mov edx, ebx
mov qword [rsp + 0x50], rdx
jne 0x14008a4ed
mov qword [rsp + 0x40], rdi
jmp 0x14008a99a
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x14012515c], eax
jle 0x14008a5b8
lea rcx, [0x14012515c]
call fcn.1400eca28
cmp dword [0x14012515c], 0xffffffff
jne 0x14008a5b3
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x69], xmm1
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.ExAllocatePoolWithTag
lea rcx, [rbp - 0x79]
call fcn.14007a550
nop
lea r8, [rbp - 0x79]
mov rdx, qword [0x140124f78]
mov rcx, r14
call fcn.140076e40
mov qword [0x1401251d0], rax
mov rdx, qword [rbp - 0x61]
cmp rdx, 0x10
jb 0x14008a5a7
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a5a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008a5a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ecdc0
nop
lea rcx, [0x14012515c]
call fcn.1400ec9bc
mov rdx, qword [rsp + 0x50]
cmp qword [0x1401251d0], 0
jne 0x14008a5cc
mov qword [rsp + 0x40], rdi
jmp 0x14008a99a
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140079840
test al, al
jne 0x14008a5f1
mov qword [rsp + 0x40], rdi
jmp 0x14008a99a
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14008a99a
mov r8d, dword [r13 + 0x54]
mov rdx, qword [r15]
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r13 + 0x14]
add rbx, 0x24
xor edx, edx
cmp dx, word [r13 + 6]
jae 0x14008a65e
add rbx, r13
nop dword [rax + rax]
test dword [rbx + 0x18], 0x80
ja 0x14008a64d
mov ecx, dword [rbx]
add rcx, r12
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, qword [r15]
call sub.VCRUNTIME140.dll_memcpy
inc edi
add rbx, 0x28
movzx eax, word [r13 + 6]
cmp edi, eax
jl 0x14008a630
xor edx, edx
mov qword [rbp - 0x59], rsi
mov rax, qword [rsp + 0x30]
sub rax, rsi
mov qword [rbp - 0x49], rax
mov rsi, rax
sub rsi, qword [r13 + 0x30]
mov eax, 0x5a4d
cmp word [r12], ax
jne 0x14008a74a
movsxd rax, dword [r12 + 0x3c]
cmp dword [rax + r12], 0x4550
jne 0x14008a74a
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
mov r8, rdx
mov qword [rbp - 0x11], rdx
mov ecx, dword [rax + r12 + 0xb0]
test ecx, ecx
jne 0x14008a6bb
mov rbx, rdx
jmp 0x14008a750
lea rbx, [r12 + rcx]
mov edi, dword [rax + r12 + 0xb4]
add rdi, rbx
cmp rbx, rdi
jae 0x14008a73a
mov rdx, qword [rbp - 0x19]
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x14008a735
mov eax, dword [rbx]
add rax, r12
mov qword [rbp - 0x41], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x39], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x31], eax
cmp rdx, r8
je 0x14008a715
movups xmm0, xmmword [rbp - 0x41]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rbp - 0x31]
movsd qword [rdx + 0x10], xmm1
add rdx, 0x18
mov qword [rbp - 0x19], rdx
jmp 0x14008a72a
lea r8, [rbp - 0x41]
lea rcx, [rbp - 0x21]
call fcn.140089710
mov r8, qword [rbp - 0x11]
mov rdx, qword [rbp - 0x19]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rdi
jb 0x14008a6d3
movdqu xmm1, xmmword [rbp - 0x21]
movsd xmm0, qword [rbp - 0x11]
movsd qword [rbp - 0x69], xmm0
mov rbx, qword [rbp - 0x69]
jmp 0x14008a750
xorps xmm1, xmm1
mov rbx, rdx
movq r10, xmm1
psrldq xmm1, 8
movq r11, xmm1
cmp r10, r11
je 0x14008a7c2
lea r8, [r10 + 0x10]
mov edi, 0xfff
xor r14d, r14d
mov edx, r14d
cmp dword [r8], r14d
jbe 0x14008a7b0
nop dword [rax + rax]
mov ecx, edx
mov rax, qword [r8 - 8]
movzx r9d, word [rax + rcx*2]
movzx eax, r9w
shr ax, 0xc
and r9w, di
cmp ax, 0xa
jne 0x14008a7a9
movzx ecx, r9w
mov rax, qword [r8 - 0x10]
add qword [rax + rcx], rsi
inc edx
cmp edx, dword [r8]
jb 0x14008a780
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r11
jne 0x14008a770
mov r14, qword [rsp + 0x38]
test r10, r10
je 0x14008a81d
sub rbx, r10
movabs rax, 0x2aaaaaaaaaaaaaab
imul rbx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, r10
cmp rdx, 0x1000
jb 0x14008a815
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008a815
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.1400ecdc0
mov rdx, r12
lea rcx, [rbp - 0x79]
call fcn.140088a30
mov r12, rax
mov qword [rsp + 0x58], rax
mov rsi, qword [rax]
mov r13, qword [rax + 8]
cmp rsi, r13
je 0x14008a8cf
mov rcx, rsi
call fcn.14008ac30
mov rdi, rax
test rax, rax
je 0x14008a986
mov rbx, qword [rsi + 0x20]
mov r14, qword [rsi + 0x28]
cmp rbx, r14
je 0x14008a8bd
nop dword [rax]
nop word [rax + rax]
mov r8, rbx
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call fcn.140076e40
mov rcx, rax
test rax, rax
jne 0x14008a8ad
mov rdx, qword [0x140124f78]
cmp rdi, rdx
je 0x14008a8ad
mov r8, rbx
mov rcx, qword [rsp + 0x38]
call fcn.140076e40
mov rcx, rax
test rax, rax
je 0x14008a986
mov rax, qword [rbx + 0x20]
mov qword [rax], rcx
add rbx, 0x28
cmp rbx, r14
jne 0x14008a870
add rsi, 0x38
cmp rsi, r13
jne 0x14008a841
mov r14, qword [rsp + 0x38]
mov rcx, r12
call fcn.140088da0
mov r12, qword [rsp + 0x48]
mov r8, qword [rbp - 0x59]
add r8, r12
mov r9, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, r14
call fcn.140076b10
test al, al
je 0x14008a998
mov rax, qword [rbp - 0x51]
mov r8d, dword [rax + 0x28]
add r8, qword [rbp - 0x49]
xor edi, edi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.14008aa30
test al, al
je 0x14008a99a
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, qword [r15]
test rcx, rcx
je 0x14008a981
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14008a971
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x14008aa28
mov rcx, r8
call fcn.1400ecdc0
mov qword [r15], rdi
mov qword [r15 + 8], rdi
mov qword [r15 + 0x10], rdi
mov rax, rbx
jmp 0x14008a9fb
mov rcx, r12
call fcn.140088da0
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x48]
xor edi, edi
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
mov rcx, r14
call fcn.140076d30
nop
mov rcx, qword [r15]
test rcx, rcx
je 0x14008a9f9
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14008a9e9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14008aa28
mov rcx, r8
call fcn.1400ecdc0
mov qword [r15], rdi
mov qword [r15 + 8], rdi
mov qword [r15 + 0x10], rdi
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400ec960
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rdx + 0x10]
jmp 0x14008a9c5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3