Function at 0x180017970
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push r12
push r14
sub rsp, 0x28
mov rax, r8
mov r9, rdx
shr rax, 2
mov r12, rcx
mov r14, rcx
test eax, eax
je 0x1800179e0
mov r10, rcx
mov r11d, eax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9]
lea r10, [r10 + 4]
shl eax, 8
lea r9, [r9 + 4]
mov dword [r10 - 4], eax
movzx edx, byte [r9 - 3]
or edx, eax
shl edx, 8
mov dword [r10 - 4], edx
movzx ecx, byte [r9 - 2]
or ecx, edx
shl ecx, 8
mov dword [r10 - 4], ecx
movzx eax, byte [r9 - 1]
or eax, ecx
mov dword [r10 - 4], eax
sub r11, 1
jne 0x1800179a0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x20], r15
cmp r8, 0x10
jne 0x180017c9b
mov dword [r12 + 0x200], 0xa
lea rbp, [0x18007f862]
mov r8d, dword [r12]
lea rbx, [0x180000000]
mov r15d, 2
nop word [rax + rax]
mov edx, dword [r14 + 0xc]
mov eax, edx
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rbp - 2]
movzx r10d, byte [rcx + rbx + 0x7f660]
xor r10d, eax
mov eax, edx
shr eax, 8
movzx ecx, al
shl r10d, 8
movzx eax, byte [rcx + rbx + 0x7f660]
xor r10d, eax
movzx eax, dl
shl r10d, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor r10d, eax
mov eax, edx
shr rax, 0x18
shl r10d, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor r10d, eax
xor r10d, r8d
mov r8d, r10d
mov dword [r14 + 0x10], r10d
xor r8d, dword [r14 + 4]
mov r9d, r8d
mov dword [r14 + 0x14], r8d
xor r9d, dword [r14 + 8]
mov eax, r9d
mov dword [r14 + 0x18], r9d
xor eax, edx
mov edx, eax
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rbp - 1]
mov dword [r14 + 0x1c], edx
movzx r11d, byte [rcx + rbx + 0x7f660]
xor r11d, eax
mov eax, edx
shr eax, 8
movzx ecx, al
shl r11d, 8
movzx eax, byte [rcx + rbx + 0x7f660]
xor r11d, eax
movzx eax, dl
shl r11d, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor r11d, eax
mov eax, edx
shr rax, 0x18
shl r11d, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor r11d, eax
xor r11d, r10d
mov r10d, r11d
mov dword [r14 + 0x20], r11d
xor r10d, r8d
mov r8d, r10d
mov dword [r14 + 0x24], r10d
xor r8d, r9d
mov eax, r8d
mov dword [r14 + 0x28], r8d
xor eax, edx
mov edx, eax
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rbp]
mov dword [r14 + 0x2c], edx
movzx edi, byte [rcx + rbx + 0x7f660]
xor edi, eax
mov eax, edx
shr eax, 8
movzx ecx, al
shl edi, 8
movzx eax, byte [rcx + rbx + 0x7f660]
xor edi, eax
movzx eax, dl
shl edi, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor edi, eax
mov eax, edx
shl edi, 8
shr rax, 0x18
lea rbp, [rbp + 5]
movzx eax, byte [rax + rbx + 0x7f660]
xor edi, eax
xor edi, r11d
mov r9d, edi
mov dword [r14 + 0x30], edi
xor r9d, r10d
mov r10d, r9d
mov dword [r14 + 0x34], r9d
xor r10d, r8d
xor edx, r10d
mov dword [r14 + 0x38], r10d
mov eax, edx
mov r8d, edx
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rbp - 4]
mov dword [r14 + 0x3c], r8d
movzx esi, byte [rcx + rbx + 0x7f660]
xor esi, eax
mov eax, edx
shr eax, 8
movzx ecx, al
shl esi, 8
movzx eax, byte [rcx + rbx + 0x7f660]
xor esi, eax
movzx eax, dl
shl esi, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor esi, eax
mov eax, edx
shr rax, 0x18
shl esi, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor esi, eax
xor esi, edi
mov r11d, esi
mov dword [r14 + 0x40], esi
xor r11d, r9d
mov r9d, r11d
mov dword [r14 + 0x44], r11d
xor r9d, r10d
xor r8d, r9d
mov dword [r14 + 0x48], r9d
mov edx, r8d
mov eax, r8d
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rbp - 3]
mov dword [r14 + 0x4c], edx
movzx r8d, byte [rcx + rbx + 0x7f660]
xor r8d, eax
mov eax, edx
shr eax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + rbx + 0x7f660]
xor r8d, eax
movzx eax, dl
shl r8d, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor r8d, eax
mov eax, edx
shr rax, 0x18
shl r8d, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor r8d, eax
xor r8d, esi
mov eax, r8d
mov dword [r14 + 0x50], r8d
xor eax, r11d
mov dword [r14 + 0x54], eax
xor eax, r9d
xor edx, eax
mov dword [r14 + 0x58], eax
mov dword [r14 + 0x5c], edx
add r14, 0x50
sub r15, 1
jne 0x180017a30
jmp 0x18001827a
cmp r8, 0x18
jne 0x180018153
mov dword [r12 + 0x200], 0xc
lea rbx, [0x180000000]
mov edx, dword [r12 + 0x14]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx edi, byte [rcx + rbx + 0x7f660]
movzx ecx, al
xor edi, 1
shl edi, 8
movzx eax, byte [rcx + rbx + 0x7f660]
xor edi, eax
movzx eax, dl
shl edi, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor edi, eax
mov eax, edx
shr rax, 0x18
shl edi, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor edi, eax
xor edi, dword [r12]
mov r8d, edi
mov dword [r12 + 0x18], edi
xor r8d, dword [r12 + 4]
mov r9d, r8d
mov dword [r12 + 0x1c], r8d
xor r9d, dword [r12 + 8]
mov r10d, r9d
mov dword [r12 + 0x20], r9d
xor r10d, dword [r12 + 0xc]
mov r11d, r10d
mov dword [r12 + 0x24], r10d
xor r11d, dword [r12 + 0x10]
mov eax, r11d
mov dword [r12 + 0x28], r11d
xor eax, edx
mov edx, eax
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
mov dword [r12 + 0x2c], edx
movzx esi, byte [rcx + rbx + 0x7f660]
movzx ecx, al
xor esi, 2
shl esi, 8
movzx eax, byte [rcx + rbx + 0x7f660]
xor esi, eax
movzx eax, dl
shl esi, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor esi, eax
mov eax, edx
shr rax, 0x18
shl esi, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor esi, eax
xor esi, edi
mov edi, esi
mov dword [r12 + 0x30], esi
xor edi, r8d
mov r8d, edi
mov dword [r12 + 0x34], edi
xor r8d, r9d
mov r9d, r8d
mov dword [r12 + 0x38], r8d
xor r9d, r10d
mov r10d, r9d
mov dword [r12 + 0x3c], r9d
xor r10d, r11d
mov eax, r10d
mov dword [r12 + 0x40], r10d
xor eax, edx
mov edx, eax
shr eax, 0x10
movzx ecx, al
mov dword [r12 + 0x44], edx
movzx ebp, byte [rcx + rbx + 0x7f660]
xor ebp, 4
mov eax, edx
shr eax, 8
movzx ecx, al
shl ebp, 8
movzx eax, byte [rcx + rbx + 0x7f660]
xor ebp, eax
movzx eax, dl
shl ebp, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor ebp, eax
mov eax, edx
shr rax, 0x18
shl ebp, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor ebp, eax
xor ebp, esi
mov r11d, ebp
mov dword [r12 + 0x48], ebp
xor r11d, edi
mov edi, r11d
mov dword [r12 + 0x4c], r11d
xor edi, r8d
mov r14d, edi
mov dword [r12 + 0x50], edi
xor r14d, r9d
mov r15d, r14d
mov dword [r12 + 0x54], r14d
xor r15d, r10d
mov eax, r15d
mov dword [r12 + 0x58], r15d
xor eax, edx
mov edx, eax
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
mov dword [r12 + 0x5c], edx
movzx r10d, byte [rcx + rbx + 0x7f660]
movzx ecx, al
xor r10d, 8
shl r10d, 8
movzx eax, byte [rcx + rbx + 0x7f660]
xor r10d, eax
movzx eax, dl
shl r10d, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor r10d, eax
mov eax, edx
shr rax, 0x18
shl r10d, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor r10d, eax
xor r10d, ebp
mov r9d, r10d
mov dword [r12 + 0x60], r10d
xor r9d, r11d
xor edi, r9d
mov dword [r12 + 0x64], r9d
xor r14d, edi
mov dword [r12 + 0x68], edi
xor r15d, r14d
mov dword [r12 + 0x6c], r14d
xor edx, r15d
mov dword [r12 + 0x70], r15d
mov eax, edx
mov r8d, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
mov dword [r12 + 0x74], r8d
movzx esi, byte [rcx + rbx + 0x7f660]
movzx ecx, al
xor esi, 0x10
shl esi, 8
movzx eax, byte [rcx + rbx + 0x7f660]
xor esi, eax
movzx eax, dl
shl esi, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor esi, eax
mov eax, edx
shr rax, 0x18
shl esi, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor esi, eax
xor esi, r10d
mov r10d, esi
mov dword [r12 + 0x78], esi
xor r10d, r9d
mov r9d, r10d
mov dword [r12 + 0x7c], r10d
xor r9d, edi
mov r11d, r9d
mov dword [r12 + 0x80], r9d
xor r11d, r14d
mov edi, r11d
mov dword [r12 + 0x84], r11d
xor edi, r15d
xor r8d, edi
mov dword [r12 + 0x88], edi
mov eax, r8d
mov edx, r8d
shr eax, 0x10
movzx ecx, al
mov eax, r8d
shr eax, 8
mov dword [r12 + 0x8c], edx
movzx ebp, byte [rcx + rbx + 0x7f660]
movzx ecx, al
xor ebp, 0x20
shl ebp, 8
movzx eax, byte [rcx + rbx + 0x7f660]
xor ebp, eax
movzx eax, r8b
shl ebp, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor ebp, eax
mov eax, r8d
shr rax, 0x18
shl ebp, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor ebp, eax
xor ebp, esi
mov esi, ebp
mov dword [r12 + 0x90], ebp
xor esi, r10d
mov r10d, esi
mov dword [r12 + 0x94], esi
xor r10d, r9d
mov r9d, r10d
mov dword [r12 + 0x98], r10d
xor r9d, r11d
mov r11d, r9d
mov dword [r12 + 0x9c], r9d
xor r11d, edi
xor edx, r11d
mov dword [r12 + 0xa0], r11d
mov eax, edx
mov r8d, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
mov dword [r12 + 0xa4], r8d
movzx r14d, byte [rcx + rbx + 0x7f660]
xor r14d, 0x40
movzx ecx, al
shl r14d, 8
movzx eax, byte [rcx + rbx + 0x7f660]
xor r14d, eax
movzx eax, dl
shl r14d, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor r14d, eax
mov eax, edx
shr rax, 0x18
shl r14d, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor r14d, eax
xor r14d, ebp
mov edi, r14d
mov dword [r12 + 0xa8], r14d
xor edi, esi
mov esi, edi
mov dword [r12 + 0xac], edi
xor esi, r10d
mov r10d, esi
mov dword [r12 + 0xb0], esi
xor r10d, r9d
mov ebp, r10d
mov dword [r12 + 0xb4], r10d
xor ebp, r11d
xor r8d, ebp
mov dword [r12 + 0xb8], ebp
mov eax, r8d
mov r9d, r8d
shr eax, 0x10
movzx ecx, al
mov eax, r8d
shr eax, 8
mov dword [r12 + 0xbc], r9d
movzx edx, byte [rcx + rbx + 0x7f660]
xor edx, 0xffffff80
movzx ecx, al
shl edx, 8
movzx eax, byte [rcx + rbx + 0x7f660]
xor edx, eax
movzx eax, r8b
shl edx, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor edx, eax
mov eax, r8d
shl edx, 8
shr rax, 0x18
movzx eax, byte [rax + rbx + 0x7f660]
xor edx, eax
xor edx, r14d
lea r14, [r12 + 0xc0]
mov dword [r14], edx
xor edx, edi
mov dword [r12 + 0xc4], edx
xor edx, esi
mov dword [r12 + 0xc8], edx
xor edx, r10d
mov dword [r12 + 0xcc], edx
xor edx, ebp
xor r9d, edx
mov dword [r12 + 0xd0], edx
mov dword [r12 + 0xd4], r9d
jmp 0x18001827a
cmp r8, 0x20
jne 0x18001846a
mov dword [r12 + 0x200], 0xe
lea rdi, [0x18007f860]
mov r11d, dword [r12]
lea esi, [r8 - 0x19]
lea rbx, [0x180000000]
nop
mov r10d, dword [r14 + 0x1c]
lea rdi, [rdi + 1]
mov eax, r10d
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rdi - 1]
movzx edx, byte [rcx + rbx + 0x7f660]
xor edx, eax
mov eax, r10d
shr eax, 8
movzx ecx, al
shl edx, 8
movzx eax, byte [rcx + rbx + 0x7f660]
xor edx, eax
movzx eax, r10b
shl edx, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor edx, eax
mov eax, r10d
shr rax, 0x18
shl edx, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor edx, eax
xor edx, r11d
mov eax, edx
mov dword [r14 + 0x20], edx
xor eax, dword [r14 + 4]
mov r11d, edx
mov dword [r14 + 0x24], eax
xor eax, dword [r14 + 8]
mov dword [r14 + 0x28], eax
xor eax, dword [r14 + 0xc]
mov edx, eax
shr rax, 0x18
mov dword [r14 + 0x2c], edx
movzx r8d, byte [rax + rbx + 0x7f660]
mov eax, edx
shl r8d, 8
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + rbx + 0x7f660]
xor r8d, eax
mov eax, edx
shl r8d, 8
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + rbx + 0x7f660]
xor r8d, eax
movzx eax, dl
shl r8d, 8
movzx eax, byte [rax + rbx + 0x7f660]
xor r8d, eax
xor r8d, dword [r14 + 0x10]
mov dword [r14 + 0x30], r8d
xor r8d, dword [r14 + 0x14]
mov dword [r14 + 0x34], r8d
xor r8d, dword [r14 + 0x18]
mov dword [r14 + 0x38], r8d
xor r8d, r10d
mov dword [r14 + 0x3c], r8d
add r14, 0x20
sub rsi, 1
jne 0x180018180
mov esi, dword [r12 + 0x200]
lea rdi, [r12 + 0x100]
mov rcx, rdi
mov r8d, 0x20
mov rdx, r14
call fcn.180018ff0
add rdi, 0x10
sub r14, 0x10
cmp esi, 1
jbe 0x180018455
lea r11d, [rsi - 1]
mov r9d, dword [r14]
mov eax, r9d
shr rax, 0x18
movzx edx, byte [rax + rbx + 0x7f660]
mov eax, r9d
shr eax, 0x10
movzx ecx, al
mov r8d, dword [rbx + rdx*4 + 0x80870]
movzx eax, byte [rcx + rbx + 0x7f660]
xor r8d, dword [rbx + rax*4 + 0x80c70]
mov eax, r9d
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + rbx + 0x7f660]
xor r8d, dword [rbx + rax*4 + 0x81070]
movzx eax, r9b
movzx ecx, byte [rax + rbx + 0x7f660]
xor r8d, dword [rbx + rcx*4 + 0x81470]
mov dword [rdi], r8d
mov r9d, dword [r14 + 4]
mov eax, r9d
shr rax, 0x18
movzx edx, byte [rax + rbx + 0x7f660]
mov eax, r9d
shr eax, 0x10
movzx ecx, al
mov r8d, dword [rbx + rdx*4 + 0x80870]
movzx eax, byte [rcx + rbx + 0x7f660]
xor r8d, dword [rbx + rax*4 + 0x80c70]
mov eax, r9d
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + rbx + 0x7f660]
xor r8d, dword [rbx + rax*4 + 0x81070]
movzx eax, r9b
movzx ecx, byte [rax + rbx + 0x7f660]
xor r8d, dword [rbx + rcx*4 + 0x81470]
mov dword [rdi + 4], r8d
mov r9d, dword [r14 + 8]
mov eax, r9d
shr rax, 0x18
movzx edx, byte [rax + rbx + 0x7f660]
mov eax, r9d
shr eax, 0x10
movzx ecx, al
mov r8d, dword [rbx + rdx*4 + 0x80870]
movzx eax, byte [rcx + rbx + 0x7f660]
xor r8d, dword [rbx + rax*4 + 0x80c70]
mov eax, r9d
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + rbx + 0x7f660]
xor r8d, dword [rbx + rax*4 + 0x81070]
movzx eax, r9b
movzx ecx, byte [rax + rbx + 0x7f660]
xor r8d, dword [rbx + rcx*4 + 0x81470]
mov dword [rdi + 8], r8d
mov r8d, dword [r14 + 0xc]
sub r14, 0x10
mov eax, r8d
shr rax, 0x18
movzx edx, byte [rax + rbx + 0x7f660]
mov eax, r8d
shr eax, 0x10
movzx ecx, al
mov r10d, dword [rbx + rdx*4 + 0x80870]
movzx eax, byte [rcx + rbx + 0x7f660]
xor r10d, dword [rbx + rax*4 + 0x80c70]
mov eax, r8d
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + rbx + 0x7f660]
xor r10d, dword [rbx + rax*4 + 0x81070]
movzx eax, r8b
movzx r9d, byte [rax + rbx + 0x7f660]
xor r10d, dword [rbx + r9*4 + 0x81470]
mov dword [rdi + 0xc], r10d
add rdi, 0x10
sub r11, 1
jne 0x1800182b0
mov r8d, 0x20
mov rdx, r14
mov rcx, rdi
call fcn.180018ff0
mov al, 1
jmp 0x18001846c
xor al, al
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
pop r14
pop r12
ret