Function at 0x1401d2c50
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
push rbx
push rsi
push r13
push r15
sub rsp, 0x68
mov eax, r8d
mov r13d, edx
mov rdx, qword [rsp + 0xb8]
mov r15d, r9d
mov esi, ecx
lea rbx, [rdx + rax*4]
mov qword [rsp + 0x48], rbx
cmp r9d, 1
ja 0x1401d2c93
xor eax, eax
add rsp, 0x68
pop r15
pop r13
pop rsi
pop rbx
ret
mov r8d, dword [rsp + 0xb0]
mov ecx, r8d
mov qword [rsp + 0x90], rbp
mov ebp, 1
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], r12
lea r12, [rdx + 0x40000]
shl ebp, cl
lea r12, [r12 + rsi*4]
mov qword [rsp + 0x50], r14
mov r14d, dword [rsp + 0xc8]
mov dword [rsp + 0x40], ebp
cmp r15d, ebp
ja 0x1401d2ed7
cmp r15d, r14d
ja 0x1401d2ed7
mov ecx, dword [rbx]
lea rdi, [rdx + rsi*4]
mov ebp, dword [rsp + 0xa8]
lea r14, [rdi + 4]
xor eax, eax
add ecx, r13d
mov dword [rsp + 0xb8], eax
mov r10d, eax
mov eax, ecx
mov r11, rbx
sub eax, esi
mov r9, r14
cmp ecx, esi
cmovb eax, ecx
mov ecx, r8d
mov r8d, 1
mov ebx, ecx
mov r15d, dword [r12 + rax*4]
mov eax, r15d
shl eax, cl
mov dword [rdi], eax
sub r11, rdi
nop dword [rax]
mov ecx, dword [r11 + r9]
lea r9, [r9 + 4]
add ecx, r13d
mov eax, ecx
sub eax, esi
cmp ecx, esi
cmovb eax, ecx
mov ecx, ebx
mov edx, dword [r12 + rax*4]
mov eax, edx
shl eax, cl
xor edx, r15d
or eax, r8d
or r10d, edx
inc r8d
mov dword [r9 - 4], eax
cmp r8d, ebp
jb 0x1401d2d30
mov rbx, qword [rsp + 0x48]
mov ebp, dword [rsp + 0x40]
test r10d, r10d
jne 0x1401d2d97
mov ecx, dword [rsp + 0xa8]
sub ecx, 1
je 0x1401d3078
mov eax, ecx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or eax, dword [rbx]
jmp 0x1401d2f37
mov r13d, dword [rsp + 0xa8]
mov rcx, rdi
mov edx, r13d
call fcn.140144370
mov edx, dword [rdi]
lea r15d, [rbp - 1]
mov esi, dword [rsp + 0xb0]
mov r11d, edx
mov r8d, dword [rsp + 0xa0]
mov ecx, esi
mov eax, r15d
mov ebp, r8d
and rdx, rax
shr r11d, cl
xor r9d, r9d
mov eax, dword [rbx + rdx*4]
lea edx, [r9 + 1]
mov dword [rdi], eax
jmp 0x1401d2de8
mov r8d, dword [rsp + 0xa0]
mov r10d, dword [r14]
mov ecx, esi
mov eax, r10d
shr eax, cl
cmp eax, r11d
je 0x1401d2e4d
mov r11d, eax
lea ebp, [rdx + r8]
mov eax, r9d
lea r8, [rdi + rax*4]
mov eax, edx
sub eax, r9d
sub eax, 1
je 0x1401d2e40
mov ecx, eax
and ecx, 0x3ff
or ecx, 0xfffff800
shl ecx, 0x14
or ecx, dword [r8]
mov dword [r8], ecx
cmp eax, 0x400
jb 0x1401d2e40
and eax, 0xfffffc00
bts ecx, 0x1e
shl eax, 0xa
mov dword [r8], ecx
or dword [r8 + 4], eax
mov r8d, dword [rsp + 0xb8]
mov r9d, edx
jmp 0x1401d2e5b
mov r8d, 1
mov dword [rsp + 0xb8], r8d
mov eax, r15d
mov rcx, r10
and rcx, rax
inc edx
mov eax, dword [rbx + rcx*4]
mov dword [r14], eax
add r14, 4
mov dword [r12 + rax*4], ebp
cmp edx, r13d
jb 0x1401d2de0
mov eax, r9d
sub edx, r9d
mov rsi, r13
lea rcx, [rdi + rax*4]
sub edx, 1
je 0x1401d2ebc
mov eax, edx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or eax, dword [rcx]
mov dword [rcx], eax
cmp edx, 0x400
jb 0x1401d2ebc
and edx, 0xfffffc00
bts eax, 0x1e
shl edx, 0xa
mov dword [rcx], eax
or dword [rcx + 4], edx
sub rdi, rbx
nop
mov eax, dword [rdi + rbx]
mov dword [rbx], eax
lea rbx, [rbx + 4]
sub rsi, 1
jne 0x1401d2ec0
mov eax, r8d
jmp 0x1401d307d
mov r10d, dword [rbx]
lea r8, [rbx + 4]
mov edx, 1
lea ecx, [r10 + r13]
mov eax, ecx
sub eax, esi
cmp ecx, esi
cmovb eax, ecx
mov r9d, dword [r12 + rax*4]
mov ecx, dword [r8]
add ecx, r13d
mov eax, ecx
sub eax, esi
cmp ecx, esi
cmovb eax, ecx
cmp dword [r12 + rax*4], r9d
jne 0x1401d2f14
inc edx
add r8, 4
cmp edx, r15d
jb 0x1401d2ef4
cmp edx, r15d
jne 0x1401d2f5c
lea ecx, [r15 - 1]
test ecx, ecx
je 0x1401d3078
mov eax, ecx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or eax, r10d
mov dword [rbx], eax
cmp ecx, 0x400
jb 0x1401d3078
and ecx, 0xfffffc00
bts eax, 0x1e
shl ecx, 0xa
or dword [rbx + 4], ecx
mov dword [rbx], eax
jmp 0x1401d3078
cmp r14d, 1
jbe 0x1401d3041
mov r8d, dword [rsp + 0xc0]
xor ecx, ecx
lea r9d, [r14 + 1]
mov eax, r15d
shr r9d, 1
mov edi, ecx
mov dword [rsp + 0xa8], r9d
lea ebp, [r9 + r8]
nop dword [rax + rax]
mov ecx, edi
mov r11d, dword [rbx + rcx*4]
lea r10, [rbx + rcx*4]
lea edx, [r11 + r13]
mov ecx, edx
sub ecx, esi
cmp edx, esi
cmovb ecx, edx
cmp dword [r12 + rcx*4], ebp
jb 0x1401d2fed
dec eax
cmp eax, edi
jbe 0x1401d2ff3
lea r8, [rbx + rax*4]
nop word [rax + rax]
mov r9d, dword [r8]
lea edx, [r9 + r13]
mov ecx, edx
sub ecx, esi
cmp edx, esi
cmovb ecx, edx
cmp dword [r12 + rcx*4], ebp
jb 0x1401d2fe2
dec eax
sub r8, 4
cmp eax, edi
ja 0x1401d2fc0
jmp 0x1401d2ff3
mov dword [r10], r9d
mov dword [rbx + rax*4], r11d
cmp edi, eax
jae 0x1401d2ff3
inc edi
cmp edi, eax
jb 0x1401d2f90
test edi, edi
jne 0x1401d3011
mov r8d, dword [rsp + 0xc0]
sub r8d, ebp
mov dword [rsp + 0xc0], ebp
add r14d, r8d
mov r8d, ebp
jmp 0x1401d302a
cmp edi, r15d
jne 0x1401d309f
mov r14d, dword [rsp + 0xa8]
mov r8d, dword [rsp + 0xc0]
mov dword [rsp + 0xc8], r14d
mov ecx, 0
cmp r14d, 1
ja 0x1401d2f70
lea edx, [r15 - 1]
test edx, edx
je 0x1401d3078
mov ecx, edx
and ecx, 0x3ff
or ecx, 0xfffff800
shl ecx, 0x14
or ecx, dword [rbx]
mov dword [rbx], ecx
cmp edx, 0x400
jb 0x1401d3078
and edx, 0xfffffc00
bts ecx, 0x1e
shl edx, 0xa
or dword [rbx + 4], edx
mov dword [rbx], ecx
mov eax, 1
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x90]
mov r14, qword [rsp + 0x50]
add rsp, 0x68
pop r15
pop r13
pop rsi
pop rbx
ret
mov r8d, dword [rsp + 0xa0]
lea r14d, [r8 + rdi]
jae 0x1401d30d0
mov eax, edi
mov edx, r15d
sub edx, edi
lea rcx, [rbx + rax*4]
nop dword [rax + rax]
mov eax, dword [rcx]
lea rcx, [rcx + 4]
mov dword [r12 + rax*4], r14d
sub rdx, 1
jne 0x1401d30c0
mov eax, dword [rsp + 0xa8]
mov r9d, edi
mov r12d, dword [rsp + 0xc0]
mov edx, r13d
mov dword [rsp + 0x38], eax
mov ecx, esi
mov rax, qword [rsp + 0xb8]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x20], eax
call fcn.1401d2c50
mov ebx, eax
sub r12d, ebp
mov rax, qword [rsp + 0xb8]
sub r15d, edi
add r12d, dword [rsp + 0xc8]
mov r9d, r15d
mov dword [rsp + 0x38], r12d
mov r8d, r14d
mov dword [rsp + 0x30], ebp
mov edx, r13d
mov qword [rsp + 0x28], rax
mov ecx, esi
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x20], eax
call fcn.1401d2c50
or eax, ebx
jmp 0x1401d307d