Function at 0x180232d80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r15
mov rbp, rsp
sub rsp, 0x30
cmp dword [rbp + 0x58], 0
mov r10, r9
mov r15d, r8d
mov rdi, rdx
mov rsi, rcx
je 0x18023302a
mov r9, qword [rbp + 0x50]
lea ebx, [r15 - 8]
movzx r10d, byte [r9]
movzx eax, byte [r9 + 1]
movzx r8d, byte [r9 + 4]
shl eax, 0x10
shl r10d, 0x18
shl r8d, 0x18
or r10d, eax
movzx eax, byte [r9 + 2]
mov qword [rbp - 8], r9
shl eax, 8
or r10d, eax
movzx eax, byte [r9 + 3]
or r10d, eax
movzx eax, byte [r9 + 5]
shl eax, 0x10
or r8d, eax
movzx eax, byte [r9 + 6]
shl eax, 8
or r8d, eax
movzx eax, byte [r9 + 7]
or r8d, eax
test ebx, ebx
js 0x180232ee6
mov r9, qword [rbp + 0x48]
lea r12d, [rbx + 8]
shr r12, 3
mov eax, r12d
neg eax
lea ebx, [rbx + rax*8]
nop word [rax + rax]
movzx edx, byte [rsi]
movzx ecx, byte [rsi + 4]
movzx eax, byte [rsi + 1]
shl eax, 0x10
shl ecx, 0x18
shl edx, 0x18
or edx, eax
movzx eax, byte [rsi + 2]
add rsi, 8
shl eax, 8
or edx, eax
movzx eax, byte [rsi - 5]
or edx, eax
movzx eax, byte [rsi - 3]
shl eax, 0x10
xor edx, r10d
or ecx, eax
movzx eax, byte [rsi - 2]
mov dword [rbp - 0x10], edx
shl eax, 8
mov rdx, r9
or ecx, eax
movzx eax, byte [rsi - 1]
or ecx, eax
xor ecx, r8d
mov dword [rbp - 0xc], ecx
lea rcx, [rbp - 0x10]
call fcn.180232440
mov r10d, dword [rbp - 0x10]
mov r8d, dword [rbp - 0xc]
mov eax, r10d
add rdi, 8
shr eax, 0x18
mov byte [rdi - 8], al
mov eax, r10d
shr eax, 0x10
mov byte [rdi - 7], al
mov eax, r10d
shr eax, 8
mov byte [rdi - 6], al
movzx eax, r10b
mov byte [rdi - 5], al
mov eax, r8d
shr eax, 0x18
mov byte [rdi - 4], al
mov eax, r8d
shr eax, 0x10
mov byte [rdi - 3], al
mov eax, r8d
shr eax, 8
dec r12
mov byte [rdi - 2], al
movzx eax, r8b
mov byte [rdi - 1], al
jne 0x180232e30
mov r9, qword [rbp - 8]
cmp ebx, 0xfffffff8
je 0x180232fd6
xor edx, edx
lea ecx, [rbx + 8]
movsxd rax, ecx
mov r11d, edx
add rsi, rax
dec ecx
cmp ecx, 7
ja case.default.0x180232f18
movsxd rax, ecx
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0x2332c4]
add rax, rcx
jmp rax
movzx edx, byte [rsi - 1]
dec rsi
movzx eax, byte [rsi - 1]
dec rsi
shl eax, 8
or edx, eax
movzx eax, byte [rsi - 1]
dec rsi
shl eax, 0x10
or edx, eax
movzx eax, byte [rsi - 1]
dec rsi
shl eax, 0x18
or edx, eax
movzx r11d, byte [rsi - 1]
dec rsi
movzx eax, byte [rsi - 1]
dec rsi
shl eax, 8
or r11d, eax
movzx eax, byte [rsi - 1]
dec rsi
shl eax, 0x10
or r11d, eax
movzx eax, byte [rsi - 1]
shl eax, 0x18
or r11d, eax
xor edx, r8d
xor r11d, r10d
lea rcx, [rbp - 0x10]
mov dword [rbp - 0xc], edx
mov rdx, qword [rbp + 0x48]
mov dword [rbp - 0x10], r11d
call fcn.180232440
mov r10d, dword [rbp - 0x10]
mov r8d, dword [rbp - 0xc]
mov eax, r10d
shr eax, 0x18
mov byte [rdi], al
mov eax, r10d
shr eax, 0x10
mov byte [rdi + 1], al
mov eax, r10d
shr eax, 8
mov byte [rdi + 2], al
movzx eax, r10b
mov byte [rdi + 3], al
mov eax, r8d
shr eax, 0x18
mov byte [rdi + 4], al
mov eax, r8d
shr eax, 0x10
mov byte [rdi + 5], al
mov eax, r8d
shr eax, 8
mov byte [rdi + 6], al
movzx eax, r8b
mov byte [rdi + 7], al
mov eax, r10d
shr eax, 0x18
mov byte [r9], al
mov eax, r10d
shr eax, 0x10
mov byte [r9 + 1], al
mov eax, r10d
shr eax, 8
mov byte [r9 + 2], al
mov byte [r9 + 3], r10b
mov eax, r8d
shr eax, 0x18
mov byte [r9 + 4], al
mov eax, r8d
shr eax, 0x10
mov byte [r9 + 5], al
mov eax, r8d
shr eax, 8
mov byte [r9 + 6], al
mov byte [r9 + 7], r8b
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r12, qword [rbp + 0x50]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r14
movzx r13d, byte [r12]
movzx eax, byte [r12 + 1]
movzx r14d, byte [r12 + 4]
shl eax, 0x10
shl r13d, 0x18
shl r14d, 0x18
or r13d, eax
movzx eax, byte [r12 + 2]
mov qword [rbp - 8], r12
shl eax, 8
or r13d, eax
movzx eax, byte [r12 + 3]
or r13d, eax
movzx eax, byte [r12 + 5]
shl eax, 0x10
or r14d, eax
movzx eax, byte [r12 + 6]
shl eax, 8
or r14d, eax
movzx eax, byte [r12 + 7]
or r14d, eax
add r15d, 0xfffffff8
js 0x18023317e
lea r12d, [r15 + 8]
shr r12, 3
mov eax, r12d
neg eax
lea r15d, [r15 + rax*8]
mov dword [rbp + 0x58], r15d
mov r15, qword [rbp + 0x48]
nop word [rax + rax]
movzx ebx, byte [rsi]
movzx eax, byte [rsi + 1]
movzx r9d, byte [rsi + 4]
shl eax, 0x10
shl ebx, 0x18
shl r9d, 0x18
or ebx, eax
movzx eax, byte [rsi + 2]
lea rcx, [rbp - 0x10]
shl eax, 8
mov rdx, r15
add rsi, 8
or ebx, eax
movzx eax, byte [rsi - 5]
or ebx, eax
movzx eax, byte [rsi - 3]
shl eax, 0x10
mov dword [rbp - 0x10], ebx
or r9d, eax
movzx eax, byte [rsi - 2]
shl eax, 8
or r9d, eax
movzx eax, byte [rsi - 1]
or r9d, eax
mov dword [rbp - 0xc], r9d
call fcn.1802328e0
xor r13d, dword [rbp - 0x10]
xor r14d, dword [rbp - 0xc]
mov eax, r13d
add rdi, 8
shr eax, 0x18
mov byte [rdi - 8], al
mov eax, r13d
shr eax, 0x10
mov byte [rdi - 7], al
mov eax, r13d
shr eax, 8
mov byte [rdi - 6], al
mov byte [rdi - 5], r13b
mov eax, r14d
shr eax, 0x18
mov r13d, ebx
mov byte [rdi - 4], al
mov eax, r14d
shr eax, 0x10
mov byte [rdi - 3], al
mov eax, r14d
shr eax, 8
dec r12
mov byte [rdi - 2], al
mov byte [rdi - 1], r14b
mov r14d, r9d
jne 0x1802330c0
mov r12, qword [rbp - 8]
mov r15d, dword [rbp + 0x58]
mov r10, qword [rbp + 0x48]
cmp r15d, 0xfffffff8
je 0x18023325c
movzx r9d, byte [rsi]
movzx eax, byte [rsi + 1]
movzx ecx, byte [rsi + 6]
movzx ebx, byte [rsi + 4]
shl eax, 0x10
shl r9d, 0x18
or r9d, eax
movzx eax, byte [rsi + 2]
shl ecx, 8
shl eax, 8
shl ebx, 0x18
mov rdx, r10
or r9d, eax
movzx eax, byte [rsi + 3]
or r9d, eax
movzx eax, byte [rsi + 5]
shl eax, 0x10
mov dword [rbp - 0x10], r9d
or ebx, eax
movzx eax, byte [rsi + 7]
or ecx, eax
or ebx, ecx
lea rcx, [rbp - 0x10]
mov dword [rbp - 0xc], ebx
call fcn.1802328e0
xor r13d, dword [rbp - 0x10]
xor r14d, dword [rbp - 0xc]
lea ecx, [r15 + 8]
movsxd rax, ecx
add rdi, rax
dec ecx
cmp ecx, 7
ja case.default.0x18023320a
movsxd rax, ecx
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0x2332e4]
add rax, rcx
jmp rax
dec rdi
mov byte [rdi], r14b
dec rdi
mov eax, r14d
shr eax, 8
mov byte [rdi], al
dec rdi
mov eax, r14d
shr eax, 0x10
mov byte [rdi], al
dec rdi
shr r14d, 0x18
mov byte [rdi], r14b
dec rdi
mov byte [rdi], r13b
dec rdi
mov eax, r13d
shr eax, 8
mov byte [rdi], al
dec rdi
mov eax, r13d
shr eax, 0x10
mov byte [rdi], al
shr r13d, 0x18
mov byte [rdi - 1], r13b
mov r13d, r9d
mov r14d, ebx
mov rbx, qword [rsp + 0x70]
mov eax, r13d
shr eax, 0x18
mov byte [r12], al
mov eax, r13d
shr eax, 0x10
mov byte [r12 + 1], al
mov eax, r13d
shr eax, 8
mov byte [r12 + 2], al
mov byte [r12 + 3], r13b
mov r13, qword [rsp + 0x60]
mov eax, r14d
shr eax, 0x18
mov byte [r12 + 4], al
mov eax, r14d
shr eax, 0x10
mov byte [r12 + 5], al
mov eax, r14d
shr eax, 8
mov byte [r12 + 6], al
mov byte [r12 + 7], r14b
mov r14, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret