Function at 0x14003da40
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, 0xb0
mov rax, qword [0x140079040]
xor rax, rsp
mov qword [rbp - 1], rax
mov qword [rbp - 0x51], r9
mov rsi, rdx
mov rdi, rcx
mov qword [rbp - 0x61], rcx
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x49], rax
xor r12d, r12d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14003df74
movsxd r13, dword [rdx + 0x3c]
add r13, rdx
cmp dword [r13], 0x4550
jne 0x14003df74
mov eax, 0x20b
cmp word [r13 + 0x18], ax
jne 0x14003df74
mov ebx, dword [r13 + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [r12 + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x14003df74
movzx ecx, word [r13 + 0x14]
mov r15d, dword [rcx + r13 + 0x24]
sub ebx, r15d
mov edx, ebx
mov qword [rbp - 0x71], rdx
je 0x14003df63
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x14007c5ec], eax
jle 0x14003dbed
lea rcx, [0x14007c5ec]
call fcn.140061950
cmp dword [0x14007c5ec], 0xffffffff
jne 0x14003dbe9
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], reloc.WS2_32.dll_ntohs
lea ecx, [r12 + 0x20]
call fcn.140061a60
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x29], reloc.WS2_32.dll_setsockopt
mov qword [rbp - 0x21], 0x1f
movups xmm0, xmmword [0x140066968]
movups xmmword [rax], xmm0
mov ecx, dword [0x140066978]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x14006697c]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], r12b
lea r8, [rbp - 0x39]
mov rdx, qword [0x14007c518]
mov rcx, rdi
call fcn.140039b10
mov qword [0x14007c650], rax
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x14003dbdd
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003dbd7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003dbd7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400617c0
nop
lea rcx, [0x14007c5ec]
call fcn.1400618f0
mov rdx, qword [rbp - 0x71]
cmp qword [0x14007c650], 0
je 0x14003df63
mov qword [rbp - 0x79], r12
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.14003c8f0
test al, al
je 0x14003df63
mov r12, qword [rbp - 0x79]
test r12, r12
je 0x14003df63
mov r8d, dword [r13 + 0x54]
mov rdx, rsi
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r13 + 0x14]
add rbx, 0x24
xor edx, edx
mov edi, edx
cmp dx, word [r13 + 6]
jae 0x14003dc7e
add rbx, r13
nop dword [rax + rax]
test dword [rbx + 0x18], 0x80
ja 0x14003dc6d
mov ecx, dword [rbx]
add rcx, r14
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 [r13 + 6]
cmp edi, eax
jl 0x14003dc50
xor edx, edx
mov qword [rbp - 0x59], r15
sub r12, r15
mov qword [rbp - 0x69], r12
mov rsi, r12
sub rsi, qword [r13 + 0x30]
mov eax, 0x5a4d
lea r15, [r14 + 0x3c]
cmp word [r14], ax
jne 0x14003dcac
movsxd rax, dword [r15]
cmp dword [rax + r14], 0x4550
je 0x14003dcbc
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
mov rbx, rdx
jmp 0x14003dd79
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov r8, rdx
mov qword [rbp - 9], rdx
mov ecx, dword [rax + r14 + 0xb0]
test ecx, ecx
jne 0x14003dce7
movdqu xmmword [rbp - 0x39], xmm0
mov rbx, rdx
jmp 0x14003dd79
lea rbx, [r14 + rcx]
mov edi, dword [rax + r14 + 0xb4]
add rdi, rbx
cmp rbx, rdi
jae 0x14003dd67
mov rdx, qword [rbp - 0x11]
nop
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x14003dd62
mov eax, dword [rbx]
add rax, r14
mov qword [rbp - 0x39], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x31], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x29], eax
cmp rdx, r8
je 0x14003dd42
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rbp - 0x29]
movsd qword [rdx + 0x10], xmm1
add rdx, 0x18
mov qword [rbp - 0x11], rdx
jmp 0x14003dd57
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.14003f470
mov r8, qword [rbp - 9]
mov rdx, qword [rbp - 0x11]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rdi
jb 0x14003dd00
movdqu xmm1, xmmword [rbp - 0x19]
movups xmmword [rbp - 0x39], xmm1
movsd xmm0, qword [rbp - 9]
movsd qword [rbp - 0x29], xmm0
mov rbx, qword [rbp - 0x29]
mov r10, qword [rbp - 0x39]
mov r11, qword [rbp - 0x31]
cmp r10, r11
je 0x14003dde3
lea r8, [r10 + 0x10]
mov edi, 0xf000
xor r12d, r12d
mov edx, r12d
cmp dword [r8], r12d
jbe 0x14003ddd2
mov r11d, 0xa000
mov ecx, edx
mov rax, qword [r8 - 8]
movzx r9d, word [rax + rcx*2]
movzx eax, r9w
and ax, di
cmp ax, r11w
jne 0x14003ddc7
and r9d, 0xfff
mov rax, qword [r8 - 0x10]
add qword [r9 + rax], rsi
inc edx
cmp edx, dword [r8]
jb 0x14003dda0
mov r11, qword [rbp - 0x31]
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r11
jne 0x14003dd92
mov r12, qword [rbp - 0x69]
test r10, r10
je 0x14003de3e
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 0x14003de36
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003de36
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.1400617c0
mov eax, 0x5a4d
cmp word [r14], ax
jne 0x14003df74
movsxd rax, dword [r15]
cmp dword [rax + r14], 0x4550
jne 0x14003df74
mov ecx, dword [rax + r14 + 0xd8]
test ecx, ecx
je 0x14003deba
mov rdi, qword [rcx + r14 + 0x58]
test rdi, rdi
je 0x14003deba
mov rax, r14
sub rax, r12
add rdi, rax
movabs rsi, 0x2b992ddfa232
cmp qword [rdi], rsi
jne 0x14003df74
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
xor rax, rbx
xor rax, rsi
movabs rcx, 0x2b992ddfa233
cmp rax, rsi
cmove rax, rcx
mov qword [rdi], rax
mov rdx, r14
lea rcx, [rbp - 0x39]
call fcn.14003eb00
mov rdx, rax
mov rdi, qword [rbp - 0x61]
mov rcx, rdi
call fcn.14003dfa0
mov rbx, qword [rbp - 0x79]
test al, al
je 0x14003df45
mov r8, qword [rbp - 0x59]
add r8, r14
mov r9, qword [rbp - 0x71]
mov rdx, rbx
mov rcx, rdi
call fcn.1400397c0
test al, al
je 0x14003df45
mov r8d, dword [r13 + 0x28]
add r8, r12
xor r12d, r12d
mov dword [rbp - 0x79], r12d
mov rax, qword [rbp - 0x51]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.14003e2a0
test al, al
je 0x14003df45
mov rax, qword [rbp - 0x49]
test rax, rax
je 0x14003df2f
mov ecx, dword [rbp - 0x79]
mov dword [rax], ecx
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rbx
jmp 0x14003df76
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, rbx
mov rcx, rdi
call fcn.1400399e0
jmp 0x14003df74
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1400617a0
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret