Function at 0x140007690
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xc0
mov rax, qword [0x1400aa080]
xor rax, rsp
mov qword [rbp - 1], rax
mov rdi, rcx
mov qword [rbp - 0x49], rcx
xor r13d, r13d
mov eax, 0x5a4d
cmp word [0x1400aa100], ax
jne 0x140007bb1
movsxd r15, dword [0x1400aa13c]
lea r12, [0x1400aa100]
add r15, r12
cmp dword [r15], 0x4550
jne 0x140007bb1
mov eax, 0x20b
cmp word [r15 + 0x18], ax
jne 0x140007bb1
mov ebx, dword [r15 + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [r13 + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
mov qword [rbp - 0x59], rax
test rax, rax
je 0x140007bb1
movzx ecx, word [r15 + 0x14]
mov r14d, dword [rcx + r15 + 0x24]
sub ebx, r14d
mov ecx, ebx
mov qword [rsp + 0x38], rcx
je 0x140007ba0
mov edx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rdx + rax]
cmp dword [0x1400ae5e4], eax
jle 0x140007842
lea rcx, [0x1400ae5e4]
call fcn.14007f880
cmp dword [0x1400ae5e4], 0xffffffff
jne 0x14000783d
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], r13
mov qword [rbp - 0x61], reloc.WS2_32.dll_ntohs
lea ecx, [r13 + 0x20]
call fcn.14007f8f8
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x69], reloc.WS2_32.dll_setsockopt
mov qword [rbp - 0x61], Ordinal_33
movups xmm0, xmmword [0x140093498]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400934a8]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x1400934ac]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], r13b
lea r8, [rbp - 0x79]
mov rdx, qword [0x1400ae278]
mov rcx, rdi
call fcn.1400037f0
mov qword [0x1400ae648], rax
mov rdx, qword [rbp - 0x61]
cmp rdx, 0xf
jbe 0x140007831
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000782b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000782b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007f7d0
nop
lea rcx, [0x1400ae5e4]
call fcn.14007f814
mov rcx, qword [rsp + 0x38]
cmp qword [0x1400ae648], 0
je 0x140007ba0
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140006640
test al, al
je 0x140007ba0
mov r13, qword [rsp + 0x30]
test r13, r13
je 0x140007ba0
mov r8d, dword [r15 + 0x54]
mov rdx, r12
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r15 + 0x14]
add rbx, 0x24
xor edx, edx
mov edi, edx
cmp dx, word [r15 + 6]
jae 0x1400078d1
add rbx, r15
test dword [rbx + 0x18], 0x80
ja 0x1400078c0
mov ecx, dword [rbx]
add rcx, rsi
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, r12
call sub.VCRUNTIME140.dll_memcpy
inc edi
add rbx, 0x28
movzx eax, word [r15 + 6]
cmp edi, eax
jl 0x1400078a3
xor edx, edx
mov qword [rbp - 0x41], r14
mov r12, r13
sub r12, r14
mov qword [rbp - 0x51], r12
mov eax, 0x5a4d
lea r14, [rsi + 0x3c]
cmp word [rsi], ax
jne 0x1400078f9
movsxd rax, dword [r14]
cmp dword [rax + rsi], 0x4550
je 0x140007904
xorps xmm1, xmm1
mov rdi, rdx
jmp 0x1400079b5
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov r8, rdx
mov qword [rbp - 9], rdx
mov ecx, dword [rax + rsi + 0xb0]
test ecx, ecx
jne 0x140007926
mov rdi, rdx
jmp 0x1400079b5
lea rbx, [rsi + rcx]
mov edi, dword [rax + rsi + 0xb4]
add rdi, rbx
cmp rbx, rdi
jae 0x1400079a7
mov rdx, qword [rbp - 0x11]
nop dword [rax]
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x1400079a2
mov eax, dword [rbx]
add rax, rsi
mov qword [rbp - 0x31], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x29], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x21], eax
cmp rdx, r8
je 0x140007982
movups xmm0, xmmword [rbp - 0x31]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rbp - 0x21]
movsd qword [rdx + 0x10], xmm1
add rdx, 0x18
mov qword [rbp - 0x11], rdx
jmp 0x140007997
lea r8, [rbp - 0x31]
lea rcx, [rbp - 0x19]
call fcn.140009040
mov r8, qword [rbp - 9]
mov rdx, qword [rbp - 0x11]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rdi
jb 0x140007940
movdqu xmm1, xmmword [rbp - 0x19]
movsd xmm0, qword [rbp - 9]
movsd qword [rbp - 0x69], xmm0
mov rdi, qword [rbp - 0x69]
mov r10, r12
sub r10, qword [r15 + 0x30]
movq r11, xmm1
psrldq xmm1, 8
movq rbx, xmm1
cmp r11, rbx
je 0x140007a38
lea r8, [r11 + 0x10]
mov esi, 0xa000
mov r13d, 0xf000
xor r12d, r12d
mov edx, r12d
cmp dword [r8], r12d
jbe 0x140007a1e
nop word [rax + rax]
mov ecx, edx
mov rax, qword [r8 - 8]
movzx r9d, word [rax + rcx*2]
movzx eax, r9w
and ax, r13w
cmp ax, si
jne 0x140007a17
and r9d, 0xfff
mov rax, qword [r8 - 0x10]
add qword [r9 + rax], r10
inc edx
cmp edx, dword [r8]
jb 0x1400079f0
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, rbx
jne 0x1400079e2
mov rsi, qword [rbp - 0x59]
mov r12, qword [rbp - 0x51]
mov r13, qword [rsp + 0x30]
test r11, r11
je 0x140007a93
sub rdi, r11
movabs rax, 0x2aaaaaaaaaaaaaab
imul rdi
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, r11
cmp rdx, 0x1000
jb 0x140007a8b
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007a8b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r11
call fcn.14007f7d0
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x140007bb1
movsxd rax, dword [r14]
cmp dword [rax + rsi], 0x4550
jne 0x140007bb1
mov ecx, dword [rax + rsi + 0xd8]
test ecx, ecx
je 0x140007b0c
mov rdi, qword [rcx + rsi + 0x58]
test rdi, rdi
je 0x140007b0c
mov rax, rsi
sub rax, r12
add rdi, rax
movabs r14, 0x2b992ddfa232
cmp qword [rdi], r14
jne 0x140007bb1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
xor rcx, rbx
xor rcx, r14
movabs rax, 0x2b992ddfa233
cmp rcx, r14
cmove rcx, rax
mov qword [rdi], rcx
mov rdx, rsi
lea rcx, [rbp - 0x79]
call fcn.140008870
mov rdx, rax
mov rbx, qword [rbp - 0x49]
mov rcx, rbx
call fcn.140007be0
test al, al
je 0x140007b82
mov r8, qword [rbp - 0x41]
add r8, rsi
mov r9, qword [rsp + 0x38]
mov rdx, r13
mov rcx, rbx
call fcn.1400034a0
test al, al
je 0x140007b82
mov r8d, dword [r15 + 0x28]
add r8, r12
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140007fb0
test al, al
je 0x140007b82
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r13
jmp 0x140007bb3
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r13
mov rcx, rbx
call fcn.1400036c0
jmp 0x140007bb1
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14007f7b0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret