Function at 0x140050e10
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140161080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword gs:[0x58]
mov ebx, 1
mov edi, reloc.WS2_32.dll_recv
add rdi, qword [rax]
mov eax, dword [rdi]
cmp dword [0x140163d20], eax
jle 0x140050e83
lea rcx, [0x140163d20]
call fcn.14011a460
cmp dword [0x140163d20], 0xffffffff
jne 0x140050e83
mov r8d, ebx
lea rcx, [0x140139db8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [0x140163d20]
mov qword [0x140163d18], rax
call fcn.14011a3f4
mov eax, dword [rdi]
cmp dword [0x140163d3c], eax
jle 0x140050ebc
lea rcx, [0x140163d3c]
call fcn.14011a460
cmp dword [0x140163d3c], 0xffffffff
jne 0x140050ebc
mov rax, qword [0x140163d18]
lea rcx, [0x140163d3c]
mov qword [0x140163d90], rax
call fcn.14011a3f4
mov rax, qword [0x140163d90]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140051155
mov eax, dword [rdi]
cmp dword [0x140163d50], eax
jle 0x140050f15
lea rcx, [0x140163d50]
call fcn.14011a460
cmp dword [0x140163d50], 0xffffffff
jne 0x140050f15
mov rax, qword [0x140163d90]
lea rcx, [0x140163d50]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x140163d18]
mov qword [0x140163da8], rdx
call fcn.14011a3f4
mov rax, qword [0x140163da8]
cmp dword [rax], 0x4550
jne 0x140051155
mov eax, dword [rdi]
cmp dword [0x140163d40], eax
mov qword [rsp + 0x70], rsi
jle 0x140050f6c
lea rcx, [0x140163d40]
call fcn.14011a460
cmp dword [0x140163d40], 0xffffffff
jne 0x140050f6c
mov rax, qword [0x140163da8]
lea rcx, [0x140163d40]
add rax, 0x108
mov qword [0x140163df8], rax
call fcn.14011a3f4
mov eax, dword [rdi]
cmp dword [0x140163de8], eax
jle 0x140050fa5
lea rcx, [0x140163de8]
call fcn.14011a460
cmp dword [0x140163de8], 0xffffffff
jne 0x140050fa5
mov rax, qword [0x140163df8]
lea rcx, [0x140163de8]
mov qword [0x140163d00], rax
call fcn.14011a3f4
mov eax, dword [rdi]
cmp dword [0x140163dec], eax
jle 0x140050fe2
lea rcx, [0x140163dec]
call fcn.14011a460
cmp dword [0x140163dec], 0xffffffff
jne 0x140050fe2
mov rax, qword [0x140163da8]
lea rcx, [0x140163dec]
movzx edx, word [rax + 6]
mov word [0x140163d10], dx
call fcn.14011a3f4
xchg byte [0x140163d4c], bl
mov rdx, qword [0x140163df8]
xor esi, esi
test bl, bl
jne 0x140051056
movzx eax, word [0x140163d10]
lea rcx, [rax + rax*4]
mov rax, qword [0x140163d00]
lea r8, [rax + rcx*8]
cmp rdx, r8
jae 0x140051056
lea r9, str.PAGE
nop word [rax + rax]
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x140051046
cmp rcx, 5
jne 0x140051030
jmp 0x140051056
add rdx, 0x28
mov qword [0x140163df8], rdx
cmp rdx, r8
jb 0x140051020
mov eax, dword [rdi]
cmp dword [0x140163cf4], eax
jle 0x1400510a0
lea rcx, [0x140163cf4]
call fcn.14011a460
cmp dword [0x140163cf4], 0xffffffff
jne 0x140051099
mov rax, qword [0x140163df8]
lea rcx, [0x140163cf4]
mov edx, dword [rax + 0xc]
add rdx, qword [0x140163d18]
mov qword [0x140163dd0], rdx
call fcn.14011a3f4
mov rdx, qword [0x140163df8]
mov ecx, dword [rdx + 0x10]
mov r10, qword [0x140163dd0]
movdqa xmm0, xmmword [0x140145790]
movdqa xmm1, xmmword [0x140145320]
mov dword [rsp + 0x40], 0x3f003f00
mov dword [rsp + 0x44], 0x78483f00
lea rbx, [rcx + r10]
mov dword [rsp + 0x48], 0x78c07885
mov rax, rbx
mov word [rsp + 0x4c], 0x780f
movdqu xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
cmp rcx, 0x17
jb 0x14005113a
lea r11, [rbx - 0x17]
nop word [rax + rax]
mov r8, r10
lea rdx, [rsp + 0x20]
nop dword [rax + rax]
movzx r9d, word [rdx]
movzx ecx, r9w
shr cx, 8
cmp cl, 0x3f
je 0x140051126
cmp byte [r8], r9b
jne 0x14005114b
inc r8
lea rcx, [rsp + 0x4e]
add rdx, 2
cmp rdx, rcx
jne 0x140051110
mov rax, r10
cmp rax, rbx
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x70]
jmp 0x140051157
cmp r10, r11
je 0x14005113a
inc r10
jmp 0x140051100
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14011a390
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret