Function at 0x1800bc590
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea r15, [rcx + 8]
mov qword [rsp + 0x80], r15
mov edx, 0x400
mov rcx, r15
call fcn.180039a60
add rdi, 0x20
mov qword [rsp + 0x98], rdi
mov edx, 0x28
mov rcx, rdi
call fcn.180039a60
mov edx, 0x10
lea rcx, [rsp + 0x28]
call fcn.1800360e0
xor ebp, ebp
mov r12d, ebp
lea r13, [0x180000000]
mov r14, qword [rsp + 0x28]
test rsi, rsi
je 0x1800bc79f
lea r13d, [rbp + 2]
lea r15, [0x180000000]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r12 + rbx]
test al, al
je 0x1800bc778
movzx eax, al
dec eax
movsxd rcx, eax
movzx edx, byte [rcx + r15 + 0x2174e0]
lea rax, [r13 - 2]
and eax, 0x1f
movzx ecx, byte [rax + r15 + 0x2173c0]
lea rax, [r13 - 1]
and eax, 0x1f
movzx r9d, byte [rax + r15 + 0x2173c0]
mov rax, r13
and eax, 0x1f
movzx r10d, byte [rax + r15 + 0x2173c0]
lea rax, [r13 + 1]
and eax, 0x1f
movzx r11d, byte [rax + r15 + 0x2173c0]
mov rax, r12
shr rax, 3
lea rsi, [r14 + rax*4]
mov edi, edx
lea eax, [rcx - 1]
movsxd rcx, eax
movzx r8d, byte [rcx + r15 + 0x2174e0]
add r8d, edx
mov eax, 0x80808081
mul r8d
shr edx, 7
imul eax, edx, 0xff
sub r8d, eax
movsxd rax, r8d
movzx eax, byte [rax + r15 + 0x2173e0]
xor byte [rsi], al
lea eax, [r9 - 1]
movsxd rcx, eax
movzx r8d, byte [rcx + r15 + 0x2174e0]
add r8d, edi
mov eax, 0x80808081
mul r8d
shr edx, 7
imul eax, edx, 0xff
sub r8d, eax
movsxd rax, r8d
movzx eax, byte [rax + r15 + 0x2173e0]
xor byte [rsi + 1], al
lea eax, [r10 - 1]
movsxd rcx, eax
movzx r8d, byte [rcx + r15 + 0x2174e0]
add r8d, edi
mov eax, 0x80808081
mul r8d
shr edx, 7
imul eax, edx, 0xff
sub r8d, eax
movsxd rax, r8d
movzx eax, byte [rax + r15 + 0x2173e0]
xor byte [rsi + 2], al
lea eax, [r11 - 1]
movsxd rcx, eax
movzx r8d, byte [rcx + r15 + 0x2174e0]
add r8d, edi
mov eax, 0x80808081
mul r8d
shr edx, 7
imul eax, edx, 0xff
sub r8d, eax
movsxd rax, r8d
movzx eax, byte [rax + r15 + 0x2173e0]
xor byte [rsi + 3], al
mov rsi, qword [rsp + 0x90]
inc r12
add r13, 4
cmp r12, rsi
jne 0x1800bc630
mov r15, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x98]
lea r13, [0x180000000]
cmp rsi, 0x10
jne 0x1800bc9f5
mov r8, rbp
mov r9d, 0x800
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r14]
movzx eax, byte [r8 + r13 + 0x2171c0]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2171c0]
movzx eax, byte [r14 + 4]
xor rdx, rax
mov rcx, qword [r15]
mov eax, dword [r13 + rdx*4 + 0x2161c0]
mov dword [r9 + rcx - 0x800], eax
movzx ecx, byte [r8 + r13 + 0x2172c0]
movzx eax, byte [r14 + 1]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2171c0]
movzx eax, byte [r14 + 5]
xor rdx, rax
mov rcx, qword [r15]
mov eax, dword [r13 + rdx*4 + 0x2165c0]
mov dword [r9 + rcx - 0x400], eax
movzx ecx, byte [r8 + r13 + 0x2171c0]
movzx eax, byte [r14 + 2]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [r14 + 6]
xor rdx, rax
mov rcx, qword [r15]
mov eax, dword [r13 + rdx*4 + 0x2169c0]
mov dword [r9 + rcx], eax
movzx ecx, byte [r8 + r13 + 0x2172c0]
movzx eax, byte [r14 + 3]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [r14 + 7]
xor rdx, rax
mov rcx, qword [r15]
mov eax, dword [r13 + rdx*4 + 0x216dc0]
mov dword [r9 + rcx + 0x400], eax
lea r8, [r8 + 1]
add r9, 4
cmp r9, 0xc00
jne 0x1800bc7c0
movzx r9d, byte [r13 + rbp + 0x2172c1]
movzx r8d, byte [r13 + rbp + 0x2171c1]
mov ecx, r8d
movzx eax, byte [rbx + 0xe]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [rbx + 6]
xor rdx, rax
movzx eax, byte [rbx + 0xc]
xor r8, rax
movzx ecx, byte [r8 + r13 + 0x2171c0]
movzx eax, byte [rbx + 4]
xor rcx, rax
mov r11d, dword [r13 + rdx*4 + 0x2169c0]
xor r11d, dword [r13 + rcx*4 + 0x2161c0]
mov ecx, r9d
movzx eax, byte [rbx + 0xf]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [rbx + 7]
xor rdx, rax
xor r11d, dword [r13 + rdx*4 + 0x216dc0]
movzx eax, byte [rbx + 0xd]
xor r9, rax
movzx ecx, byte [r9 + r13 + 0x2171c0]
movzx eax, byte [rbx + 5]
xor rcx, rax
xor r11d, dword [r13 + rcx*4 + 0x2165c0]
rol r11d, 8
movzx r8d, byte [r13 + rbp + 0x2172c0]
movzx r10d, byte [r13 + rbp + 0x2171c0]
movzx eax, byte [rbx + 0xb]
xor rax, r8
movzx edx, byte [rax + r13 + 0x2172c0]
movzx eax, byte [rbx + 3]
xor rdx, rax
movzx eax, byte [rbx + 0xa]
xor rax, r10
movzx ecx, byte [rax + r13 + 0x2172c0]
movzx eax, byte [rbx + 2]
xor rcx, rax
mov r9d, dword [r13 + rdx*4 + 0x216dc0]
xor r9d, dword [r13 + rcx*4 + 0x2169c0]
movzx eax, byte [rbx + 9]
xor rax, r8
movzx ecx, byte [rax + r13 + 0x2171c0]
movzx eax, byte [rbx + 1]
xor rcx, rax
xor r9d, dword [r13 + rcx*4 + 0x2165c0]
movzx eax, byte [rbx + 8]
xor rax, r10
movzx ecx, byte [rax + r13 + 0x2171c0]
movzx eax, byte [rbx]
xor rcx, rax
xor r9d, dword [r13 + rcx*4 + 0x2161c0]
add r9d, r11d
add r11d, r9d
mov rax, qword [rdi]
mov dword [rax + rbp*4], r9d
rol r11d, 9
mov rax, qword [rdi]
mov dword [rax + rbp*4 + 4], r11d
add rbp, 2
cmp rbp, 0x28
jb 0x1800bc8a4
jmp 0x1800bd0f2
cmp rsi, 0x18
jne 0x1800bcd14
mov r10, rbp
mov r9d, 0x800
nop dword [rax + rax]
movzx ecx, byte [r14]
movzx eax, byte [r10 + r13 + 0x2172c0]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2171c0]
movzx eax, byte [r14 + 4]
xor rdx, rax
movzx r8d, byte [rdx + r13 + 0x2171c0]
movzx eax, byte [r14 + 8]
xor r8, rax
mov rcx, qword [r15]
mov eax, dword [r13 + r8*4 + 0x2161c0]
mov dword [r9 + rcx - 0x800], eax
movzx ecx, byte [r10 + r13 + 0x2172c0]
movzx eax, byte [r14 + 1]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [r14 + 5]
xor rdx, rax
movzx r8d, byte [rdx + r13 + 0x2171c0]
movzx eax, byte [r14 + 9]
xor r8, rax
mov rcx, qword [r15]
mov eax, dword [r13 + r8*4 + 0x2165c0]
mov dword [r9 + rcx - 0x400], eax
movzx ecx, byte [r10 + r13 + 0x2171c0]
movzx eax, byte [r14 + 2]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2171c0]
movzx eax, byte [r14 + 6]
xor rdx, rax
movzx r8d, byte [rdx + r13 + 0x2172c0]
movzx eax, byte [r14 + 0xa]
xor r8, rax
mov rcx, qword [r15]
mov eax, dword [r13 + r8*4 + 0x2169c0]
mov dword [r9 + rcx], eax
movzx ecx, byte [r10 + r13 + 0x2171c0]
movzx eax, byte [r14 + 3]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [r14 + 7]
xor rdx, rax
movzx r8d, byte [rdx + r13 + 0x2172c0]
movzx eax, byte [r14 + 0xb]
xor r8, rax
mov rcx, qword [r15]
mov eax, dword [r13 + r8*4 + 0x216dc0]
mov dword [r9 + rcx + 0x400], eax
lea r10, [r10 + 1]
add r9, 4
cmp r9, 0xc00
jne 0x1800bca10
nop dword [rax + rax]
movzx r10d, byte [r13 + rbp + 0x2171c1]
movzx r9d, byte [r13 + rbp + 0x2172c1]
mov ecx, r9d
movzx eax, byte [rbx + 0x14]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2171c0]
movzx eax, byte [rbx + 0xc]
xor rdx, rax
movzx r8d, byte [rdx + r13 + 0x2171c0]
movzx eax, byte [rbx + 4]
xor r8, rax
mov ecx, r10d
movzx eax, byte [rbx + 0x17]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [rbx + 0xf]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2172c0]
movzx eax, byte [rbx + 7]
xor rcx, rax
mov r11d, dword [r13 + r8*4 + 0x2161c0]
xor r11d, dword [r13 + rcx*4 + 0x216dc0]
movzx eax, byte [rbx + 0x15]
xor rax, r9
movzx ecx, byte [rax + r13 + 0x2172c0]
movzx eax, byte [rbx + 0xd]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2171c0]
movzx eax, byte [rbx + 5]
xor rdx, rax
xor r11d, dword [r13 + rdx*4 + 0x2165c0]
movzx eax, byte [rbx + 0x16]
xor r10, rax
movzx ecx, byte [r10 + r13 + 0x2171c0]
movzx eax, byte [rbx + 0xe]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [rbx + 6]
xor rdx, rax
xor r11d, dword [r13 + rdx*4 + 0x2169c0]
rol r11d, 8
movzx r10d, byte [r13 + rbp + 0x2171c0]
movzx r8d, byte [r13 + rbp + 0x2172c0]
mov ecx, r8d
movzx eax, byte [rbx + 0x11]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [rbx + 9]
xor rdx, rax
movzx r9d, byte [rdx + r13 + 0x2171c0]
movzx eax, byte [rbx + 1]
xor r9, rax
movzx eax, byte [rbx + 0x10]
xor rax, r8
movzx ecx, byte [rax + r13 + 0x2171c0]
movzx eax, byte [rbx + 8]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2171c0]
movzx eax, byte [rbx]
xor rdx, rax
mov r8d, dword [r13 + r9*4 + 0x2165c0]
xor r8d, dword [r13 + rdx*4 + 0x2161c0]
movzx eax, byte [rbx + 0x13]
xor rax, r10
movzx ecx, byte [rax + r13 + 0x2172c0]
movzx eax, byte [rbx + 0xb]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [rbx + 3]
xor rdx, rax
xor r8d, dword [r13 + rdx*4 + 0x216dc0]
movzx eax, byte [rbx + 0x12]
xor rax, r10
movzx ecx, byte [rax + r13 + 0x2171c0]
movzx eax, byte [rbx + 0xa]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [rbx + 2]
xor rdx, rax
xor r8d, dword [r13 + rdx*4 + 0x2169c0]
add r8d, r11d
add r11d, r8d
mov rax, qword [rdi]
mov dword [rax + rbp*4], r8d
rol r11d, 9
mov rax, qword [rdi]
mov dword [rax + rbp*4 + 4], r11d
add rbp, 2
cmp rbp, 0x28
jb 0x1800bcb40
jmp 0x1800bd0f2
cmp rsi, 0x20
jne 0x1800bd0f2
mov r8, rbp
mov r9d, 0x800
nop word [rax + rax]
movzx ecx, byte [r14]
movzx eax, byte [r8 + r13 + 0x2172c0]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [r14 + 4]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2171c0]
movzx eax, byte [r14 + 8]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2171c0]
movzx eax, byte [r14 + 0xc]
xor rdx, rax
mov rcx, qword [r15]
mov eax, dword [r13 + rdx*4 + 0x2161c0]
mov dword [r9 + rcx - 0x800], eax
movzx ecx, byte [r8 + r13 + 0x2171c0]
movzx eax, byte [r14 + 1]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [r14 + 5]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2172c0]
movzx eax, byte [r14 + 9]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2171c0]
movzx eax, byte [r14 + 0xd]
xor rdx, rax
mov rcx, qword [r15]
mov eax, dword [r13 + rdx*4 + 0x2165c0]
mov dword [r9 + rcx - 0x400], eax
movzx ecx, byte [r8 + r13 + 0x2171c0]
movzx eax, byte [r14 + 2]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2171c0]
movzx eax, byte [r14 + 6]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2171c0]
movzx eax, byte [r14 + 0xa]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [r14 + 0xe]
xor rdx, rax
mov rcx, qword [r15]
mov eax, dword [r13 + rdx*4 + 0x2169c0]
mov dword [r9 + rcx], eax
movzx ecx, byte [r8 + r13 + 0x2172c0]
movzx eax, byte [r14 + 3]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2171c0]
movzx eax, byte [r14 + 7]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2172c0]
movzx eax, byte [r14 + 0xb]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [r14 + 0xf]
xor rdx, rax
mov rcx, qword [r15]
mov eax, dword [r13 + rdx*4 + 0x216dc0]
mov dword [r9 + rcx + 0x400], eax
lea r8, [r8 + 1]
add r9, 4
cmp r9, 0xc00
jne 0x1800bcd30
nop dword [rax]
movzx r10d, byte [r13 + rbp + 0x2172c1]
movzx r9d, byte [r13 + rbp + 0x2171c1]
mov ecx, r10d
movzx eax, byte [rbx + 0x1c]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [rbx + 0x14]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2171c0]
movzx eax, byte [rbx + 0xc]
xor rcx, rax
movzx r8d, byte [rcx + r13 + 0x2171c0]
movzx eax, byte [rbx + 4]
xor r8, rax
mov ecx, r9d
movzx eax, byte [rbx + 0x1e]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2171c0]
movzx eax, byte [rbx + 0x16]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2171c0]
movzx eax, byte [rbx + 0xe]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [rbx + 6]
xor rdx, rax
mov r11d, dword [r13 + r8*4 + 0x2161c0]
xor r11d, dword [r13 + rdx*4 + 0x2169c0]
movzx eax, byte [rbx + 0x1d]
xor r9, rax
movzx ecx, byte [r9 + r13 + 0x2172c0]
movzx eax, byte [rbx + 0x15]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [rbx + 0xd]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2171c0]
movzx eax, byte [rbx + 5]
xor rcx, rax
xor r11d, dword [r13 + rcx*4 + 0x2165c0]
movzx eax, byte [rbx + 0x1f]
xor r10, rax
movzx ecx, byte [r10 + r13 + 0x2171c0]
movzx eax, byte [rbx + 0x17]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [rbx + 0xf]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2172c0]
movzx eax, byte [rbx + 7]
xor rcx, rax
xor r11d, dword [r13 + rcx*4 + 0x216dc0]
rol r11d, 8
movzx r10d, byte [r13 + rbp + 0x2172c0]
movzx r9d, byte [r13 + rbp + 0x2171c0]
mov ecx, r9d
movzx eax, byte [rbx + 0x1a]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2171c0]
movzx eax, byte [rbx + 0x12]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2171c0]
movzx eax, byte [rbx + 0xa]
xor rcx, rax
movzx r8d, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [rbx + 2]
xor r8, rax
movzx eax, byte [rbx + 0x19]
xor r9, rax
movzx ecx, byte [r9 + r13 + 0x2172c0]
movzx eax, byte [rbx + 0x11]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [rbx + 9]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2171c0]
movzx eax, byte [rbx + 1]
xor rcx, rax
mov r9d, dword [r13 + r8*4 + 0x2169c0]
xor r9d, dword [r13 + rcx*4 + 0x2165c0]
mov ecx, r10d
movzx eax, byte [rbx + 0x1b]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2171c0]
movzx eax, byte [rbx + 0x13]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2172c0]
movzx eax, byte [rbx + 0xb]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2172c0]
movzx eax, byte [rbx + 3]
xor rdx, rax
xor r9d, dword [r13 + rdx*4 + 0x216dc0]
movzx eax, byte [rbx + 0x18]
xor r10, rax
movzx ecx, byte [r10 + r13 + 0x2172c0]
movzx eax, byte [rbx + 0x10]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2171c0]
movzx eax, byte [rbx + 8]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2171c0]
movzx eax, byte [rbx]
xor rcx, rax
xor r9d, dword [r13 + rcx*4 + 0x2161c0]
add r9d, r11d
add r11d, r9d
mov rax, qword [rdi]
mov dword [rax + rbp*4], r9d
rol r11d, 9
mov rax, qword [rdi]
mov dword [rax + rbp*4 + 4], r11d
add rbp, 2
cmp rbp, 0x28
jb 0x1800bcea0
test r14, r14
je 0x1800bd10e
mov rdx, qword [rsp + 0x38]
sub rdx, r14
mov r8d, 1
mov rcx, r14
call fcn.180033660
nop
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret