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

Disassembly:
mov r11, rsp
sub rsp, 0x98
mov rax, qword [0x1400c30c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r10, qword [0x1400c3c90]
mov qword [r11 + 0x18], rsi
xor esi, esi
mov qword [r11 - 0x38], rsi
test r10, r10
jne 0x1400315f7
mov rax, qword gs:[0x60]
mov r9d, esi
mov qword [r11 + 0x20], rdi
mov edi, 0xdf6a51c
mov qword [r11 - 8], r12
mov qword [r11 - 0x10], r14
mov rcx, qword [rax + 0x18]
mov qword [r11 - 0x18], r15
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov rax, qword [rcx + 0x10]
mov r12, qword [rax]
mov r14, r12
nop word [rax + rax]
movups xmm0, xmmword [r14 + 0x58]
movd eax, xmm0
sub ax, 8
test r9d, r9d
je 0x14003147d
psrldq xmm0, 8
mov edx, 0x811c9dc5
movq rcx, xmm0
movzx eax, ax
shr rax, 1
lea r8, [rcx + rax*2]
cmp rcx, r8
je 0x140031474
movsx eax, byte [rcx]
add rcx, 2
xor eax, edx
imul edx, eax, 0x1000193
cmp rcx, r8
jne 0x140031460
cmp edx, r9d
jne 0x1400315a8
mov r11, qword [r14 + 0x30]
movsxd rax, dword [r11 + 0x3c]
mov rcx, qword [rax + r11 + 0x88]
mov rbp, rcx
mov ebx, ecx
shr rbp, 0x20
add rbx, r11
cmp rbx, r11
je 0x1400315a8
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x1400315a8
mov r15d, dword [rbx + 0x20]
nop dword [rax]
nop word [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [r15 + r8*4]
mov eax, dword [rax + r11]
add rax, r11
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x1400314f7
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 0x1400314e0
cmp edx, edi
je 0x140031505
test r8d, r8d
jne 0x1400314c0
jmp 0x1400315a8
mov ecx, dword [rbx + 0x24]
add rcx, r11
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r11
mov r10d, dword [rcx + rdx*4]
add r10, r11
cmp r10, rbx
jbe 0x1400315c0
lea rax, [rbx + rbp]
cmp r10, rax
jae 0x1400315c0
movzx eax, byte [r10]
mov r9d, 0x811c9dc5
mov dword [rsp + 0x30], r9d
mov ecx, r9d
mov dword [rsp + 0x34], ecx
cmp al, 0x2e
je 0x14003156d
nop dword [rax]
movsx eax, al
inc r10
xor eax, r9d
imul r9d, eax, 0x1000193
movzx eax, byte [r10]
cmp al, 0x2e
jne 0x140031550
mov dword [rsp + 0x30], r9d
movzx eax, byte [r10 + 1]
inc r10
test al, al
je 0x14003159b
nop dword [rax]
movsx eax, al
lea r10, [r10 + 1]
xor eax, ecx
imul ecx, eax, 0x1000193
movzx eax, byte [r10]
test al, al
jne 0x140031580
mov dword [rsp + 0x34], ecx
mov rdi, qword [rsp + 0x30]
mov r14, qword [r12]
shr rdi, 0x20
mov rax, qword [r14]
mov r14, rax
cmp rax, r12
je 0x1400315bd
cmp qword [rax + 0x30], rsi
jne 0x140031430
mov r10, rsi
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov rdi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov qword [0x1400c3c90], r10
cmp byte [0x14009f291], sil
movups xmm0, xmmword [0x14009f278]
movzx eax, word [0x14009f290]
mov word [rsp + 0x58], ax
movups xmmword [rsp + 0x40], xmm0
movsd xmm0, qword [0x14009f288]
movsd qword [rsp + 0x50], xmm0
je 0x1400317be
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140031779
movdqa xmm0, xmmword [str.7777777777777777]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x14009f740]
movdqa xmm4, xmmword [0x14009f790]
movdqa xmmword [rsp + 0x30], xmm0
mov edx, dword [rsp + 0x30]
movaps xmmword [rsp + 0x70], xmm6
movdqa xmm6, xmmword [0x14009f760]
nop dword [rax + rax]
movd xmm2, esi
lea eax, [rsi + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add esi, 8
pmuldq xmm1, xmm4
mov eax, esi
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14009f770]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14009f770]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp esi, 0x18
jl 0x140031670
movaps xmm6, xmmword [rsp + 0x70]
cmp eax, 0x1a
jge 0x1400317be
movsxd rax, esi
lea r8, [rsp + 0x40]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, sil
inc esi
sub al, cl
add al, 0x37
xor byte [r8 - 1], al
cmp esi, 0x1a
jl 0x140031790
lea rax, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call r10
mov rsi, qword [rsp + 0xb0]
test eax, eax
jne 0x1400317f8
mov qword [0], 1
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400997c0
add rsp, 0x98
ret