Function at 0x1800b5ed0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
push rsi
push r13
sub rsp, 0x38
mov rsi, qword [rsp + 0x70]
mov r13, rcx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
xor edi, edi
mov qword [rax - 0x18], r12
mov qword [rax - 0x20], r14
mov qword [rax - 0x28], r15
mov eax, r9d
movsxd rbp, r8d
mov r15, rdx
test rdx, rdx
je 0x1800b601d
test al, 8
jne 0x1800b601d
mov r10, qword [rcx + 0x18]
lea eax, [rbp - 1]
mov qword [rsp + 0x70], r10
lea r9d, [rdi + 0xd]
movsxd r8, eax
test eax, eax
js 0x1800b5f49
movzx edx, byte [r15 + r8]
lea ecx, [r9*8]
xor edx, ecx
xor r9d, edx
sub r8, 1
jns 0x1800b5f31
xor edx, edx
mov eax, r9d
div dword [r10 + 0x14]
mov rax, qword [r10 + 0x20]
mov rbx, qword [rax + rdx*8]
test rbx, rbx
je 0x1800b5f80
nop
cmp ebp, dword [rbx + 0x1c]
jne 0x1800b5f78
mov r8, rbp
lea rcx, [rbx + 0x30]
mov rdx, r15
call fcn.1800025db
test eax, eax
je 0x1800b5fa8
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800b5f60
xor r12d, r12d
mov dword [r13 + 0x3c], 0
lea r14, [r13 + 0x3c]
test rdi, rdi
je 0x1800b5f9b
lea rax, [rdi + 0x10]
mov qword [rdi], rax
or dword [rsi + 8], 1
lea rbx, [rsi + 8]
jmp 0x1800b60b2
mov r14d, dword [rbx + 0x18]
lea r12d, [rbp + 0x30]
sub r14d, r12d
call fcn.180003c56
test eax, eax
jne 0x1800b6003
lea eax, [r14 + 0x1a]
movsxd rcx, eax
call fcn.1801408c0
mov rdi, rax
test rax, rax
je 0x1800b6003
movsxd rdx, r12d
lea rcx, [rax + 0x10]
add rdx, rbx
movsxd r8, r14d
call fcn.180002c16
mov ecx, 0x10
mov rdx, rbx
sub ecx, r12d
movsxd r8, ecx
mov rcx, qword [rsp + 0x70]
add r8, rdi
call fcn.1800a6fb0
lea r12d, [r14 + rax]
jmp 0x1800b5f83
lea r14, [r13 + 0x3c]
xor r12d, r12d
lea rbx, [rsi + 8]
mov dword [r14], 7
or dword [rbx], 1
jmp 0x1800b60b2
mov rcx, qword [rcx + 0x18]
lea r14, [r13 + 0x3c]
mov r8d, ebp
lea r9, [rcx + 0x18]
call fcn.1800a7250
mov rcx, qword [r13 + 0x18]
mov dword [r14], eax
mov r12, qword [rcx + 0x18]
test r12, r12
je 0x1800b609e
movsxd rbp, dword [r12 + 0x1c]
lea r15, [r12 + 0x30]
xor r8d, r8d
mov rdx, r12
call fcn.1800a6fb0
mov r12d, dword [r12 + 0x18]
mov rbx, rbp
sub r12d, ebp
sub r12d, 0x30
add rbx, r15
je 0x1800b60a6
cmp dword [r14], edi
jne 0x1800b60a6
call fcn.180003c56
test eax, eax
jne 0x1800b6088
lea ecx, [rax + 0x10]
call fcn.1801408c0
mov rdi, rax
test rax, rax
jne 0x1800b6091
mov dword [r14], 7
jmp 0x1800b60a6
mov qword [rax + 8], 0
mov qword [rax], rbx
jmp 0x1800b60a6
xor r15d, r15d
xor ebp, ebp
xor r12d, r12d
mov dword [r13 + 0x30], 0
lea rbx, [rsi + 8]
test rdi, rdi
je 0x1800b61ed
mov dword [rsi + 0x68], 0
lea rax, [rsi + 0x60]
test ebp, ebp
je 0x1800b6102
cmp ebp, dword [rax + 0xc]
jbe 0x1800b60e9
mov r8d, ebp
mov rdx, rax
mov rcx, r14
call fcn.180127770
test eax, eax
jne 0x1800b6102
lea r14, [r13 + 0x3c]
lea rax, [rsi + 0x60]
movsxd rcx, dword [rax + 8]
mov rdx, r15
add rcx, qword [rax]
mov r8d, ebp
call fcn.180002c16
add dword [rsi + 0x68], ebp
lea rbx, [rsi + 8]
mov dword [rdi + 0xc], r12d
lea rdx, [rsi + 0x70]
mov dword [rdi + 8], r12d
mov qword [rsi + 0x10], rdi
mov rcx, qword [rdi]
call fcn.18012af40
test byte [rsp + 0x68], 2
movzx edx, al
mov qword [rsi + 0x20], rdx
mov r8d, dword [rdi + 8]
mov dword [rsi + 0x44], r8d
je 0x1800b6148
or dword [rsi + 8], 2
lea rbx, [rsi + 8]
mov rdx, rsi
mov rcx, r13
call fcn.1800b7a00
jmp 0x1800b61ed
cmp dword [r14], 0
jne 0x1800b61ed
mov rax, qword [r13]
mov ebx, edx
mov r9, qword [rsi + 0x10]
cmp dword [rax + 0x60], 1
jne 0x1800b61aa
cmp r8d, dword [r9 + 0xc]
cmovge r8d, dword [r9 + 0xc]
mov byte [rsi + 0x7c], 0
mov dword [rsi + 0x78], 1
cmp edx, r8d
jge 0x1800b61e2
mov rax, qword [r9]
cmp byte [rdx + rax], 0
jne 0x1800b61e2
lea eax, [rdx + 1]
mov byte [rsi + 0x7c], 1
mov edx, eax
cmp eax, r8d
jge 0x1800b61a1
mov ecx, eax
mov rax, qword [r9]
cmp byte [rcx + rax], 0
jne 0x1800b61a1
inc edx
jmp 0x1800b61e2
mov dword [rsi + 0x78], 0
jmp 0x1800b61e2
mov rcx, rdx
inc edx
add rcx, qword [r9]
movzx r8d, byte [rcx]
mov dword [rsp + 0x70], r8d
test r8b, r8b
jns 0x1800b61d2
lea rdx, [rsp + 0x70]
call fcn.18012b1b0
mov r8d, dword [rsp + 0x70]
lea edx, [rbx + rax]
movzx eax, r8b
and al, 1
sar r8d, 1
mov dword [rsi + 0x78], r8d
mov byte [rsi + 0x7c], al
movsxd rax, edx
lea rbx, [rsi + 8]
mov qword [rsi + 0x20], rax
test byte [rbx], 2
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
je 0x1800b6223
lea rax, [0x1800b7510]
mov qword [rsi + 0x30], rax
add rsp, 0x38
pop r13
pop rsi
ret
mov rax, qword [r13]
lea rcx, [0x1800b6840]
lea rdx, [0x1800b7230]
cmp dword [rax + 0x60], 1
cmove rcx, rdx
mov qword [rsi + 0x30], rcx
add rsp, 0x38
pop r13
pop rsi
ret