Function at 0x140042950
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x848]
sub rsp, 0x920
mov rax, qword [0x14008b948]
xor rax, rsp
mov qword [rbp + 0x810], rax
mov rsi, rcx
mov qword [rsp + 0x60], rcx
mov ecx, 0x69
call fcn.1400011dc
mov rcx, qword [rsi]
call fcn.1400246d4
mov qword [rbp - 0x68], rax
xor edx, edx
movabs r8, 0x7fffffff7fffffff
mov rcx, qword [rsi]
call fcn.140045f9c
and qword [rbp - 0x60], 0
xor r12d, r12d
mov qword [rbp - 0x58], r12
and qword [rbp - 0x50], r12
and qword [rbp - 0x48], r12
xor edi, edi
lea r15, [rsi + 0x100]
mov qword [rsp + 0x70], r15
lea r13d, [r12 + 1]
cmp qword [rsi + 0xc8], rdi
jbe 0x140042a1e
xor ebx, ebx
mov rcx, qword [rsi + 0xc0]
mov rax, qword [r15]
cmp qword [rcx + rbx], rax
jne 0x140042a08
mov edx, dword [rcx + rbx + 8]
lea rcx, [rbp - 0x60]
call fcn.140043e88
add rdi, r13
add rbx, 0x18
cmp rdi, qword [rsi + 0xc8]
jb 0x1400429eb
mov r12, qword [rbp - 0x58]
jmp 0x140042a23
mov qword [rsp + 0x70], r15
mov eax, 0x818
mul r12
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14005cacc
mov r14, rax
mov qword [rsp + 0x68], rax
lea r9, [0x140043bb0]
mov r8d, 0x20
mov rdx, qword [rsi + 0x88]
mov rcx, qword [rsi + 0x80]
call fcn.140062440
mov rdx, qword [rsi + 0xa8]
lea rcx, [rbp - 0x80]
call fcn.1400411c4
nop
xor r10d, r10d
cmp qword [rsi + 0xa8], r10
jbe 0x140042af1
xor r9d, r9d
mov r14, qword [rbp - 0x80]
mov r8, qword [rsi + 0xa0]
mov rax, qword [r15]
cmp qword [r9 + r8], rax
jne 0x140042adc
mov r8, qword [r9 + r8 + 8]
mov rdx, r8
shr rdx, 3
and rdx, qword [rbp - 0x70]
movzx ecx, byte [rdx + r14]
mov eax, r8d
and eax, 7
bts ecx, eax
mov byte [rdx + r14], cl
shr r8, 0x1e
mov rcx, r8
shr rcx, 3
and rcx, qword [rbp - 0x70]
movzx eax, byte [rcx + r14]
and r8d, 7
bts eax, r8d
mov byte [rcx + r14], al
add r10, r13
add r9, 0x28
cmp r10, qword [rsi + 0xa8]
jb 0x140042a8a
mov r14, qword [rsp + 0x68]
lea rcx, [rbp + 0x10]
call fcn.14001a024
xor edi, edi
mov dword [rsp + 0x4c], edi
mov r15d, 0x7fffffff
mov dword [rsp + 0x58], r15d
xor edx, edx
test r12, r12
je 0x140042ba1
xor eax, eax
mov rsi, qword [rbp - 0x60]
imul r10, rax, 0x818
mov ecx, dword [rsi + rax*4]
mov dword [r10 + r14], ecx
mov eax, ecx
cmp ecx, edi
cmovbe eax, edi
mov edi, eax
cmp ecx, r15d
cmovae ecx, r15d
mov r15d, ecx
mov byte [r10 + r14 + 0x810], 0
xor r8d, r8d
lea r9, [r10 + 8]
add r9, r14
mov ebx, 0x100
movzx eax, r8b
mov rcx, qword [rbp + rax*8 + 0x10]
cmp dword [r10 + r14], 0
jbe 0x140042b7a
mov r11d, dword [r10 + r14]
movzx eax, cl
shr rcx, 8
xor rcx, qword [rbp + rax*8 + 0x10]
sub r11, r13
jne 0x140042b69
mov qword [r9], rcx
add r8, r13
add r9, 8
sub rbx, r13
jne 0x140042b55
add edx, r13d
mov eax, edx
cmp rax, r12
jb 0x140042b1c
mov dword [rsp + 0x4c], edi
mov dword [rsp + 0x58], r15d
mov rsi, qword [rsp + 0x60]
mov ebx, 0x400000
mov ecx, ebx
call fcn.14005cacc
mov r15, rax
mov qword [rsp + 0x78], rax
mov r9, qword [rsi]
mov rcx, qword [r9]
mov rax, qword [rcx + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, r9
call qword [case.0x1400440b7.0]
mov r9, qword [rsi]
mov rcx, qword [r9]
mov rax, qword [rcx + 0x18]
mov r8d, ebx
mov rdx, r15
mov rcx, r9
call qword [case.0x1400440b7.0]
movsxd r13, eax
mov qword [rsp + 0x30], r13
xor edi, edi
test r12, r12
je 0x140042c32
xor eax, eax
lea esi, [rdi + 1]
imul rbx, rax, 0x818
mov r8d, dword [rbx + r14]
cmp r13, r8
jb 0x140042c24
mov rdx, r15
xor ecx, ecx
call fcn.140019ea4
mov qword [rbx + r14 + 0x808], rax
mov byte [rbx + r14 + 0x810], sil
add edi, esi
mov eax, edi
cmp rax, r12
jb 0x140042bfa
mov rsi, qword [rsp + 0x60]
and dword [rsp + 0x48], 0
and qword [rsp + 0x68], 0
xor edx, edx
mov qword [rsp + 0x40], rdx
xor edi, edi
mov ecx, dword [rsp + 0x4c]
mov qword [rsp + 0x38], rcx
jmp 0x140042c56
mov r13, qword [rsp + 0x30]
lea rax, [rdi + 0x40]
cmp rax, r13
jae 0x140042d6c
cmp byte [rdi + r15], 0x7b
jne 0x140042d6c
cmp byte [rdi + r15 + 1], 0x52
jne 0x140042d6c
cmp byte [rdi + r15 + 2], 0x42
jne 0x140042d6c
cmp byte [rdi + r15 + 3], 0x7d
jne 0x140042d6c
mov eax, 1
cmp byte [rdi + r15 + 0x14], al
jne 0x140042d6c
mov ebx, dword [rdi + r15 + 0xc]
lea rax, [rcx + rbx]
add rax, rdi
cmp rax, r13
jae 0x140042d6c
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rbp - 0x18], rax
lea rax, [rdi + rdx]
mov qword [rbp - 8], rax
lea rax, [0x140043bb0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
mov r8, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x80]
lea rcx, [rbp - 0x18]
call fcn.140064dcc
test rax, rax
je 0x140042d6c
add rdi, rbx
xor r13d, r13d
test r12, r12
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
je 0x140042c51
xor eax, eax
lea rcx, [rdi + r15]
mov r15, rcx
lea esi, [rax + 1]
imul rbx, rax, 0x818
mov r8d, dword [rbx + r14]
mov rdx, r15
xor ecx, ecx
call fcn.140019ea4
mov qword [rbx + r14 + 0x808], rax
mov byte [rbx + r14 + 0x810], sil
add r13d, esi
mov eax, r13d
cmp rax, r12
jb 0x140042d1e
mov rsi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x78]
mov r13, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
jmp 0x140042c56
xor r10d, r10d
mov dword [rsp + 0x50], r10d
xor r13b, r13b
xor ebx, ebx
test r12, r12
je 0x140042f92
xor eax, eax
mov r15, qword [rsp + 0x68]
lea r8d, [r10 + 1]
imul r9, rax, 0x818
cmp byte [r9 + r14 + 0x810], 0
je 0x140042f09
mov r8, qword [r9 + r14 + 0x808]
mov qword [rbp - 0x38], r8
mov cl, r8b
and cl, 7
mov edx, 1
shl edx, cl
mov rax, r8
shr rax, 3
and rax, qword [rbp - 0x70]
mov r11, qword [rbp - 0x80]
test byte [rax + r11], dl
je 0x140042f03
shr r8, 0x1e
mov cl, r8b
and cl, 7
mov edx, 1
shl edx, cl
shr r8, 3
and r8, qword [rbp - 0x70]
test byte [r8 + r11], dl
je 0x140042f03
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rbp - 0x40], rax
mov eax, dword [r9 + r14]
mov dword [rbp - 0x20], eax
lea rax, [0x140043b50]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
mov r8, qword [rsi + 0xa8]
mov rdx, qword [rsi + 0xa0]
lea rcx, [rbp - 0x40]
call fcn.140064dcc
mov r8, rax
test rax, rax
je 0x140042efe
mov rdx, qword [rax + 0x18]
mov r11, qword [rax + 0x10]
mov rcx, r11
sub rcx, rdx
mov r10, rdx
sub r10, r11
cmp rdx, r11
cmovbe r10, rcx
mov r9, qword [rsp + 0x40]
add r9, rdi
mov rax, r11
sub rax, r9
mov rcx, r9
sub rcx, r11
cmp r9, r11
cmovbe rcx, rax
movabs rax, 0x7fffffff7fffffff
cmp rdx, rax
je 0x140042e8a
cmp rcx, r10
jae 0x140042efe
mov qword [r8 + 0x18], r9
mov r10d, dword [rbp - 0x20]
mov dword [rsp + 0x50], r10d
test r15, r15
je 0x140042ec8
mov eax, dword [r15 + 0x20]
cmp eax, dword [r8 + 0x20]
jne 0x140042ec8
mov rcx, qword [r15 + 0x18]
add rcx, rax
cmp rcx, r9
jne 0x140042ec8
mov rcx, qword [r15 + 0x10]
add rcx, rax
cmp rcx, r11
jne 0x140042ec8
mov r11d, dword [rsp + 0x48]
inc r11d
jmp 0x140042ecb
xor r11d, r11d
mov dword [rsp + 0x48], r11d
xor edx, edx
mov eax, dword [rsp + 0x4c]
div dword [r8 + 0x20]
inc eax
mov ecx, 5
cmp eax, ecx
cmovb eax, ecx
movzx r13d, r13b
cmp r11d, eax
mov ecx, 1
cmova r13d, ecx
mov r15, r8
mov r8d, ecx
jmp 0x140042f09
mov r10d, dword [rsp + 0x50]
mov r8d, 1
add ebx, r8d
mov eax, ebx
cmp rax, r12
jb 0x140042d8d
mov qword [rsp + 0x68], r15
mov r15, qword [rsp + 0x78]
test r13b, r13b
je 0x140042f92
mov rdx, qword [rsp + 0x38]
mov r13, qword [rsp + 0x30]
test r10d, r10d
je 0x140042f9c
mov ecx, r10d
lea rax, [rdx + rcx]
add rax, rdi
cmp rax, r13
jae 0x140042f9c
cmp byte [rdi + r15], 0
je 0x140042f9c
add rdi, rcx
xor r13d, r13d
xor eax, eax
lea rcx, [rdi + r15]
mov r15, rcx
lea esi, [rax + 1]
imul rbx, rax, 0x818
mov r8d, dword [rbx + r14]
mov rdx, r15
xor ecx, ecx
call fcn.140019ea4
mov qword [rbx + r14 + 0x808], rax
mov byte [rbx + r14 + 0x810], sil
add r13d, esi
mov eax, r13d
cmp rax, r12
jb 0x140042f5d
jmp 0x140042d4e
mov rdx, qword [rsp + 0x38]
mov r13, qword [rsp + 0x30]
lea rax, [rdx + rdi]
cmp rax, r13
jb 0x140043017
mov rbx, r13
sub rbx, rdi
cmp rbx, rdx
jne 0x140043007
call fcn.14004e35c
lea rdx, [rdi + r15]
mov r8, rbx
mov rcx, r15
call fcn.14005ec20
xor edi, edi
sub r13, rbx
add qword [rsp + 0x40], r13
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov r8d, 0x400000
sub r8, rbx
lea rdx, [rbx + r15]
mov rax, qword [rax + 0x18]
call qword [case.0x1400440b7.0]
movsxd r13, eax
add r13, rbx
mov qword [rsp + 0x30], r13
mov r8, qword [rbp - 0x68]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsi]
call fcn.140045f9c
mov eax, dword [rsp + 0x58]
add rax, rdi
cmp rax, r13
jae 0x140043097
xor r10d, r10d
test r12, r12
je 0x14004308f
xor r8d, r8d
lea esi, [r10 + 1]
imul r9, r8, 0x818
mov r11d, dword [r9 + r14]
add r11, rdi
cmp r11, r13
jae 0x140043076
mov rdx, qword [r9 + r14 + 0x808]
movzx ecx, byte [rdi + r15]
imul rax, r8, 0x103
add rcx, rax
movzx eax, byte [r11 + r15]
xor rax, rdx
movzx eax, al
mov rcx, qword [r14 + rcx*8 + 8]
xor rcx, qword [rbp + rax*8 + 0x10]
shr rdx, 8
xor rcx, rdx
mov qword [r9 + r14 + 0x808], rcx
jmp 0x14004307f
mov byte [r9 + r14 + 0x810], 0
add r10d, esi
mov r8d, r10d
cmp r8, r12
jb 0x140043026
mov rsi, qword [rsp + 0x60]
inc rdi
jmp 0x140042d5d
mov rcx, r15
call fcn.14005cac4
mov rcx, r14
call fcn.14005cac4
mov edx, 0x64
mov r8d, edx
mov rcx, qword [rsi]
call fcn.140045f9c
nop
mov edx, 1
mov rcx, qword [rbp - 0x80]
call fcn.14005cac4
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x1400430d5
call fcn.14006235c
mov rcx, qword [rbp + 0x810]
xor rcx, rsp
call fcn.14005cc40
lea r11, [rsp + 0x920]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret