Function at 0x1800b9f60
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0xd8
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 edi, 8
mov qword [rax - 0x18], r14
lea esi, [rdx + 7]
shr esi, 3
mov r8d, edx
mov rbx, rcx
and r8d, 7
lea ecx, [rsi - 1]
mov qword [rax - 0x20], r15
cmove r8d, edi
xor r13d, r13d
test ecx, ecx
mov dword [rsp + 0x2c], esi
lea r10d, [rdi - 6]
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x24], r13d
mov ebp, r13d
mov dword [rsp + 0x20], r13d
mov eax, r13d
mov dword [rsp + 0x30], r13d
je 0x1800ba2a4
mov r12d, dword [rsp + 0x44]
lea rcx, [0x18022eb06]
lea r15, [0x18022e8ad]
mov r14, rbx
sub r14, rcx
sub r15, rbx
nop
xor dword [rbx], ebp
xor dword [rbx + 4], r13d
test eax, eax
mov ecx, dword [rbx]
mov edx, dword [rbx + 4]
jne 0x1800ba145
cmp esi, 2
jbe 0x1800ba0d3
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov rcx, rbx
call fcn.1800b9bc0
cmp dword [0x18022f414], 0
jne 0x1800ba4d4
mov rax, qword [rsp + 0x38]
mov esi, dword [rsp + 0x3c]
lea rdi, [rsp + 0x44]
mov dword [rsp + 0x40], eax
mov r8d, 5
nop
nop
nop
nop
mov ecx, dword [rdi - 4]
add rdi, 0x14
lea edx, [rcx + rsi]
and ecx, 0x1f
mov dword [rdi - 0x14], edx
mov edx, eax
ror edx, cl
xor dword [rsp + 0x44], edx
mov ecx, dword [rdi - 0x14]
lea edx, [rcx + rsi]
and ecx, 0x1f
mov dword [rdi - 0x10], edx
mov edx, eax
ror edx, cl
xor dword [rsp + 0x44], edx
mov ecx, dword [rdi - 0x10]
lea edx, [rcx + rsi]
and ecx, 0x1f
mov dword [rdi - 0xc], edx
mov edx, eax
ror edx, cl
xor dword [rsp + 0x44], edx
mov ecx, dword [rdi - 0xc]
lea edx, [rcx + rsi]
and ecx, 0x1f
mov dword [rdi - 8], edx
mov edx, eax
ror edx, cl
xor dword [rsp + 0x44], edx
mov ecx, dword [rdi - 8]
lea edx, [rcx + rsi]
and ecx, 0x1f
mov dword [rdi - 4], edx
mov r12d, dword [rsp + 0x44]
mov edx, eax
ror edx, cl
xor r12d, edx
dec r8
mov dword [rsp + 0x44], r12d
jne 0x1800ba050
mov esi, dword [rsp + 0x2c]
lea edi, [r8 + 8]
jmp 0x1800ba24f
mov rcx, rbx
mov rdx, rdi
nop
nop
movzx eax, byte [rcx]
inc rcx
dec rdx
mov byte [r15 + rcx - 1], al
jne 0x1800ba0e0
mov word [0x18022e8ab], 8
mov word [0x18022e8a9], dx
call fcn.1800b9970
sub eax, 0x18
je 0x1800ba295
dec eax
je 0x1800ba286
cmp dword [0x18022f414], 0
jne 0x1800ba4d4
lea rcx, [0x18022eb06]
mov rdx, rdi
nop
movzx eax, byte [rcx]
inc rcx
dec rdx
mov byte [r14 + rcx - 1], al
jne 0x1800ba130
jmp 0x1800ba24f
mov eax, dword [rsp + 0x40]
lea esi, [rcx + r12]
lea r9, [rsp + 0x4c]
lea r8d, [rdx + rax]
mov dword [rbx], esi
mov dword [rbx + 4], r8d
nop
xor r8d, esi
mov ecx, esi
add r9, 0x30
shr ecx, 4
and ecx, 0x1f
rol r8d, cl
sub r8d, dword [r9 - 0x34]
xor esi, r8d
mov ecx, r8d
shr ecx, 7
and ecx, 0x1f
rol esi, cl
add esi, dword [r9 - 0x30]
mov ecx, esi
mov edx, esi
shr ecx, 4
xor edx, r8d
and ecx, 0x1f
rol edx, cl
sub edx, dword [r9 - 0x2c]
xor esi, edx
mov ecx, edx
shr ecx, 7
and ecx, 0x1f
rol esi, cl
add esi, dword [r9 - 0x28]
mov ecx, esi
mov edi, esi
shr ecx, 4
xor edi, edx
and ecx, 0x1f
rol edi, cl
sub edi, dword [r9 - 0x24]
xor esi, edi
mov ecx, edi
shr ecx, 7
and ecx, 0x1f
rol esi, cl
add esi, dword [r9 - 0x20]
mov ecx, esi
mov edx, esi
shr ecx, 4
xor edx, edi
and ecx, 0x1f
rol edx, cl
sub edx, dword [r9 - 0x1c]
xor esi, edx
mov ecx, edx
shr ecx, 7
and ecx, 0x1f
rol esi, cl
add esi, dword [r9 - 0x18]
mov ecx, esi
mov edi, esi
shr ecx, 4
xor edi, edx
and ecx, 0x1f
rol edi, cl
sub edi, dword [r9 - 0x14]
xor esi, edi
mov ecx, edi
shr ecx, 7
and ecx, 0x1f
rol esi, cl
add esi, dword [r9 - 0x10]
mov ecx, esi
mov r8d, esi
shr ecx, 4
xor r8d, edi
and ecx, 0x1f
rol r8d, cl
sub r8d, dword [r9 - 0xc]
xor esi, r8d
mov ecx, r8d
shr ecx, 7
and ecx, 0x1f
rol esi, cl
add esi, dword [r9 - 8]
dec r10
jne 0x1800ba160
mov dword [rbx], esi
mov esi, dword [rsp + 0x2c]
mov dword [rbx + 4], r8d
lea edi, [r10 + 8]
mov eax, dword [rsp + 0x30]
mov ebp, dword [rbx]
mov r13d, dword [rbx + 4]
inc eax
lea ecx, [rsi - 1]
add rbx, 8
sub r15, 8
add r14, 8
cmp eax, ecx
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x30], eax
jae 0x1800ba2ab
mov r10d, 2
jmp 0x1800b9ff0
mov dword [0x18022f414], 0x99
jmp 0x1800ba4d4
mov dword [0x18022f414], 0x98
jmp 0x1800ba4d4
mov r12d, dword [rsp + 0x44]
jmp 0x1800ba2b6
mov r8d, dword [rsp + 0x28]
mov r10d, 2
test r8d, r8d
je 0x1800ba2e8
lea rax, [rsp + 0x20]
mov rdi, rbx
lea rcx, [rsp + 0x20]
sub rdi, rax
mov edx, r8d
nop
movzx eax, byte [rdi + rcx]
inc rcx
xor byte [rcx - 1], al
dec rdx
jne 0x1800ba2d0
mov r13d, dword [rsp + 0x24]
mov ebp, dword [rsp + 0x20]
cmp esi, 2
jbe 0x1800ba3dd
add r13d, dword [rsp + 0x40]
lea rsi, [rsp + 0x4c]
add ebp, r12d
nop
mov ecx, ebp
mov edx, ebp
add rsi, 0x30
shr ecx, 4
xor edx, r13d
and ecx, 0x1f
rol edx, cl
sub edx, dword [rsi - 0x34]
xor ebp, edx
mov ecx, edx
shr ecx, 7
and ecx, 0x1f
rol ebp, cl
add ebp, dword [rsi - 0x30]
mov ecx, ebp
mov edi, ebp
shr ecx, 4
xor edi, edx
and ecx, 0x1f
rol edi, cl
sub edi, dword [rsi - 0x2c]
xor ebp, edi
mov ecx, edi
shr ecx, 7
and ecx, 0x1f
rol ebp, cl
add ebp, dword [rsi - 0x28]
mov ecx, ebp
mov edx, ebp
shr ecx, 4
xor edx, edi
and ecx, 0x1f
rol edx, cl
sub edx, dword [rsi - 0x24]
xor ebp, edx
mov ecx, edx
shr ecx, 7
and ecx, 0x1f
rol ebp, cl
add ebp, dword [rsi - 0x20]
mov ecx, ebp
mov edi, ebp
shr ecx, 4
xor edi, edx
and ecx, 0x1f
rol edi, cl
sub edi, dword [rsi - 0x1c]
xor ebp, edi
mov ecx, edi
shr ecx, 7
and ecx, 0x1f
rol ebp, cl
add ebp, dword [rsi - 0x18]
mov ecx, ebp
mov edx, ebp
shr ecx, 4
xor edx, edi
and ecx, 0x1f
rol edx, cl
sub edx, dword [rsi - 0x14]
xor ebp, edx
mov ecx, edx
shr ecx, 7
and ecx, 0x1f
rol ebp, cl
add ebp, dword [rsi - 0x10]
mov ecx, ebp
mov r13d, ebp
shr ecx, 4
xor r13d, edx
and ecx, 0x1f
rol r13d, cl
sub r13d, dword [rsi - 0xc]
xor ebp, r13d
mov ecx, r13d
shr ecx, 7
and ecx, 0x1f
rol ebp, cl
add ebp, dword [rsi - 8]
dec r10
jne 0x1800ba300
mov esi, dword [rsp + 0x2c]
jmp 0x1800ba4af
cmp esi, 1
jne 0x1800ba3f1
mov ebp, dword [rbx]
mov r13d, dword [rbx + 4]
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x24], r13d
lea rcx, [rsp + 0x20]
mov word [0x18022e8ab], 8
mov word [0x18022e8a9], 0
movzx eax, byte [rcx]
mov byte [0x18022e8ad], al
movzx eax, byte [rcx + 1]
mov byte [0x18022e8ae], al
movzx eax, byte [rcx + 2]
mov byte [0x18022e8af], al
movzx eax, byte [rcx + 3]
mov byte [0x18022e8b0], al
movzx eax, byte [rcx + 4]
mov byte [0x18022e8b1], al
movzx eax, byte [rcx + 5]
mov byte [0x18022e8b2], al
movzx eax, byte [rcx + 6]
mov byte [0x18022e8b3], al
movzx eax, byte [rcx + 7]
mov byte [0x18022e8b4], al
call fcn.1800b9970
sub eax, 0x18
je 0x1800ba476
dec eax
jne 0x1800ba487
mov r8d, dword [rsp + 0x28]
mov dword [0x18022f414], 0x99
jmp 0x1800ba4af
mov r8d, dword [rsp + 0x28]
mov dword [0x18022f414], 0x98
jmp 0x1800ba4af
cmp dword [0x18022f414], 0
jne 0x1800ba4aa
mov rax, qword [0x18022eb06]
mov r8d, dword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov r13d, dword [rsp + 0x24]
mov ebp, eax
jmp 0x1800ba4af
mov r8d, dword [rsp + 0x28]
cmp esi, 1
jbe 0x1800ba4ce
test r8d, r8d
je 0x1800ba4c5
lea rsi, [rbx - 8]
mov ecx, r8d
mov rdi, rbx
rep movsb byte [rdi], byte [rsi]
mov dword [rbx - 8], ebp
mov dword [rbx - 4], r13d
jmp 0x1800ba4d4
mov dword [rbx], ebp
mov dword [rbx + 4], r13d
mov r15, qword [rsp + 0xb8]
mov r14, qword [rsp + 0xc0]
mov r13, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0xe0]
add rsp, 0xd8
ret