Function at 0x14008db60
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, 0xd0
mov rax, qword [0x140131080]
xor rax, rsp
mov qword [rbp - 9], rax
mov rsi, rdx
mov r13, rcx
mov qword [rsp + 0x38], rcx
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x59], rax
xor edi, edi
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x19], rdi
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14008dc2a
movsxd r15, dword [rdx + 0x3c]
add r15, rdx
cmp dword [r15], 0x4550
jne 0x14008dc2a
mov eax, 0x20b
cmp word [r15 + 0x18], ax
jne 0x14008dc2a
mov ebx, dword [r15 + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rdi + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
je 0x14008dc2a
movzx ecx, word [r15 + 0x14]
mov r14d, dword [rcx + r15 + 0x24]
sub ebx, r14d
mov ecx, ebx
mov qword [rsp + 0x40], rcx
jne 0x14008dc53
mov r13, rdi
mov rdi, qword [rsp + 0x38]
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r13
mov rcx, rdi
call fcn.140089db0
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400feaa0
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rdx + rax]
cmp dword [0x140134a64], eax
jle 0x14008dd20
lea rcx, [0x140134a64]
call fcn.1400fef4c
cmp dword [0x140134a64], 0xffffffff
jne 0x14008dd1b
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x71], xmm1
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.ExAllocatePoolWithTag
lea rcx, [rsp + 0x48]
call fcn.14008d560
nop
lea r8, [rsp + 0x48]
mov rdx, qword [0x140134518]
mov rcx, r13
call fcn.140089ec0
mov qword [0x140134ad8], rax
mov rdx, qword [rbp - 0x69]
cmp rdx, 0xf
jbe 0x14008dd0f
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008dd09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008dd09
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fee2c
nop
lea rcx, [0x140134a64]
call fcn.1400feee0
mov rcx, qword [rsp + 0x40]
cmp qword [0x140134ad8], 0
je 0x14008dc06
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.14008c850
test al, al
je 0x14008dc06
mov r13, qword [rsp + 0x30]
test r13, r13
je 0x14008dc09
mov r8d, dword [r15 + 0x54]
mov rdx, rsi
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r15 + 0x14]
add rbx, 0x24
xor edx, edx
cmp dx, word [r15 + 6]
jae 0x14008ddae
add rbx, r15
nop
test dword [rbx + 0x18], 0x80
ja 0x14008dd9d
mov ecx, dword [rbx]
add rcx, r12
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
inc edi
add rbx, 0x28
movzx eax, word [r15 + 6]
cmp edi, eax
jl 0x14008dd80
xor edx, edx
mov rax, r14
mov qword [rbp - 0x61], rax
mov r14, r13
sub r14, rax
mov rsi, r14
sub rsi, qword [r15 + 0x30]
mov eax, 0x5a4d
cmp word [r12], ax
jne 0x14008de94
movsxd rax, dword [r12 + 0x3c]
cmp dword [rax + r12], 0x4550
jne 0x14008de94
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
mov r11, rdx
mov qword [rbp - 0x39], rdx
mov ecx, dword [rax + r12 + 0xb0]
test ecx, ecx
jne 0x14008de08
jmp 0x14008de9d
lea rbx, [r12 + rcx]
mov edi, dword [rax + r12 + 0xb4]
add rdi, rbx
mov r10, qword [rbp - 0x41]
cmp rbx, rdi
jae 0x14008de8e
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x14008de8e
mov eax, dword [rbx]
add rax, r12
mov qword [rsp + 0x48], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x79], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x71], eax
cmp r10, r11
je 0x14008de6a
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [r10], xmm0
movsd xmm1, qword [rbp - 0x71]
movsd qword [r10 + 0x10], xmm1
mov r10, qword [rbp - 0x41]
add r10, 0x18
mov qword [rbp - 0x41], r10
jmp 0x14008de7f
lea r8, [rsp + 0x48]
mov rdx, r10
lea rcx, [rbp - 0x49]
call fcn.14008f3a0
mov r10, qword [rbp - 0x41]
mov eax, dword [rbx + 4]
add rbx, rax
mov r11, qword [rbp - 0x39]
cmp rbx, rdi
jb 0x14008de20
mov rbx, qword [rbp - 0x49]
jmp 0x14008deac
xorps xmm1, xmm1
mov r11, rdx
xorps xmm0, xmm0
psrldq xmm0, 8
movq rbx, xmm1
movq r10, xmm0
cmp rbx, r10
je 0x14008df13
lea r8, [rbx + 0x10]
mov edi, 0xf000
xor r13d, r13d
nop dword [rax]
mov edx, r13d
cmp dword [r8], 0
jbe 0x14008df01
mov r13d, 0xa000
nop
mov ecx, edx
mov rax, qword [r8 - 8]
movzx r9d, word [rax + rcx*2]
movzx eax, r9w
and ax, di
cmp ax, r13w
jne 0x14008def7
and r9d, 0xfff
mov rax, qword [r8 - 0x10]
add qword [r9 + rax], rsi
inc edx
cmp edx, dword [r8]
jb 0x14008ded0
xor r13d, r13d
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r10
jne 0x14008dec0
mov r13, qword [rsp + 0x30]
test rbx, rbx
je 0x14008df6e
sub r11, rbx
movabs rax, 0x2aaaaaaaaaaaaaab
imul r11
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, rbx
cmp rdx, 0x1000
jb 0x14008df66
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008df66
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400fee2c
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.14008ebd0
mov rdx, rax
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.14008e040
test al, al
je 0x14008dc0e
mov r8, qword [rbp - 0x61]
add r8, r12
mov rsi, qword [rsp + 0x40]
mov r9, rsi
mov rdx, r13
mov rcx, rdi
call fcn.140089b90
test al, al
je 0x14008dc0e
mov ebx, dword [r15 + 0x28]
add rbx, r14
xor r14d, r14d
mov qword [rsp + 0x20], r14
mov r9, rsi
mov r8, r13
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.140090d90
test al, al
je 0x14008dc0e
mov dword [rsp + 0x30], r14d
mov rax, qword [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x19]
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14008e350
test al, al
je 0x14008dc0e
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x14008e018
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r13
jmp 0x14008dc2c