Function at 0x1800b9200
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.180036620
add rdi, 0x20
mov qword [rsp + 0x98], rdi
mov edx, 0x28
mov rcx, rdi
call fcn.180036620
mov edx, 0x10
lea rcx, [rsp + 0x28]
call fcn.180032ca0
xor ebp, ebp
mov r12d, ebp
lea r13, [0x180000000]
mov r14, qword [rsp + 0x28]
test rsi, rsi
je 0x1800b940f
lea r13d, [rbp + 2]
lea r15, [0x180000000]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r12 + rbx]
test al, al
je 0x1800b93e8
movzx eax, al
dec eax
movsxd rcx, eax
movzx edx, byte [rcx + r15 + 0x1eb360]
lea rax, [r13 - 2]
and eax, 0x1f
movzx ecx, byte [rax + r15 + 0x1eb240]
lea rax, [r13 - 1]
and eax, 0x1f
movzx r9d, byte [rax + r15 + 0x1eb240]
mov rax, r13
and eax, 0x1f
movzx r10d, byte [rax + r15 + 0x1eb240]
lea rax, [r13 + 1]
and eax, 0x1f
movzx r11d, byte [rax + r15 + 0x1eb240]
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 + 0x1eb360]
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 + 0x1eb260]
xor byte [rsi], al
lea eax, [r9 - 1]
movsxd rcx, eax
movzx r8d, byte [rcx + r15 + 0x1eb360]
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 + 0x1eb260]
xor byte [rsi + 1], al
lea eax, [r10 - 1]
movsxd rcx, eax
movzx r8d, byte [rcx + r15 + 0x1eb360]
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 + 0x1eb260]
xor byte [rsi + 2], al
lea eax, [r11 - 1]
movsxd rcx, eax
movzx r8d, byte [rcx + r15 + 0x1eb360]
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 + 0x1eb260]
xor byte [rsi + 3], al
mov rsi, qword [rsp + 0x90]
inc r12
add r13, 4
cmp r12, rsi
jne 0x1800b92a0
mov r15, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x98]
lea r13, [0x180000000]
cmp rsi, 0x10
jne 0x1800b9665
mov r8, rbp
mov r9d, 0x800
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r14]
movzx eax, byte [r8 + r13 + 0x1eb040]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb040]
movzx eax, byte [r14 + 4]
xor rdx, rax
mov rcx, qword [r15]
mov eax, dword [r13 + rdx*4 + 0x1ea040]
mov dword [r9 + rcx - 0x800], eax
movzx ecx, byte [r8 + r13 + 0x1eb140]
movzx eax, byte [r14 + 1]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb040]
movzx eax, byte [r14 + 5]
xor rdx, rax
mov rcx, qword [r15]
mov eax, dword [r13 + rdx*4 + 0x1ea440]
mov dword [r9 + rcx - 0x400], eax
movzx ecx, byte [r8 + r13 + 0x1eb040]
movzx eax, byte [r14 + 2]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [r14 + 6]
xor rdx, rax
mov rcx, qword [r15]
mov eax, dword [r13 + rdx*4 + 0x1ea840]
mov dword [r9 + rcx], eax
movzx ecx, byte [r8 + r13 + 0x1eb140]
movzx eax, byte [r14 + 3]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [r14 + 7]
xor rdx, rax
mov rcx, qword [r15]
mov eax, dword [r13 + rdx*4 + 0x1eac40]
mov dword [r9 + rcx + 0x400], eax
lea r8, [r8 + 1]
add r9, 4
cmp r9, 0xc00
jne 0x1800b9430
movzx r9d, byte [r13 + rbp + 0x1eb141]
movzx r8d, byte [r13 + rbp + 0x1eb041]
mov ecx, r8d
movzx eax, byte [rbx + 0xe]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [rbx + 6]
xor rdx, rax
movzx eax, byte [rbx + 0xc]
xor r8, rax
movzx ecx, byte [r8 + r13 + 0x1eb040]
movzx eax, byte [rbx + 4]
xor rcx, rax
mov r11d, dword [r13 + rdx*4 + 0x1ea840]
xor r11d, dword [r13 + rcx*4 + 0x1ea040]
mov ecx, r9d
movzx eax, byte [rbx + 0xf]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [rbx + 7]
xor rdx, rax
xor r11d, dword [r13 + rdx*4 + 0x1eac40]
movzx eax, byte [rbx + 0xd]
xor r9, rax
movzx ecx, byte [r9 + r13 + 0x1eb040]
movzx eax, byte [rbx + 5]
xor rcx, rax
xor r11d, dword [r13 + rcx*4 + 0x1ea440]
rol r11d, 8
movzx r8d, byte [r13 + rbp + 0x1eb140]
movzx r10d, byte [r13 + rbp + 0x1eb040]
movzx eax, byte [rbx + 0xb]
xor rax, r8
movzx edx, byte [rax + r13 + 0x1eb140]
movzx eax, byte [rbx + 3]
xor rdx, rax
movzx eax, byte [rbx + 0xa]
xor rax, r10
movzx ecx, byte [rax + r13 + 0x1eb140]
movzx eax, byte [rbx + 2]
xor rcx, rax
mov r9d, dword [r13 + rdx*4 + 0x1eac40]
xor r9d, dword [r13 + rcx*4 + 0x1ea840]
movzx eax, byte [rbx + 9]
xor rax, r8
movzx ecx, byte [rax + r13 + 0x1eb040]
movzx eax, byte [rbx + 1]
xor rcx, rax
xor r9d, dword [r13 + rcx*4 + 0x1ea440]
movzx eax, byte [rbx + 8]
xor rax, r10
movzx ecx, byte [rax + r13 + 0x1eb040]
movzx eax, byte [rbx]
xor rcx, rax
xor r9d, dword [r13 + rcx*4 + 0x1ea040]
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 0x1800b9514
jmp 0x1800b9d62
cmp rsi, 0x18
jne 0x1800b9984
mov r10, rbp
mov r9d, 0x800
nop dword [rax + rax]
movzx ecx, byte [r14]
movzx eax, byte [r10 + r13 + 0x1eb140]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb040]
movzx eax, byte [r14 + 4]
xor rdx, rax
movzx r8d, byte [rdx + r13 + 0x1eb040]
movzx eax, byte [r14 + 8]
xor r8, rax
mov rcx, qword [r15]
mov eax, dword [r13 + r8*4 + 0x1ea040]
mov dword [r9 + rcx - 0x800], eax
movzx ecx, byte [r10 + r13 + 0x1eb140]
movzx eax, byte [r14 + 1]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [r14 + 5]
xor rdx, rax
movzx r8d, byte [rdx + r13 + 0x1eb040]
movzx eax, byte [r14 + 9]
xor r8, rax
mov rcx, qword [r15]
mov eax, dword [r13 + r8*4 + 0x1ea440]
mov dword [r9 + rcx - 0x400], eax
movzx ecx, byte [r10 + r13 + 0x1eb040]
movzx eax, byte [r14 + 2]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb040]
movzx eax, byte [r14 + 6]
xor rdx, rax
movzx r8d, byte [rdx + r13 + 0x1eb140]
movzx eax, byte [r14 + 0xa]
xor r8, rax
mov rcx, qword [r15]
mov eax, dword [r13 + r8*4 + 0x1ea840]
mov dword [r9 + rcx], eax
movzx ecx, byte [r10 + r13 + 0x1eb040]
movzx eax, byte [r14 + 3]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [r14 + 7]
xor rdx, rax
movzx r8d, byte [rdx + r13 + 0x1eb140]
movzx eax, byte [r14 + 0xb]
xor r8, rax
mov rcx, qword [r15]
mov eax, dword [r13 + r8*4 + 0x1eac40]
mov dword [r9 + rcx + 0x400], eax
lea r10, [r10 + 1]
add r9, 4
cmp r9, 0xc00
jne 0x1800b9680
nop dword [rax + rax]
movzx r10d, byte [r13 + rbp + 0x1eb041]
movzx r9d, byte [r13 + rbp + 0x1eb141]
mov ecx, r9d
movzx eax, byte [rbx + 0x14]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb040]
movzx eax, byte [rbx + 0xc]
xor rdx, rax
movzx r8d, byte [rdx + r13 + 0x1eb040]
movzx eax, byte [rbx + 4]
xor r8, rax
mov ecx, r10d
movzx eax, byte [rbx + 0x17]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [rbx + 0xf]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x1eb140]
movzx eax, byte [rbx + 7]
xor rcx, rax
mov r11d, dword [r13 + r8*4 + 0x1ea040]
xor r11d, dword [r13 + rcx*4 + 0x1eac40]
movzx eax, byte [rbx + 0x15]
xor rax, r9
movzx ecx, byte [rax + r13 + 0x1eb140]
movzx eax, byte [rbx + 0xd]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb040]
movzx eax, byte [rbx + 5]
xor rdx, rax
xor r11d, dword [r13 + rdx*4 + 0x1ea440]
movzx eax, byte [rbx + 0x16]
xor r10, rax
movzx ecx, byte [r10 + r13 + 0x1eb040]
movzx eax, byte [rbx + 0xe]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [rbx + 6]
xor rdx, rax
xor r11d, dword [r13 + rdx*4 + 0x1ea840]
rol r11d, 8
movzx r10d, byte [r13 + rbp + 0x1eb040]
movzx r8d, byte [r13 + rbp + 0x1eb140]
mov ecx, r8d
movzx eax, byte [rbx + 0x11]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [rbx + 9]
xor rdx, rax
movzx r9d, byte [rdx + r13 + 0x1eb040]
movzx eax, byte [rbx + 1]
xor r9, rax
movzx eax, byte [rbx + 0x10]
xor rax, r8
movzx ecx, byte [rax + r13 + 0x1eb040]
movzx eax, byte [rbx + 8]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb040]
movzx eax, byte [rbx]
xor rdx, rax
mov r8d, dword [r13 + r9*4 + 0x1ea440]
xor r8d, dword [r13 + rdx*4 + 0x1ea040]
movzx eax, byte [rbx + 0x13]
xor rax, r10
movzx ecx, byte [rax + r13 + 0x1eb140]
movzx eax, byte [rbx + 0xb]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [rbx + 3]
xor rdx, rax
xor r8d, dword [r13 + rdx*4 + 0x1eac40]
movzx eax, byte [rbx + 0x12]
xor rax, r10
movzx ecx, byte [rax + r13 + 0x1eb040]
movzx eax, byte [rbx + 0xa]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [rbx + 2]
xor rdx, rax
xor r8d, dword [r13 + rdx*4 + 0x1ea840]
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 0x1800b97b0
jmp 0x1800b9d62
cmp rsi, 0x20
jne 0x1800b9d62
mov r8, rbp
mov r9d, 0x800
nop word [rax + rax]
movzx ecx, byte [r14]
movzx eax, byte [r8 + r13 + 0x1eb140]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [r14 + 4]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x1eb040]
movzx eax, byte [r14 + 8]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb040]
movzx eax, byte [r14 + 0xc]
xor rdx, rax
mov rcx, qword [r15]
mov eax, dword [r13 + rdx*4 + 0x1ea040]
mov dword [r9 + rcx - 0x800], eax
movzx ecx, byte [r8 + r13 + 0x1eb040]
movzx eax, byte [r14 + 1]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [r14 + 5]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x1eb140]
movzx eax, byte [r14 + 9]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb040]
movzx eax, byte [r14 + 0xd]
xor rdx, rax
mov rcx, qword [r15]
mov eax, dword [r13 + rdx*4 + 0x1ea440]
mov dword [r9 + rcx - 0x400], eax
movzx ecx, byte [r8 + r13 + 0x1eb040]
movzx eax, byte [r14 + 2]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb040]
movzx eax, byte [r14 + 6]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x1eb040]
movzx eax, byte [r14 + 0xa]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [r14 + 0xe]
xor rdx, rax
mov rcx, qword [r15]
mov eax, dword [r13 + rdx*4 + 0x1ea840]
mov dword [r9 + rcx], eax
movzx ecx, byte [r8 + r13 + 0x1eb140]
movzx eax, byte [r14 + 3]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb040]
movzx eax, byte [r14 + 7]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x1eb140]
movzx eax, byte [r14 + 0xb]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [r14 + 0xf]
xor rdx, rax
mov rcx, qword [r15]
mov eax, dword [r13 + rdx*4 + 0x1eac40]
mov dword [r9 + rcx + 0x400], eax
lea r8, [r8 + 1]
add r9, 4
cmp r9, 0xc00
jne 0x1800b99a0
nop dword [rax]
movzx r10d, byte [r13 + rbp + 0x1eb141]
movzx r9d, byte [r13 + rbp + 0x1eb041]
mov ecx, r10d
movzx eax, byte [rbx + 0x1c]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [rbx + 0x14]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x1eb040]
movzx eax, byte [rbx + 0xc]
xor rcx, rax
movzx r8d, byte [rcx + r13 + 0x1eb040]
movzx eax, byte [rbx + 4]
xor r8, rax
mov ecx, r9d
movzx eax, byte [rbx + 0x1e]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb040]
movzx eax, byte [rbx + 0x16]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x1eb040]
movzx eax, byte [rbx + 0xe]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [rbx + 6]
xor rdx, rax
mov r11d, dword [r13 + r8*4 + 0x1ea040]
xor r11d, dword [r13 + rdx*4 + 0x1ea840]
movzx eax, byte [rbx + 0x1d]
xor r9, rax
movzx ecx, byte [r9 + r13 + 0x1eb140]
movzx eax, byte [rbx + 0x15]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [rbx + 0xd]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x1eb040]
movzx eax, byte [rbx + 5]
xor rcx, rax
xor r11d, dword [r13 + rcx*4 + 0x1ea440]
movzx eax, byte [rbx + 0x1f]
xor r10, rax
movzx ecx, byte [r10 + r13 + 0x1eb040]
movzx eax, byte [rbx + 0x17]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [rbx + 0xf]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x1eb140]
movzx eax, byte [rbx + 7]
xor rcx, rax
xor r11d, dword [r13 + rcx*4 + 0x1eac40]
rol r11d, 8
movzx r10d, byte [r13 + rbp + 0x1eb140]
movzx r9d, byte [r13 + rbp + 0x1eb040]
mov ecx, r9d
movzx eax, byte [rbx + 0x1a]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb040]
movzx eax, byte [rbx + 0x12]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x1eb040]
movzx eax, byte [rbx + 0xa]
xor rcx, rax
movzx r8d, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [rbx + 2]
xor r8, rax
movzx eax, byte [rbx + 0x19]
xor r9, rax
movzx ecx, byte [r9 + r13 + 0x1eb140]
movzx eax, byte [rbx + 0x11]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [rbx + 9]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x1eb040]
movzx eax, byte [rbx + 1]
xor rcx, rax
mov r9d, dword [r13 + r8*4 + 0x1ea840]
xor r9d, dword [r13 + rcx*4 + 0x1ea440]
mov ecx, r10d
movzx eax, byte [rbx + 0x1b]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb040]
movzx eax, byte [rbx + 0x13]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x1eb140]
movzx eax, byte [rbx + 0xb]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb140]
movzx eax, byte [rbx + 3]
xor rdx, rax
xor r9d, dword [r13 + rdx*4 + 0x1eac40]
movzx eax, byte [rbx + 0x18]
xor r10, rax
movzx ecx, byte [r10 + r13 + 0x1eb140]
movzx eax, byte [rbx + 0x10]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x1eb040]
movzx eax, byte [rbx + 8]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x1eb040]
movzx eax, byte [rbx]
xor rcx, rax
xor r9d, dword [r13 + rcx*4 + 0x1ea040]
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 0x1800b9b10
test r14, r14
je 0x1800b9d7e
mov rdx, qword [rsp + 0x38]
sub rdx, r14
mov r8d, 1
mov rcx, r14
call fcn.1800302d0
nop
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret