Function at 0x1800ba530
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0xe8
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov qword [rax - 0x18], r14
mov qword [rax - 0x20], r15
mov rbx, rcx
mov esi, 8
lea ecx, [rdx + 7]
mov eax, edx
shr ecx, 3
and eax, 7
lea r14d, [rsi + 4]
cmove eax, esi
xor ebp, ebp
cmp ecx, 1
mov dword [rsp + 0x2c], ebp
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x3c], eax
jbe 0x1800ba724
add ecx, 0xfffffffe
mov edi, ebp
mov dword [rsp + 0x20], ecx
je 0x1800ba724
mov r15d, dword [rsp + 0x54]
mov r12d, dword [rsp + 0x50]
nop
nop
nop
test edi, edi
mov edx, dword [rbx]
mov r13d, dword [rbx + 4]
mov r11d, edx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x30], r13d
jne 0x1800ba6a5
lea rdx, [rsp + 0x48]
xor r8d, r8d
mov rcx, rbx
call fcn.1800b9bc0
cmp dword [0x18022f414], ebp
jne 0x1800ba9f5
mov rax, qword [rsp + 0x48]
mov r9d, dword [rsp + 0x4c]
lea r8, [rsp + 0x54]
mov dword [rsp + 0x50], eax
lea r10d, [rdi + 5]
nop
mov ecx, dword [r8 - 4]
add r8, 0x14
lea edx, [rcx + r9]
and ecx, 0x1f
mov dword [r8 - 0x14], edx
mov edx, eax
ror edx, cl
xor dword [rsp + 0x54], edx
mov ecx, dword [r8 - 0x14]
lea edx, [rcx + r9]
and ecx, 0x1f
mov dword [r8 - 0x10], edx
mov edx, eax
ror edx, cl
xor dword [rsp + 0x54], edx
mov ecx, dword [r8 - 0x10]
lea edx, [rcx + r9]
and ecx, 0x1f
mov dword [r8 - 0xc], edx
mov edx, eax
ror edx, cl
xor dword [rsp + 0x54], edx
mov ecx, dword [r8 - 0xc]
lea edx, [rcx + r9]
and ecx, 0x1f
mov dword [r8 - 8], edx
mov edx, eax
ror edx, cl
xor dword [rsp + 0x54], edx
mov ecx, dword [r8 - 8]
lea edx, [rcx + r9]
and ecx, 0x1f
mov dword [r8 - 4], edx
mov r15d, dword [rsp + 0x54]
mov edx, eax
ror edx, cl
xor r15d, edx
dec r10
mov dword [rsp + 0x54], r15d
jne 0x1800ba610
mov r12d, dword [rsp + 0x50]
mov r11d, dword [rsp + 0x28]
jmp 0x1800ba6f8
mov r10d, r14d
mov r8d, r13d
lea r9, [rsp + 0xb0]
nop
nop
nop
nop
sub edx, dword [r9 + 4]
mov ecx, r8d
shr ecx, 7
and ecx, 0x1f
ror edx, cl
xor edx, r8d
add r8d, dword [r9]
sub r9, rsi
mov ecx, edx
shr ecx, 4
and ecx, 0x1f
ror r8d, cl
xor r8d, edx
add r10d, 0xffffffff
jne 0x1800ba6c0
sub edx, r15d
sub r8d, r12d
mov dword [rbx + 4], r8d
mov dword [rbx], edx
mov eax, dword [rsp + 0x40]
inc edi
mov dword [rsp + 0x40], r11d
xor dword [rbx], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x38], r13d
xor dword [rbx + 4], eax
add rbx, rsi
cmp edi, dword [rsp + 0x20]
jb 0x1800ba5c0
mov eax, dword [rsp + 0x3c]
jmp 0x1800ba72e
mov r15d, dword [rsp + 0x54]
mov r12d, dword [rsp + 0x50]
test eax, eax
mov dword [rsp + 0x20], ebp
mov r13d, ebp
mov dword [rsp + 0x24], ebp
je 0x1800ba75b
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x20]
mov r8d, eax
call fcn.180005f30
mov eax, dword [rsp + 0x20]
mov r13d, dword [rsp + 0x24]
mov dword [rsp + 0x2c], eax
mov r11d, dword [rsp + 0x34]
cmp r11d, 1
jne 0x1800ba7e4
lea rbp, [0x18022e8ad]
mov rcx, rbx
mov rdx, rsi
sub rbp, rbx
nop
nop
nop
movzx eax, byte [rcx]
inc rcx
dec rdx
mov byte [rcx + rbp - 1], al
jne 0x1800ba780
mov word [0x18022e8ab], si
mov word [0x18022e8a9], dx
call fcn.1800b9970
sub eax, 0x18
je 0x1800ba96b
dec eax
je 0x1800ba95c
cmp dword [0x18022f414], 0
jne 0x1800ba9f5
lea rdi, [0x18022eb06]
mov rcx, rbx
sub rcx, rdi
nop
movzx eax, byte [rdi]
inc rdi
dec rsi
mov byte [rcx + rdi - 1], al
jne 0x1800ba7d0
jmp 0x1800ba9e8
cmp r11d, 2
lea rbp, [0x18022e8ad]
lea rdi, [0x18022eb06]
jne 0x1800ba877
mov r8, rbp
mov rcx, rbx
mov rdx, rsi
sub r8, rbx
nop
nop
nop
movzx eax, byte [rcx]
inc rcx
dec rdx
mov byte [r8 + rcx - 1], al
jne 0x1800ba810
mov word [0x18022e8ab], si
mov word [0x18022e8a9], dx
call fcn.1800b9970
sub eax, 0x18
je 0x1800ba96b
dec eax
je 0x1800ba95c
cmp dword [0x18022f414], 0
jne 0x1800ba9f5
mov r8, rbx
mov rcx, rdi
mov rdx, rsi
sub r8, rdi
nop
movzx eax, byte [rcx]
inc rcx
dec rdx
mov byte [r8 + rcx - 1], al
jne 0x1800ba860
mov r11d, dword [rsp + 0x34]
jmp 0x1800ba8d2
mov edx, dword [rbx]
mov r8d, dword [rbx + 4]
mov r10d, r14d
lea r9, [rsp + 0xb0]
nop
nop
sub edx, dword [r9 + 4]
mov ecx, r8d
shr ecx, 7
and ecx, 0x1f
ror edx, cl
xor edx, r8d
add r8d, dword [r9]
sub r9, rsi
mov ecx, edx
shr ecx, 4
and ecx, 0x1f
ror r8d, cl
xor r8d, edx
add r10d, 0xffffffff
jne 0x1800ba890
sub edx, r15d
sub r8d, r12d
cmp r11d, 1
mov dword [rbx], edx
mov dword [rbx + 4], r8d
jbe 0x1800ba9e8
mov eax, dword [rsp + 0x2c]
xor r13d, dword [rbx + 4]
xor eax, dword [rbx]
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x1800ba91e
lea r8, [rsp + 0x20]
mov r9, rbx
lea rcx, [rbx + 8]
sub r9, r8
mov r8, rax
lea rdx, [rsp + 0x20]
movzx eax, byte [rcx]
inc rcx
inc rdx
dec r8
mov byte [r9 + rdx - 1], al
movzx eax, byte [rdx - 1]
mov byte [rcx - 1], al
jne 0x1800ba904
cmp r11d, 2
jne 0x1800ba9a1
mov rcx, rbx
mov rdx, rsi
sub rbp, rbx
movzx eax, byte [rcx]
inc rcx
dec rdx
mov byte [rcx + rbp - 1], al
jne 0x1800ba931
mov word [0x18022e8ab], si
mov word [0x18022e8a9], dx
call fcn.1800b9970
sub eax, 0x18
je 0x1800ba96b
dec eax
jne 0x1800ba97a
mov dword [0x18022f414], 0x99
jmp 0x1800ba9f5
mov dword [0x18022f414], 0x98
jmp 0x1800ba9f5
cmp dword [0x18022f414], 0
jne 0x1800ba9f5
mov rcx, rbx
sub rcx, rdi
nop
movzx eax, byte [rdi]
inc rdi
dec rsi
mov byte [rcx + rdi - 1], al
jne 0x1800ba990
jmp 0x1800ba9e8
mov edx, dword [rbx]
mov r8d, dword [rbx + 4]
lea r9, [rsp + 0xb0]
nop
sub edx, dword [r9 + 4]
mov ecx, r8d
shr ecx, 7
and ecx, 0x1f
ror edx, cl
xor edx, r8d
add r8d, dword [r9]
sub r9, rsi
mov ecx, edx
shr ecx, 4
and ecx, 0x1f
ror r8d, cl
xor r8d, edx
add r14d, 0xffffffff
jne 0x1800ba9b0
sub edx, r15d
sub r8d, r12d
mov dword [rbx + 4], r8d
mov dword [rbx], edx
mov eax, dword [rsp + 0x28]
xor dword [rbx], eax
mov eax, dword [rsp + 0x30]
xor dword [rbx + 4], eax
mov r15, qword [rsp + 0xc8]
mov r14, qword [rsp + 0xd0]
mov r13, qword [rsp + 0xd8]
mov r12, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0x108]
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe8
ret