Function at 0x6c290f70
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
test rcx, rcx
mov rdi, rcx
je 0x6c291291
mov rbx, qword [rcx + 0xc0]
test rbx, rbx
je 0x6c291291
cmp qword [rbx], 0
je 0x6c29129c
xor r14d, r14d
test r8d, r8d
je 0x6c291190
mov eax, dword [rbx + 0x80]
mov qword [rbx + 0x18], rdx
mov dword [rbx + 0x20], r8d
cmp r8d, eax
jbe 0x6c2911a4
mov esi, dword [rbx + 0xd8]
test esi, esi
jne 0x6c291236
mov dword [rbx + 0x20], eax
mov r8d, eax
lea rax, [rbx + 8]
lea r12, [rdi + 0xcc]
xor ebp, ebp
mov r13d, 0x4000
mov qword [rsp + 0x28], rax
test r8d, r8d
je 0x6c29121e
mov esi, dword [rbx + 0x10]
test esi, esi
jne 0x6c2911d0
mov esi, dword [rbx + 0x7c]
test esi, esi
je 0x6c291210
cmp esi, 0x4000
mov r8d, dword [rbx + 0xd4]
mov rdx, qword [rbx + 0xc8]
cmovae esi, r13d
add r8d, dword [rbx + 0x60]
xor r9d, r9d
mov rcx, qword [rbx + 0xc0]
call qword [rbx + 0xa8]
test eax, eax
jne 0x6c291286
mov rdx, qword [rbx + 0xc8]
mov rcx, qword [rbx + 0xc0]
mov r9d, esi
mov r8, qword [rbx]
call qword [rbx + 0x90]
cmp esi, eax
jne 0x6c291286
mov r10d, dword [rdi + 0xc8]
test r10d, r10d
je 0x6c2910c8
xor r14d, r14d
nop dword [rax]
movzx r8d, word [rdi + 0xd4]
mov r15, r14
add r15, qword [rbx]
mov rcx, r12
add r14, 1
mov eax, r8d
or eax, 2
mov r8d, eax
xor r8d, 1
imul r8d, eax
shr r8d, 8
xor r8b, byte [r15]
mov byte [r15], r8b
mov rdx, qword [rdi + 0xd8]
movsx r8d, r8b
call sym.update_keys
cmp esi, r14d
mov byte [r15], al
ja 0x6c291080
mov r9d, dword [rbx + 0xd0]
mov rax, qword [rbx]
add dword [rbx + 0x60], esi
sub dword [rbx + 0x7c], esi
mov dword [rbx + 0x10], esi
test r9d, r9d
mov qword [rbx + 8], rax
je 0x6c291230
mov r8d, dword [rbx + 0xd8]
test r8d, r8d
je 0x6c291144
mov esi, dword [rbx + 0x10]
test esi, esi
jne 0x6c291230
mov ecx, dword [rbx + 0x7c]
test ecx, ecx
je 0x6c29121e
mov rdx, qword [rbx + 0x18]
mov ecx, dword [rbx + 0x74]
mov r8d, esi
add ebp, esi
call dbg.crc32
mov r8d, dword [rbx + 0x20]
mov dword [rbx + 0x74], eax
mov eax, esi
sub dword [rbx + 0x80], esi
sub dword [rbx + 0x10], esi
sub r8d, esi
add qword [rbx + 0x18], rax
add qword [rbx + 8], rax
mov dword [rbx + 0x20], r8d
add dword [rbx + 0x24], esi
jmp 0x6c290ff5
mov rcx, qword [rsp + 0x28]
mov edx, 2
mov r15d, dword [rbx + 0x24]
mov rsi, qword [rbx + 0x18]
call dbg.inflate
test eax, eax
mov r14d, eax
js 0x6c291173
cmp qword [rbx + 0x28], 0
je 0x6c29124a
mov r14d, 0xfffffffd
mov edi, dword [rbx + 0x24]
mov ecx, dword [rbx + 0x74]
mov rdx, rsi
sub edi, r15d
mov r8d, edi
call dbg.crc32
sub dword [rbx + 0x80], edi
mov dword [rbx + 0x74], eax
mov eax, r14d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [rbx + 0x10]
add eax, dword [rbx + 0x7c]
cmp r8d, eax
jbe 0x6c290fdd
mov r11d, dword [rbx + 0xd8]
test r11d, r11d
je 0x6c290fdd
jmp 0x6c290fd7
mov edx, dword [rbx + 0xd0]
test edx, edx
jne 0x6c2910e8
cmp esi, r8d
cmova esi, r8d
test esi, esi
je 0x6c29110a
xor eax, eax
nop
mov rdx, qword [rbx + 8]
movzx ecx, byte [rdx + rax]
mov rdx, qword [rbx + 0x18]
mov byte [rdx + rax], cl
add rax, 1
cmp esi, eax
ja 0x6c2911f0
jmp 0x6c29110a
mov eax, dword [rbx + 0xd0]
test eax, eax
jne 0x6c2910e8
mov r14d, ebp
jmp 0x6c291190
mov r8d, dword [rbx + 0x20]
jmp 0x6c2911de
mov eax, dword [rbx + 0x7c]
add eax, dword [rbx + 0x10]
cmp r8d, eax
ja 0x6c290fd7
jmp 0x6c290fdd
mov eax, dword [rbx + 0x24]
mov ecx, dword [rbx + 0x74]
mov rdx, rsi
sub eax, r15d
mov r15d, eax
mov r8d, eax
call dbg.crc32
add ebp, r15d
sub dword [rbx + 0x80], r15d
cmp r14d, 1
mov dword [rbx + 0x74], eax
je 0x6c29121e
test r14d, r14d
jne 0x6c291190
mov r8d, dword [rbx + 0x20]
jmp 0x6c290ff5
mov r14d, 0xffffffff
jmp 0x6c291190
mov r14d, 0xffffff9a
jmp 0x6c291190
mov r14d, 0xffffff9c
jmp 0x6c291190