Function at 0x140028be0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r12, rcx
mov qword [rsp + 0x38], rcx
mov eax, 0x5a4d
cmp word [0x1400b7100], ax
jne 0x140028c8a
movsxd rsi, dword [reloc.WLDAP32.dll_Ordinal_200]
lea rbp, [0x1400b7100]
add rsi, rbp
cmp dword [rsi], 0x4550
jne 0x140028c8a
mov eax, 0x20b
cmp word [rsi + 0x18], ax
jne 0x140028c8a
mov ebx, dword [rsi + 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 0x140028c8a
movzx ecx, word [rsi + 0x14]
mov eax, dword [rcx + rsi + 0x24]
mov dword [rsp + 0x30], eax
sub ebx, eax
mov r13d, ebx
jne 0x140028caa
xor r14d, r14d
mov rdi, r14
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, rdi
mov rcx, r12
call fcn.140024ed0
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
xor r14d, r14d
mov eax, dword [rcx + rax]
cmp dword [0x1400bc9f4], eax
jle 0x140028da5
lea rcx, [0x1400bc9f4]
call fcn.14008bbf8
cmp dword [0x1400bc9f4], 0xffffffff
jne 0x140028da5
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
lea ecx, [r14 + 0x20]
call fcn.14008bc70
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], reloc.WS2_32.dll_setsockopt
mov qword [rsp + 0x58], Ordinal_35
movups xmm0, xmmword [str.ExAllocatePoolWithTag]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400aaa28]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x1400aaa2c]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], r14b
lea r8, [rsp + 0x40]
mov rdx, qword [0x1400bc728]
mov rcx, r12
call fcn.140024ff0
mov qword [0x1400bca58], rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140028d99
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028d93
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140028d93
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008bfbc
nop
lea rcx, [0x1400bc9f4]
call fcn.14008bb8c
cmp qword [0x1400bca58], 0
je 0x140028c6b
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.140027b80
test al, al
je 0x140028c6b
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x140028c6e
mov r8d, dword [rsi + 0x54]
mov rdx, rbp
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rsi + 0x14]
add rbx, 0x28
mov ebp, r14d
cmp r14w, word [rsi + 6]
jae 0x140028e40
add rbx, rsi
lea r12, [0x1400b7100]
nop dword [rax + rax]
test dword [rbx + 0x14], 0x80
ja 0x140028e2d
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 ebp
add rbx, 0x28
movzx eax, word [rsi + 6]
cmp ebp, eax
jl 0x140028e10
mov r12, qword [rsp + 0x38]
mov ebp, dword [rsp + 0x30]
mov rbx, rdi
sub rbx, rbp
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.1400297a0
mov rdx, rbx
sub rdx, qword [rsi + 0x30]
mov rcx, rax
call fcn.140028ef0
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.1400298f0
mov rdx, rax
mov rcx, r12
call fcn.140028ff0
test al, al
je 0x140028c6e
lea r8, [r15 + rbp]
mov r9, r13
mov rdx, rdi
mov rcx, r12
call fcn.140024cb0
test al, al
je 0x140028c6e
mov r8d, dword [rsi + 0x28]
add r8, rbx
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.140029320
test al, al
je 0x140028c6e
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x140028c8c