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

Disassembly:
push r15
sub rsp, 0x40
mov r15, rcx
cmp edx, 1
jne 0x180006c58
mov rax, qword [0x18022f008]
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r14
test rax, rax
jne 0x180006970
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x18000694a
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x18000694a
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0xbce77302
lea rcx, [r14 + r11*4]
mov r9d, dword [rcx + rbx]
add r9, rbx
movzx r8d, byte [r9]
inc r9
test r8b, r8b
je 0x180006945
movsx ecx, r8b
lea r9, [r9 + 1]
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
movzx r8d, byte [r9 - 1]
cmova edx, ecx
xor edx, r10d
imul r10d, edx, 0x1000193
test r8b, r8b
jne 0x180006910
cmp r10d, 0x39b46c94
je 0x180006952
test r11d, r11d
jne 0x1800068f0
mov rax, qword [rax]
jmp 0x1800068c0
mov ecx, dword [rsi + 0x24]
add rcx, rbx
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
add rax, rbx
mov qword [0x18022f008], rax
call rax
mov rdx, qword [0x18022f020]
mov rbp, rax
test rdx, rdx
jne 0x180006a50
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop word [rax + rax]
mov rbx, qword [rcx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
mov esi, dword [rdx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x180006a2a
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x180006a2a
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0x35e45fe6
lea rax, [r14 + r11*4]
mov r8d, dword [rax + rbx]
add r8, rbx
movzx r9d, byte [r8]
inc r8
test r9b, r9b
je 0x180006a25
movsx eax, r9b
lea r8, [r8 + 1]
sub r9b, 0x41
mov edx, eax
or edx, 0x20
cmp r9b, 0x19
movzx r9d, byte [r8 - 1]
cmova edx, eax
xor edx, r10d
imul r10d, edx, 0x1000193
test r9b, r9b
jne 0x1800069f0
cmp r10d, 0xc5b4c3b6
je 0x180006a32
test r11d, r11d
jne 0x1800069d0
mov rcx, qword [rcx]
jmp 0x1800069a0
mov ecx, dword [rsi + 0x24]
add rcx, rbx
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rbx
mov edx, dword [rcx + rdx*4]
add rdx, rbx
mov qword [0x18022f020], rdx
mov rcx, rbp
call rdx
add eax, 0xffffff80
test eax, 0xffffff7f
je 0x180006b4a
mov rax, qword [0x18022f000]
test rax, rax
jne 0x180006b40
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x180006b1a
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x180006b1a
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0xccee47f7
lea rcx, [r14 + r11*4]
mov r8d, dword [rcx + rbx]
add r8, rbx
movzx r9d, byte [r8]
inc r8
test r9b, r9b
je 0x180006b15
movsx ecx, r9b
lea r8, [r8 + 1]
sub r9b, 0x41
mov edx, ecx
or edx, 0x20
cmp r9b, 0x19
movzx r9d, byte [r8 - 1]
cmova edx, ecx
xor edx, r10d
imul r10d, edx, 0x1000193
test r9b, r9b
jne 0x180006ae0
cmp r10d, 0xd894ef1b
je 0x180006b22
test r11d, r11d
jne 0x180006ac0
mov rax, qword [rax]
jmp 0x180006a90
mov ecx, dword [rsi + 0x24]
add rcx, rbx
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
add rax, rbx
mov qword [0x18022f000], rax
mov edx, 0x80
mov rcx, rbp
call rax
mov rax, qword [0x18022f018]
mov rbp, qword [rsp + 0x58]
test rax, rax
jne 0x180006c1f
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x180006bf9
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x180006bf9
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0xb3fd2b26
lea rcx, [r14 + r11*4]
mov r9d, dword [rcx + rbx]
add r9, rbx
movzx ecx, byte [r9]
inc r9
test cl, cl
je 0x180006bf4
nop
movsx edx, cl
lea r9, [r9 + 1]
sub cl, 0x41
mov r8d, edx
or r8d, 0x20
cmp cl, 0x19
movzx ecx, byte [r9 - 1]
cmova r8d, edx
xor r8d, r10d
imul r10d, r8d, 0x1000193
test cl, cl
jne 0x180006bc0
cmp r10d, 0x8f0c8776
je 0x180006c01
test r11d, r11d
jne 0x180006ba0
mov rax, qword [rax]
jmp 0x180006b70
mov ecx, dword [rsi + 0x24]
add rcx, rbx
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
add rax, rbx
mov qword [0x18022f018], rax
xor ecx, ecx
lea r8, [0x1800064e0]
mov qword [rsp + 0x28], rcx
mov r9, r15
xor edx, edx
mov dword [rsp + 0x20], ecx
call rax
mov r14, qword [rsp + 0x30]
mov eax, 1
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r15
ret
xor eax, eax
add rsp, 0x40
pop r15
ret