Function at 0x180014ae9
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x18001513b
push rbp
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x18003a7d8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, r8
mov rdi, r9
mov qword [rsp + 0x40], rdx
shr rsi, 4
cmp byte [rcx], 0
mov rbp, rcx
mov qword [rsp + 0x48], rcx
je 0x180014b2e
mov r8, rsi
call fcn.1800140c0
jmp 0x180015121
mov rax, qword [rbp + 8]
lea rcx, [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rbp + 0x10]
mov qword [rcx + 8], rax
test rsi, rsi
je 0x18001510d
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xb0], r12
mov r12d, dword [rsp + 0x7c]
mov qword [rsp + 0xa8], r13
mov r13d, dword [rsp + 0x78]
mov qword [rsp + 0xa0], r14
mov r14d, dword [rsp + 0x74]
mov qword [rsp + 0x98], r15
mov r15d, dword [rsp + 0x70]
nop word [rax + rax]
mov ecx, dword [rdx]
movsxd rbx, dword [rbp + 4]
mov r11d, ecx
mov dword [rsp + 0x34], ecx
mov ecx, dword [rdx + 4]
mov dword [rsp + 0x38], ecx
mov rax, rbx
add rax, rax
mov r8d, dword [rbp + rax*8 + 0x24]
xor r11d, dword [rbp + rax*8 + 0x18]
mov r10d, dword [rbp + rax*8 + 0x1c]
mov r9d, dword [rbp + rax*8 + 0x20]
xor r10d, ecx
mov ecx, dword [rdx + 8]
xor r9d, ecx
mov dword [rsp + 0x30], ecx
mov ecx, dword [rdx + 0xc]
xor r8d, ecx
mov dword [rsp + 0x3c], ecx
mov dword [rsp + 0x68], r9d
mov eax, r8d
mov dword [rsp + 0x6c], r8d
mov dword [rsp + 0x64], r10d
shr eax, 8
mov dword [rsp + 0x60], r11d
movzx edx, al
mov eax, r9d
shr eax, 0x10
movzx ecx, al
lea rax, [0x180000000]
mov edx, dword [rax + rdx*4 + 0x404d0]
xor edx, dword [rax + rcx*4 + 0x400d0]
mov eax, r10d
shr eax, 0x18
movzx ecx, al
lea rax, [0x180000000]
xor edx, dword [rax + rcx*4 + 0x3fcd0]
movzx eax, r11b
lea rcx, [0x180000000]
xor edx, dword [rcx + rax*4 + 0x408d0]
mov eax, r8d
shr r8d, 0x18
shr eax, 0x10
mov dword [rsp + 0x20], edx
mov dword [rsp + 0x50], edx
movzx edx, al
mov eax, r9d
shr eax, 0x18
movzx ecx, al
lea rax, [0x180000000]
mov edx, dword [rax + rdx*4 + 0x400d0]
xor edx, dword [rax + rcx*4 + 0x3fcd0]
mov eax, r11d
shr eax, 8
movzx ecx, al
lea rax, [0x180000000]
xor edx, dword [rax + rcx*4 + 0x404d0]
movzx eax, r10b
lea rcx, [0x180000000]
xor edx, dword [rcx + rax*4 + 0x408d0]
mov eax, r10d
shr eax, 8
mov dword [rsp + 0x24], edx
mov dword [rsp + 0x54], edx
movzx ecx, al
movzx edx, r8b
lea r8, [0x180000000]
mov edx, dword [r8 + rdx*4 + 0x3fcd0]
mov eax, r11d
xor edx, dword [r8 + rcx*4 + 0x404d0]
shr eax, 0x10
movzx ecx, al
movzx eax, r9b
shr r9d, 8
xor edx, dword [r8 + rcx*4 + 0x400d0]
movzx ecx, r9b
xor edx, dword [r8 + rax*4 + 0x408d0]
shr r10d, 0x10
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x58], edx
movzx eax, r10b
mov r10d, dword [r8 + rcx*4 + 0x404d0]
shr r11d, 0x18
xor r10d, dword [r8 + rax*4 + 0x400d0]
movzx eax, r11b
lea r11, [0x180000000]
xor r10d, dword [r11 + rax*4 + 0x3fcd0]
movzx eax, byte [rsp + 0x6c]
xor r10d, dword [r11 + rax*4 + 0x408d0]
lea eax, [rbx - 1]
movsxd rcx, eax
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x5c], r10d
cmp rcx, 1
jle 0x180014ef1
mov r12d, dword [rsp + 0x20]
mov r13d, dword [rsp + 0x24]
lea rbx, [rcx + 2]
shl rbx, 4
mov r14d, r10d
lea r15, [0x180000000]
add rbx, rbp
lea rbp, [rcx - 1]
nop word [rax + rax]
mov r8d, dword [rbx + 4]
mov r9d, dword [rbx]
mov r11d, dword [rbx - 8]
mov r10d, dword [rbx - 4]
xor r9d, edx
xor r11d, r12d
xor r10d, r13d
xor r8d, r14d
mov dword [rsp + 0x68], r9d
mov eax, r8d
mov dword [rsp + 0x6c], r8d
mov dword [rsp + 0x64], r10d
shr eax, 8
mov dword [rsp + 0x60], r11d
sub rbx, 0x10
movzx edx, al
mov eax, r9d
mov r12d, dword [r15 + rdx*4 + 0x404d0]
shr eax, 0x10
movzx ecx, al
mov eax, r10d
xor r12d, dword [r15 + rcx*4 + 0x400d0]
shr eax, 0x18
movzx ecx, al
movzx eax, r11b
xor r12d, dword [r15 + rcx*4 + 0x3fcd0]
xor r12d, dword [r15 + rax*4 + 0x408d0]
mov eax, r8d
shr r8d, 0x18
shr eax, 0x10
mov dword [rsp + 0x50], r12d
movzx edx, al
mov eax, r9d
mov r13d, dword [r15 + rdx*4 + 0x400d0]
shr eax, 0x18
movzx edx, r8b
mov edx, dword [r15 + rdx*4 + 0x3fcd0]
movzx ecx, al
mov eax, r11d
xor r13d, dword [r15 + rcx*4 + 0x3fcd0]
shr eax, 8
movzx ecx, al
movzx eax, r10b
xor r13d, dword [r15 + rcx*4 + 0x404d0]
xor r13d, dword [r15 + rax*4 + 0x408d0]
mov eax, r10d
shr r10d, 0x10
shr eax, 8
mov dword [rsp + 0x54], r13d
movzx ecx, al
mov eax, r11d
shr r11d, 0x18
xor edx, dword [r15 + rcx*4 + 0x404d0]
shr eax, 0x10
movzx ecx, al
movzx eax, r9b
shr r9d, 8
xor edx, dword [r15 + rcx*4 + 0x400d0]
movzx ecx, r9b
xor edx, dword [r15 + rax*4 + 0x408d0]
mov r14d, dword [r15 + rcx*4 + 0x404d0]
movzx eax, r10b
xor r14d, dword [r15 + rax*4 + 0x400d0]
movzx eax, r11b
mov dword [rsp + 0x58], edx
xor r14d, dword [r15 + rax*4 + 0x3fcd0]
movzx eax, byte [rsp + 0x6c]
xor r14d, dword [r15 + rax*4 + 0x408d0]
sub rbp, 1
mov dword [rsp + 0x5c], r14d
jne 0x180014d70
mov rbp, qword [rsp + 0x48]
mov r15d, dword [rsp + 0x70]
mov dword [rsp + 0x28], r14d
mov r10d, dword [rsp + 0x28]
mov r14d, dword [rsp + 0x74]
mov dword [rsp + 0x24], r13d
mov r13d, dword [rsp + 0x78]
mov dword [rsp + 0x20], r12d
mov r12d, dword [rsp + 0x7c]
mov dword [rsp + 0x2c], edx
lea r11, [0x180000000]
xor r10d, dword [rbp + 0x34]
mov edx, dword [rsp + 0x20]
mov r9d, dword [rsp + 0x2c]
xor edx, dword [rbp + 0x28]
xor r9d, dword [rbp + 0x30]
mov r8d, dword [rsp + 0x24]
xor r8d, dword [rbp + 0x2c]
movzx eax, dl
mov dword [rsp + 0x6c], r10d
movzx eax, byte [rax + r11 + 0x41cf0]
mov dword [rsp + 0x68], r9d
mov dword [rsp + 0x64], r8d
mov byte [rsp + 0x50], al
mov eax, r10d
mov dword [rsp + 0x60], edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r11 + 0x41cf0]
mov byte [rsp + 0x51], al
mov eax, r9d
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r11 + 0x41cf0]
mov byte [rsp + 0x52], al
mov eax, r8d
shr eax, 0x18
movzx ecx, al
movzx eax, byte [rcx + r11 + 0x41cf0]
mov byte [rsp + 0x53], al
movzx eax, r8b
movzx eax, byte [rax + r11 + 0x41cf0]
mov byte [rsp + 0x54], al
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r11 + 0x41cf0]
mov byte [rsp + 0x55], al
mov eax, r10d
shr r10d, 0x18
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r11 + 0x41cf0]
mov byte [rsp + 0x56], al
mov eax, r9d
shr eax, 0x18
movzx ecx, al
movzx eax, byte [rcx + r11 + 0x41cf0]
mov byte [rsp + 0x57], al
movzx eax, r9b
shr r9d, 8
movzx eax, byte [rax + r11 + 0x41cf0]
mov byte [rsp + 0x58], al
mov eax, r8d
shr r8d, 0x10
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r11 + 0x41cf0]
mov byte [rsp + 0x59], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r11 + 0x41cf0]
mov byte [rsp + 0x5a], al
movzx eax, r10b
movzx eax, byte [rax + r11 + 0x41cf0]
mov byte [rsp + 0x5b], al
movzx eax, byte [rsp + 0x6c]
movzx eax, byte [rax + r11 + 0x41cf0]
mov byte [rsp + 0x5c], al
movzx eax, r9b
movzx eax, byte [rax + r11 + 0x41cf0]
mov byte [rsp + 0x5d], al
movzx eax, r8b
movzx eax, byte [rax + r11 + 0x41cf0]
mov byte [rsp + 0x5e], al
movzx eax, dl
movzx eax, byte [rax + r11 + 0x41cf0]
mov byte [rsp + 0x5f], al
mov eax, dword [rsp + 0x50]
xor eax, dword [rbp + 0x18]
mov ecx, dword [rsp + 0x54]
mov edx, dword [rsp + 0x58]
mov r8d, dword [rsp + 0x5c]
xor ecx, dword [rbp + 0x1c]
xor edx, dword [rbp + 0x20]
xor r8d, dword [rbp + 0x24]
cmp byte [rbp + 1], 0
je 0x180015095
xor eax, r15d
xor ecx, r14d
xor edx, r13d
xor r8d, r12d
mov r15d, dword [rsp + 0x34]
mov r14d, dword [rsp + 0x38]
mov r13d, dword [rsp + 0x30]
mov r12d, dword [rsp + 0x3c]
mov dword [rdi + 8], edx
mov rdx, qword [rsp + 0x40]
add rdx, 0x10
mov dword [rdi], eax
mov dword [rdi + 4], ecx
mov dword [rdi + 0xc], r8d
add rdi, 0x10
sub rsi, 1
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x70], r15d
mov dword [rsp + 0x74], r14d
mov dword [rsp + 0x78], r13d
mov dword [rsp + 0x7c], r12d
jne 0x180014b90
mov r15, qword [rsp + 0x98]
mov r14, qword [rsp + 0xa0]
mov r13, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x70]
mov rax, qword [rcx]
mov qword [rbp + 8], rax
mov rax, qword [rcx + 8]
mov qword [rbp + 0x10], rax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180025eb0
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
repz ret