Function at 0x140066650
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push r13
sub rsp, 0x530
mov rax, qword [0x1401abb80]
xor rax, rsp
mov qword [rsp + 0x500], rax
mov qword [r11 + 8], rbx
xor eax, eax
mov qword [r11 + 0x10], rbp
mov ecx, 0x4d0
mov qword [r11 + 0x18], rsi
xor r13d, r13d
mov qword [r11 - 0x10], rdi
lea rdi, [rsp + 0x30]
rep stosb byte [rdi], al
mov rcx, qword [0x1401ac7b0]
mov qword [r11 - 0x18], r12
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov dword [rsp + 0x60], 0x100010
test rcx, rcx
jne 0x1400667fa
mov rax, qword gs:[0x60]
mov ebp, r13d
mov r10d, 0x9bc5a608
mov rcx, qword [rax + 0x18]
mov r15, qword [rcx + 0x10]
mov rbx, r15
movups xmm0, xmmword [rbx + 0x58]
movd eax, xmm0
sub ax, 8
test ebp, ebp
je 0x14006671c
psrldq xmm0, 8
mov edx, 0x811c9dc5
movq rcx, xmm0
movzx eax, ax
shr rax, 1
lea rdi, [rcx + rax*2]
cmp rcx, rdi
je 0x140066714
nop
movsx eax, byte [rcx]
add rcx, 2
xor eax, edx
imul edx, eax, 0x1000193
cmp rcx, rdi
jne 0x140066700
cmp edx, ebp
jne 0x1400667e1
mov r8, qword [rbx + 0x30]
movsxd rax, dword [r8 + 0x3c]
mov rcx, qword [rax + r8 + 0x88]
mov r14, rcx
mov r9d, ecx
shr r14, 0x20
add r9, r8
cmp r9, r8
je 0x1400667e1
mov edi, dword [r9 + 0x18]
test edi, edi
je 0x1400667e1
mov esi, dword [r9 + 0x20]
nop dword [rax]
nop word [rax + rax]
dec edi
mov edx, 0x811c9dc5
lea rax, [rsi + rdi*4]
mov eax, dword [rax + r8]
add rax, r8
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x140066797
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x140066780
cmp edx, r10d
je 0x1400667a2
test edi, edi
jne 0x140066760
jmp 0x1400667e1
mov eax, dword [r9 + 0x24]
mov ecx, dword [r9 + 0x1c]
add rax, r8
add rcx, r8
movzx eax, word [rax + rdi*2]
mov ecx, dword [rcx + rax*4]
add rcx, r8
cmp rcx, r9
jbe 0x1400667f3
lea rax, [r9 + r14]
cmp rcx, rax
jae 0x1400667f3
mov ebp, 0x811c9dc5
mov rbx, r15
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x24], ebp
mov r10, qword [rsp + 0x20]
shr r10, 0x20
mov rax, qword [rbx]
mov rbx, rax
cmp rax, r15
jne 0x1400666d0
mov rcx, r13
mov qword [0x1401ac7b0], rcx
call rcx
mov rdi, qword [0x1401ac7a8]
mov r12, rax
test rdi, rdi
jne 0x14006695a
mov rax, qword gs:[0x60]
mov ebp, r13d
mov r10d, 0x85cca27e
mov rcx, qword [rax + 0x18]
mov r15, qword [rcx + 0x10]
mov rbx, r15
nop dword [rax]
movups xmm0, xmmword [rbx + 0x58]
movd eax, xmm0
sub ax, 8
test ebp, ebp
je 0x14006687c
psrldq xmm0, 8
mov edx, 0x811c9dc5
movq rcx, xmm0
movzx eax, ax
shr rax, 1
lea rdi, [rcx + rax*2]
cmp rcx, rdi
je 0x140066874
nop
movsx eax, byte [rcx]
add rcx, 2
xor eax, edx
imul edx, eax, 0x1000193
cmp rcx, rdi
jne 0x140066860
cmp edx, ebp
jne 0x140066941
mov r8, qword [rbx + 0x30]
movsxd rax, dword [r8 + 0x3c]
mov rcx, qword [rax + r8 + 0x88]
mov r14, rcx
mov r9d, ecx
shr r14, 0x20
add r9, r8
cmp r9, r8
je 0x140066941
mov edi, dword [r9 + 0x18]
test edi, edi
je 0x140066941
mov esi, dword [r9 + 0x20]
nop dword [rax]
nop word [rax + rax]
dec edi
mov edx, 0x811c9dc5
lea rax, [rsi + rdi*4]
mov ecx, dword [rax + r8]
add rcx, r8
movzx eax, byte [rcx]
inc rcx
test al, al
je 0x1400668f7
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
test al, al
jne 0x1400668e0
cmp edx, r10d
je 0x140066902
test edi, edi
jne 0x1400668c0
jmp 0x140066941
mov eax, dword [r9 + 0x24]
mov ecx, dword [r9 + 0x1c]
add rax, r8
add rcx, r8
movzx eax, word [rax + rdi*2]
mov edi, dword [rcx + rax*4]
add rdi, r8
cmp rdi, r9
jbe 0x140066953
lea rax, [r14 + r9]
cmp rdi, rax
jae 0x140066953
mov ebp, 0x811c9dc5
mov rbx, r15
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x24], ebp
mov r10, qword [rsp + 0x20]
shr r10, 0x20
mov rax, qword [rbx]
mov rbx, rax
cmp rax, r15
jne 0x140066830
mov rdi, r13
mov qword [0x1401ac7a8], rdi
lea rdx, [rsp + 0x30]
mov rcx, r12
call rdi
mov r15, qword [rsp + 0x510]
mov r14, qword [rsp + 0x518]
mov r12, qword [rsp + 0x520]
mov rsi, qword [rsp + 0x550]
mov rbp, qword [rsp + 0x548]
mov rbx, qword [rsp + 0x540]
test eax, eax
jne 0x140066a0c
mov byte [rsp + 0x20], 0x92
mov rdi, r13
mov byte [rsp + 0x21], 0x84
mov r9d, reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x22], 0x91
movabs r8, 0xa3e84e1e360a30f8
mov byte [rsp + 0x23], 0x88
mov byte [rsp + 0x24], 0xf6
movzx eax, byte [rsp + 0x20]
nop dword [rax]
movzx eax, byte [rsp + rdi + 0x20]
mov rcx, rdi
and ecx, r9d
mov rdx, r8
cmp rcx, r9
cmovae rcx, r9
shl cl, 2
shr rdx, cl
and dl, r9b
xor dl, al
lea eax, [rdi - 8]
xor dl, al
mov byte [rsp + rdi + 0x20], dl
inc rdi
cmp rdi, 5
jb 0x1400669d0
lea rcx, [rsp + 0x20]
call fcn.140065ef0
cmp qword [rsp + 0x78], r13
mov eax, 1
mov rdi, qword [rsp + 0x528]
cmovne r13d, eax
cmp qword [rsp + 0x80], 0
je 0x140066a30
inc r13d
cmp qword [rsp + 0x88], 0
je 0x140066a3e
inc r13d
cmp qword [rsp + 0x90], 0
lea eax, [r13 + 1]
jne 0x140066a50
mov eax, r13d
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.1400cee20
add rsp, 0x530
pop r13
ret