Function at 0x180022c70
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
lea rax, [rbp - 0x40]
mov qword [rbp + 0x20], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xor ebx, ebx
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rbx
lea r14, [0x1801c67c0]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop
inc r8
cmp byte [r14 + r8], bl
jne 0x180022cb0
mov rdx, r14
lea rcx, [rbp - 0x40]
call fcn.180017f70
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rbx
lea rsi, [0x1801c67b0]
nop dword [rax]
inc rdi
cmp byte [rsi + rdi], 0
jne 0x180022ce0
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.180017f70
nop
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x20]
lea rcx, [0x1801c6870]
call fcn.1800047d0
cmp byte [0x1801c6aa8], 0
je 0x180022dd0
mov eax, dword [0x180160718]
mov dword [rbp + 0x20], eax
movzx eax, word [0x18016071c]
mov word [rbp + 0x24], ax
mov byte [rbp + 0x20], Ordinal_79
xor byte [rbp + 0x21], 0x37
xor byte [rbp + 0x22], 0x38
xor byte [rbp + 0x23], 0x39
xor al, 0x3a
mov byte [rbp + 0x24], al
xor byte [rbp + 0x25], 0x3b
lea r8, [0x180160730]
lea rdx, [rbp + 0x20]
lea rcx, [0x1801c6808]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x1801c6808]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, qword [0x1801c6808]
mov edx, 0xa
lea r8d, [rdx - 9]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [0x1801c6808]
mov edx, 0xa
lea r8d, [rdx - 9]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [0x1801c6808]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov byte [0x1801c7048], 1
mov dword [0x1801c6b80], 1
mov dword [0x1801c6b7c], 3
jmp 0x18002301f
mov r10, qword [0x1801c7068]
test r10, r10
jne 0x180022e97
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov r14, qword [rax]
mov rsi, r14
nop word [rax + rax]
mov r9, qword [rsi + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov edi, dword [rax + r9 + 0x88]
add rdi, r9
cmp rdi, r9
je 0x180022e77
mov r8d, dword [rdi + 0x18]
test r8d, r8d
je 0x180022e77
mov r11d, dword [rdi + 0x20]
nop word [rax + rax]
dec r8d
lea rax, [r11 + r8*4]
mov eax, dword [rax + r9]
add rax, r9
mov edx, 0x811c9dc5
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x180022e72
nop dword [rax]
movsx ecx, cl
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax]
lea rax, [rax + 1]
test cl, cl
jne 0x180022e50
cmp edx, 0x23a979e4
je 0x180023034
test r8d, r8d
jne 0x180022e30
mov rax, qword [rsi]
mov rsi, rax
cmp rax, r14
je 0x180022e8d
cmp qword [rax + 0x30], 0
jne 0x180022e00
mov r10, rbx
mov qword [0x1801c7068], r10
mov eax, dword [0x180160728]
mov dword [rbp - 0x48], eax
movzx eax, byte [0x18016072c]
movsd xmm0, qword [str.pVQU__]
mov byte [rbp - 0x44], al
movsd qword [rbp - 0x50], xmm0
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x180022fbc
movdqa xmm4, xmmword [0x180160af0]
movdqa xmm2, xmmword [0x180160a10]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180160a30]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180160a40]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1801b0860]
movd xmm0, dword [str.pVQU__]
xorps xmm2, xmm0
movd dword [rbp - 0x50], xmm2
movdqa xmm3, xmmword [0x180160a20]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180160a30]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180160a40]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1801b0860]
movd xmm0, dword [rbp - 0x4c]
xorps xmm2, xmm0
movd dword [rbp - 0x4c], xmm2
mov ebx, 8
movsxd rax, ebx
lea r8, [rbp - 0x50]
add r8, rax
nop word [rax + rax]
mov eax, 0x51eb851f
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, bl
sub al, cl
add al, 0x36
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0xd
jl 0x180022fd0
lea rdx, [0x1801c6ab0]
cmp qword [0x1801c6ac8], 0xf
cmova rdx, qword [0x1801c6ab0]
xor r9d, r9d
lea r8, [rbp - 0x50]
xor ecx, ecx
call r10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, dword [rdi + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r9
mov r10d, dword [rcx + rdx*4]
add r10, r9
jmp 0x180022e90