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

Disassembly:
mov rax, rsp
push rbp
push rsi
push r12
mov rbp, rsp
sub rsp, 0x60
mov rsi, qword [0x1802338f8]
mov r12, rcx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x20], r15
xor r15d, r15d
test rsi, rsi
jne 0x180021607
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x18]
mov rax, qword [rdx + 0x10]
mov rsi, qword [rax]
mov r11, rsi
nop word [rax + rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x1800215e8
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x1800215e8
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0x664c59c3
lea rax, [rdi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x1800215e3
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 0x1800215c0
cmp edx, 0xeaa4dc47
je 0x1800217a0
test r8d, r8d
jne 0x1800215a0
mov rax, qword [r11]
mov r11, rax
cmp rax, rsi
je 0x1800215fd
cmp qword [rax + 0x30], r15
jne 0x180021570
mov rsi, r15
mov qword [0x1802338f8], rsi
movdqa xmm0, xmmword [0x18019eda0]
mov rcx, r15
movdqu xmmword [rbp - 0x28], xmm0
mov dword [rbp - 0x18], 0x101f1224
mov dword [rbp - 0x14], 0x40e0f09
mov word [rbp - 0x10], 0x100
nop dword [rax + rax]
lea eax, [rcx + 0x66]
xor byte [rbp + rcx - 0x28], al
inc rcx
cmp rcx, 0x18
jb 0x180021630
mov rdx, qword [0x1802338f0]
mov byte [rbp - 0xf], r15b
test rdx, rdx
jne 0x18002171f
mov rax, qword gs:[0x60]
mov qword [rsp + 0x90], r14
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov r14, qword [rax]
mov r11, r14
nop dword [rax]
nop word [rax + rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x1800216f8
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x1800216f8
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0x654c5830
lea rax, [rdi + r8*4]
mov ecx, dword [rax + r9]
add rcx, r9
movzx eax, byte [rcx]
inc rcx
test al, al
je 0x1800216f3
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 0x1800216d0
cmp edx, 0x1a111c27
je 0x1800217bc
test r8d, r8d
jne 0x1800216b0
mov rax, qword [r11]
mov r11, rax
cmp rax, r14
je 0x18002170d
cmp qword [rax + 0x30], r15
jne 0x180021680
mov rdx, r15
mov r14, qword [rsp + 0x90]
mov qword [0x1802338f0], rdx
mov rdi, qword [rsp + 0x88]
mov ecx, 0x1466
mov rbx, qword [rsp + 0x80]
mov dword [rbp - 0x40], 0x14081425
mov dword [rbp - 0x3c], 0x140c141a
mov dword [rbp - 0x38], 0x143f1438
mov dword [rbp - 0x34], 0x14091442
mov dword [rbp - 0x30], 0x14031402
mov word [rbp - 0x2c], r15w
mov byte [rbp - 0x2a], 1
lea eax, [rcx + r15]
xor word [rbp + r15*2 - 0x40], ax
inc r15
cmp r15, 0xa
jb 0x180021760
mov r15, qword [rsp + 0x98]
lea rcx, [rbp - 0x40]
mov byte [rbp - 0x2a], 0
call rdx
lea rdx, [rbp - 0x28]
mov rcx, rax
call rsi
call rax
mov qword [r12], rax
mov rax, r12
add rsp, 0x60
pop r12
pop rsi
pop rbp
ret
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov esi, dword [rcx + rdx*4]
add rsi, r9
jmp 0x180021600
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov edx, dword [rcx + rdx*4]
add rdx, r9
jmp 0x180021710