Function at 0x140008a70
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r12, rdx
mov r13, rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140008b05
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x140008b05
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x140008b05
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 r15, rax
test rax, rax
je 0x140008b05
movzx ecx, word [rdi + 0x14]
mov eax, dword [rcx + rdi + 0x24]
mov dword [rsp + 0x30], eax
sub ebx, eax
mov edx, ebx
mov qword [rsp + 0x40], rdx
jne 0x140008b1f
xor ebp, ebp
mov r14, rbp
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r14
mov rcx, r13
call fcn.140002cb0
xor eax, eax
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
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 [0x1400c665c], eax
jle 0x140008bf0
lea rcx, [0x1400c665c]
call fcn.140098490
cmp dword [0x1400c665c], 0xffffffff
jne 0x140008beb
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, [0x1400abfd0]
lea rcx, [rsp + 0x48]
call fcn.1400068c0
nop
lea r8, [rsp + 0x48]
mov rdx, qword [0x1400c4388]
mov rcx, r13
call fcn.140002dc0
mov qword [0x1400c66c0], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140008bdf
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008bd9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008bd9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140098300
nop
lea rcx, [0x1400c665c]
call fcn.140098430
mov rdx, qword [rsp + 0x40]
xor ebp, ebp
cmp qword [0x1400c66c0], rbp
je 0x140008ae6
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.140005a50
test al, al
je 0x140008ae6
mov r14, qword [rsp + 0x38]
test r14, r14
je 0x140008ae9
mov r8d, dword [rdi + 0x54]
mov rdx, r12
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
mov esi, ebp
cmp bp, word [rdi + 6]
jae 0x140008c7b
add rbx, rdi
nop
test dword [rbx + 0x14], 0x80
ja 0x140008c6d
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r12
mov ecx, dword [rbx - 4]
add rcx, r15
call sub.VCRUNTIME140.dll_memcpy
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x140008c50
mov r12d, dword [rsp + 0x30]
mov rsi, r14
sub rsi, r12
mov rbx, rsi
sub rbx, qword [rdi + 0x30]
mov rdx, r15
lea rcx, [rsp + 0x48]
call fcn.140006f00
mov rdx, rbx
mov rcx, rax
call fcn.140008d30
mov rdx, r15
lea rcx, [rsp + 0x48]
call fcn.140007050
mov rdx, rax
mov rcx, r13
call fcn.140008e30
test al, al
je 0x140008ae9
lea r8, [r12 + r15]
mov r9, qword [rsp + 0x40]
mov rdx, r14
mov rcx, r13
call fcn.140002a90
test al, al
je 0x140008ae9
mov r8d, dword [rdi + 0x28]
add r8, rsi
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.140009000
test al, al
je 0x140008ae9
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r14
jmp 0x140008b07