Function at 0x140077060
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 [0x14016bf00]
xor rax, rsp
mov qword [rbp - 9], rax
mov rsi, rdx
mov r15, 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 0x14007769f
movsxd r13, dword [rdx + 0x3c]
add r13, rdx
mov qword [rbp - 0x61], r13
cmp dword [r13], 0x4550
jne 0x14007769f
test r13, r13
je 0x14007769f
mov eax, 0x20b
cmp word [r13 + 0x18], ax
jne 0x14007769f
mov ebx, dword [r13 + 0x50]
mov edx, ebx
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
je 0x14007769f
movzx ecx, word [r13 + 0x14]
mov eax, dword [rcx + r13 + 0x24]
mov dword [rsp + 0x30], eax
sub ebx, eax
mov dword [rsp + 0x48], ebx
je 0x14007768e
mov ecx, reloc.WS2_32.dll_recv
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rcx + rax]
cmp dword [0x14018da9c], eax
jle 0x140077212
lea rcx, [0x14018da9c]
call fcn.140121170
cmp dword [0x14018da9c], 0xffffffff
jne 0x140077212
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x79], xmm1
mov ecx, 0x20
call fcn.140121428
mov qword [rsp + 0x50], rax
movdqa xmm0, xmmword [reloc.WS2_32.dll_setsockopt]
movdqu xmmword [rbp - 0x79], xmm0
movups xmm0, xmmword [str.ExAllocatePoolWithTag]
movups xmmword [rax], xmm0
mov ecx, dword [0x140154f90]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x140154f94]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], dil
lea r8, [rsp + 0x50]
mov rdx, qword [0x14018d148]
mov rcx, r15
call fcn.140073170
mov qword [0x14018db00], rax
mov rdx, qword [rbp - 0x71]
cmp rdx, 0xf
jbe 0x140077206
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140077200
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140077200
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401210c0
nop
lea rcx, [0x14018da9c]
call fcn.140121104
cmp qword [0x14018db00], 0
je 0x14007768e
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.140075f00
test al, al
je 0x14007768e
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14007768e
mov r8d, dword [r13 + 0x54]
mov rdx, rsi
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 0x1400772b2
add rbx, r13
mov qword [rbp - 0x61], r13
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
test dword [rbx + 0x18], 0x80
ja 0x1400772a1
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 [r13 + 6]
cmp edi, eax
jl 0x140077284
xor edx, edx
mov eax, dword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
sub r14, rax
mov qword [rsp + 0x40], r14
mov rsi, r14
sub rsi, qword [r13 + 0x30]
mov r13d, 0x5a4d
cmp word [r12], r13w
jne 0x1400773ab
movsxd rax, dword [r12 + 0x3c]
add rax, r12
cmp dword [rax], 0x4550
jne 0x1400773ab
test rax, rax
je 0x1400773ab
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
mov r8, rdx
mov qword [rbp - 0x39], rdx
mov ecx, dword [rax + 0xb0]
test ecx, ecx
jne 0x140077319
mov rbx, rdx
jmp 0x1400773b1
lea rbx, [r12 + rcx]
mov edi, dword [rax + 0xb4]
add rdi, rbx
cmp rbx, rdi
jae 0x14007739b
mov rdx, qword [rbp - 0x41]
nop
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x140077396
mov eax, dword [rbx]
add rax, r12
mov qword [rsp + 0x50], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x58], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x79], eax
cmp rdx, r8
je 0x140077375
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rbp - 0x79]
movsd qword [rdx + 0x10], xmm1
add rdx, 0x18
mov qword [rbp - 0x41], rdx
jmp 0x14007738b
lea r8, [rsp + 0x50]
lea rcx, [rbp - 0x49]
call fcn.140078ed0
mov r8, qword [rbp - 0x39]
mov rdx, qword [rbp - 0x41]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rdi
jb 0x140077330
movdqu xmm1, xmmword [rbp - 0x49]
movsd xmm0, qword [rbp - 0x39]
movsd qword [rbp - 0x79], xmm0
mov rbx, qword [rbp - 0x79]
jmp 0x1400773b1
xorps xmm1, xmm1
mov rbx, rdx
movq r10, xmm1
psrldq xmm1, 8
movq r11, xmm1
cmp r10, r11
je 0x140077422
lea r8, [r10 + 0x10]
mov edi, 0xfff
xor r14d, r14d
mov edx, r14d
cmp dword [r8], r14d
jbe 0x140077410
nop dword [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 0x140077409
movzx ecx, r9w
mov rax, qword [r8 - 0x10]
add qword [rax + rcx], rsi
inc edx
cmp edx, dword [r8]
jb 0x1400773e0
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r11
jne 0x1400773d1
mov r14, qword [rsp + 0x40]
test r10, r10
je 0x14007747d
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 0x140077475
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140077475
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.1401210c0
cmp word [r12], r13w
jne 0x14007769f
movsxd rax, dword [r12 + 0x3c]
add rax, r12
cmp dword [rax], 0x4550
jne 0x14007769f
test rax, rax
je 0x14007769f
mov ecx, dword [rax + 0xd8]
test ecx, ecx
je 0x1400774ff
mov rdi, qword [rcx + r12 + 0x58]
test rdi, rdi
je 0x1400774ff
mov rax, r12
sub rax, r14
add rdi, rax
movabs rsi, 0x2b992ddfa232
cmp qword [rdi], rsi
jne 0x14007769f
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, rsi
movabs rax, 0x2b992ddfa233
cmp rcx, rsi
cmove rcx, rax
mov qword [rdi], rcx
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.140078590
mov r13, rax
mov qword [rbp - 0x51], rax
mov rsi, qword [rax]
mov rax, qword [rax + 8]
mov qword [rbp - 0x69], rax
cmp rsi, rax
je 0x1400775a8
mov rcx, rsi
call fcn.140077cc0
mov rdi, rax
test rax, rax
je 0x140077666
mov rbx, qword [rsi + 0x20]
mov r14, qword [rsi + 0x28]
cmp rbx, r14
je 0x140077599
nop dword [rax + rax]
mov r8, rbx
mov rdx, rdi
mov rcx, r15
call fcn.140073170
mov rcx, rax
test rax, rax
jne 0x140077589
mov rdx, qword [0x14018d148]
cmp rdi, rdx
je 0x140077589
mov r8, rbx
mov rcx, r15
call fcn.140073170
mov rcx, rax
test rax, rax
je 0x140077666
mov rax, qword [rbx + 0x20]
mov qword [rax], rcx
add rbx, 0x28
cmp rbx, r14
jne 0x140077550
add rsi, 0x38
cmp rsi, qword [rbp - 0x69]
jne 0x140077527
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov rcx, r13
call fcn.1400776d0
mov esi, dword [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov r8d, dword [rsp + 0x30]
add r8, r12
mov r9d, esi
mov rdx, rbx
mov rcx, r15
call fcn.140072e10
test al, al
je 0x14007766e
mov rax, qword [rbp - 0x61]
mov edi, dword [rax + 0x28]
add rdi, r14
mov qword [rsp + 0x38], rbx
mov r9d, esi
mov r8, rbx
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.140044140
test al, al
je 0x14007766e
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], rbx
mov rax, qword [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x19]
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.140077840
test al, al
je 0x14007766e
mov rdx, qword [rbp - 0x59]
test rdx, rdx
je 0x14007763f
mov eax, dword [rsp + 0x30]
mov dword [rdx], eax
cmp byte [rbp + 0x67], 0
je 0x140077650
mov rdx, rbx
mov rcx, r15
call fcn.140073050
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rbx
jmp 0x1400776a1
mov rcx, r13
call fcn.1400776d0
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x38]
mov rcx, r15
call fcn.140073050
jmp 0x14007769f
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140120e00
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret