Function at 0x140042920
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.140024654
mov qword [rbp - 0x68], rax
xor edx, edx
movabs r8, 0x7fffffff7fffffff
mov rcx, qword [rsi]
call fcn.140045fa8
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 0x1400429ee
xor ebx, ebx
mov rcx, qword [rsi + 0xc0]
mov rax, qword [r15]
cmp qword [rcx + rbx], rax
jne 0x1400429d8
mov edx, dword [rcx + rbx + 8]
lea rcx, [rbp - 0x60]
call fcn.140043e58
add rdi, r13
add rbx, 0x18
cmp rdi, qword [rsi + 0xc8]
jb 0x1400429bb
mov r12, qword [rbp - 0x58]
jmp 0x1400429f3
mov qword [rsp + 0x70], r15
mov eax, 0x818
mul r12
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14005caec
mov r14, rax
mov qword [rsp + 0x68], rax
lea r9, [0x140043b80]
mov r8d, 0x20
mov rdx, qword [rsi + 0x88]
mov rcx, qword [rsi + 0x80]
call fcn.140062460
mov rdx, qword [rsi + 0xa8]
lea rcx, [rbp - 0x80]
call fcn.140041198
nop
xor r10d, r10d
cmp qword [rsi + 0xa8], r10
jbe 0x140042ac1
xor r9d, r9d
mov r14, qword [rbp - 0x80]
mov r8, qword [rsi + 0xa0]
mov rax, qword [r15]
cmp qword [r9 + r8], rax
jne 0x140042aac
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 0x140042a5a
mov r14, qword [rsp + 0x68]
lea rcx, [rbp + 0x10]
call fcn.140019f70
xor edi, edi
mov dword [rsp + 0x4c], edi
mov r15d, 0x7fffffff
mov dword [rsp + 0x58], r15d
xor edx, edx
test r12, r12
je 0x140042b71
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 0x140042b4a
mov r11d, dword [r10 + r14]
movzx eax, cl
shr rcx, 8
xor rcx, qword [rbp + rax*8 + 0x10]
sub r11, r13
jne 0x140042b39
mov qword [r9], rcx
add r8, r13
add r9, 8
sub rbx, r13
jne 0x140042b25
add edx, r13d
mov eax, edx
cmp rax, r12
jb 0x140042aec
mov dword [rsp + 0x4c], edi
mov dword [rsp + 0x58], r15d
mov rsi, qword [rsp + 0x60]
mov ebx, 0x400000
mov ecx, ebx
call fcn.14005caec
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.0x140044087.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.0x140044087.0]
movsxd r13, eax
mov qword [rsp + 0x30], r13
xor edi, edi
test r12, r12
je 0x140042c02
xor eax, eax
lea esi, [rdi + 1]
imul rbx, rax, 0x818
mov r8d, dword [rbx + r14]
cmp r13, r8
jb 0x140042bf4
mov rdx, r15
xor ecx, ecx
call fcn.140019df0
mov qword [rbx + r14 + 0x808], rax
mov byte [rbx + r14 + 0x810], sil
add edi, esi
mov eax, edi
cmp rax, r12
jb 0x140042bca
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 0x140042c26
mov r13, qword [rsp + 0x30]
lea rax, [rdi + 0x40]
cmp rax, r13
jae 0x140042d3c
cmp byte [rdi + r15], 0x7b
jne 0x140042d3c
cmp byte [rdi + r15 + 1], 0x52
jne 0x140042d3c
cmp byte [rdi + r15 + 2], 0x42
jne 0x140042d3c
cmp byte [rdi + r15 + 3], 0x7d
jne 0x140042d3c
mov eax, 1
cmp byte [rdi + r15 + 0x14], al
jne 0x140042d3c
mov ebx, dword [rdi + r15 + 0xc]
lea rax, [rcx + rbx]
add rax, rdi
cmp rax, r13
jae 0x140042d3c
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, [0x140043b80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
mov r8, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x80]
lea rcx, [rbp - 0x18]
call fcn.140064dec
test rax, rax
je 0x140042d3c
add rdi, rbx
xor r13d, r13d
test r12, r12
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
je 0x140042c21
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.140019df0
mov qword [rbx + r14 + 0x808], rax
mov byte [rbx + r14 + 0x810], sil
add r13d, esi
mov eax, r13d
cmp rax, r12
jb 0x140042cee
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 0x140042c26
xor r10d, r10d
mov dword [rsp + 0x50], r10d
xor r13b, r13b
xor ebx, ebx
test r12, r12
je 0x140042f62
xor eax, eax
mov r15, qword [rsp + 0x68]
lea r8d, [r10 + 1]
imul r9, rax, 0x818
cmp byte [r9 + r14 + 0x810], 0
je 0x140042ed9
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 0x140042ed3
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 0x140042ed3
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, [0x140043b20]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
mov r8, qword [rsi + 0xa8]
mov rdx, qword [rsi + 0xa0]
lea rcx, [rbp - 0x40]
call fcn.140064dec
mov r8, rax
test rax, rax
je 0x140042ece
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 0x140042e5a
cmp rcx, r10
jae 0x140042ece
mov qword [r8 + 0x18], r9
mov r10d, dword [rbp - 0x20]
mov dword [rsp + 0x50], r10d
test r15, r15
je 0x140042e98
mov eax, dword [r15 + 0x20]
cmp eax, dword [r8 + 0x20]
jne 0x140042e98
mov rcx, qword [r15 + 0x18]
add rcx, rax
cmp rcx, r9
jne 0x140042e98
mov rcx, qword [r15 + 0x10]
add rcx, rax
cmp rcx, r11
jne 0x140042e98
mov r11d, dword [rsp + 0x48]
inc r11d
jmp 0x140042e9b
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 0x140042ed9
mov r10d, dword [rsp + 0x50]
mov r8d, 1
add ebx, r8d
mov eax, ebx
cmp rax, r12
jb 0x140042d5d
mov qword [rsp + 0x68], r15
mov r15, qword [rsp + 0x78]
test r13b, r13b
je 0x140042f62
mov rdx, qword [rsp + 0x38]
mov r13, qword [rsp + 0x30]
test r10d, r10d
je 0x140042f6c
mov ecx, r10d
lea rax, [rdx + rcx]
add rax, rdi
cmp rax, r13
jae 0x140042f6c
cmp byte [rdi + r15], 0
je 0x140042f6c
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.140019df0
mov qword [rbx + r14 + 0x808], rax
mov byte [rbx + r14 + 0x810], sil
add r13d, esi
mov eax, r13d
cmp rax, r12
jb 0x140042f2d
jmp 0x140042d1e
mov rdx, qword [rsp + 0x38]
mov r13, qword [rsp + 0x30]
lea rax, [rdx + rdi]
cmp rax, r13
jb 0x140042fe7
mov rbx, r13
sub rbx, rdi
cmp rbx, rdx
jne 0x140042fd7
call fcn.14004e370
lea rdx, [rdi + r15]
mov r8, rbx
mov rcx, r15
call fcn.14005ec40
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.0x140044087.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.140045fa8
mov eax, dword [rsp + 0x58]
add rax, rdi
cmp rax, r13
jae 0x140043067
xor r10d, r10d
test r12, r12
je 0x14004305f
xor r8d, r8d
lea esi, [r10 + 1]
imul r9, r8, 0x818
mov r11d, dword [r9 + r14]
add r11, rdi
cmp r11, r13
jae 0x140043046
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 0x14004304f
mov byte [r9 + r14 + 0x810], 0
add r10d, esi
mov r8d, r10d
cmp r8, r12
jb 0x140042ff6
mov rsi, qword [rsp + 0x60]
inc rdi
jmp 0x140042d2d
mov rcx, r15
call fcn.14005cae4
mov rcx, r14
call fcn.14005cae4
mov edx, 0x64
mov r8d, edx
mov rcx, qword [rsi]
call fcn.140045fa8
nop
mov edx, 1
mov rcx, qword [rbp - 0x80]
call fcn.14005cae4
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x1400430a5
call fcn.14006237c
mov rcx, qword [rbp + 0x810]
xor rcx, rsp
call fcn.14005cc60
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