Function at 0x180034650
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push r13
push r14
lea rbp, [rsp - 0x3f]
sub rsp, 0x88
mov rax, qword [rcx]
mov ebx, 1
mov r13, qword [rcx + 8]
mov r14, rcx
mov qword [rbp + 0x67], rbx
cmp dword [rax + 0x94], 0
je 0x18003480f
mov qword [rsp + 0x80], r15
lea edx, [rbx + 0x13]
mov r15d, dword [rax + 0x90]
add r15, r13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180034807
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc0], rdi
lea rdi, [rbx - 2]
mov qword [rsp + 0xc8], r12
movaps xmmword [rsp + 0x70], xmm6
movsd xmm6, qword [0x1800ba7b8]
mov ecx, dword [r15 + 0xc]
test ecx, ecx
je 0x1800347e6
mov rax, qword [r14 + 0x28]
add rcx, r13
mov rdx, qword [r14 + 0x40]
call rax
mov r12, rax
test rax, rax
je 0x18003493d
movaps xmm1, xmm6
lea rcx, [0x1800a7d98]
movq rdx, xmm6
call fcn.18000ba10
movsxd rcx, dword [r14 + 0x18]
mov eax, 8
inc rcx
mul rcx
mov rcx, qword [r14 + 0x10]
cmovo rax, rdi
mov rdx, rax
call fcn.180067cc0
test rax, rax
je 0x1800348ad
movaps xmm1, xmm6
mov qword [r14 + 0x10], rax
movq rdx, xmm6
lea rcx, [0x1800a7d98]
call fcn.18000ba10
movsxd rcx, dword [r14 + 0x18]
mov rax, qword [r14 + 0x10]
mov qword [rax + rcx*8], r12
inc dword [r14 + 0x18]
mov ecx, dword [r15]
test ecx, ecx
je 0x180034768
mov eax, dword [r15 + 0x10]
jmp 0x18003476e
mov ecx, dword [r15 + 0x10]
mov eax, ecx
mov ebx, ecx
add rbx, r13
mov esi, eax
add rsi, r13
cmp qword [rbx], 0
je 0x1800347cc
nop
movaps xmm1, xmm6
lea rcx, [0x1800a7d98]
movq rdx, xmm6
call fcn.18000ba10
mov rax, qword [rbx]
mov rcx, r12
mov r9, qword [r14 + 0x30]
mov r8, qword [r14 + 0x40]
test rax, rax
jns 0x1800347ac
movzx edx, ax
jmp 0x1800347b3
lea rdx, [r13 + 2]
add rdx, rax
call r9
mov qword [rsi], rax
test rax, rax
je 0x18003481f
add rbx, 8
add rsi, 8
cmp qword [rbx], 0
jne 0x180034780
add r15, 0x14
mov edx, 0x14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1800346d2
mov rbx, qword [rbp + 0x67]
mov r12, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xb8]
movaps xmm6, xmmword [rsp + 0x70]
mov r15, qword [rsp + 0x80]
mov eax, ebx
add rsp, 0x88
pop r14
pop r13
pop rbx
pop rbp
ret
mov rdx, qword [r14 + 0x40]
xor ebx, ebx
mov rcx, r12
call qword [r14 + 0x38]
movdqa xmm0, xmmword [0x1800bc2e0]
mov ecx, ebx
movdqa xmm1, xmmword [0x1800bc020]
movdqu xmmword [rbp - 9], xmm0
mov word [rbp + 0x17], 0x35
movdqu xmmword [rbp + 7], xmm1
nop
movzx eax, cl
add al, byte [rbp - 9]
xor byte [rbp + rcx - 8], al
inc rcx
cmp rcx, 0x20
jb 0x180034850
mov byte [rbp + 0x18], bl
lea rax, [rbp - 8]
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], 0xf
mov byte [rbp - 0x29], bl
nop dword [rax]
inc rdi
cmp byte [rax + rdi], bl
jne 0x180034880
mov r8, rdi
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x29]
call fcn.18000b0f0
lea rdx, [rbp - 0x29]
call fcn.18000a540
mov ecx, 0x7f
call rax
jmp 0x1800347ea
mov rdx, qword [r14 + 0x40]
mov rcx, r12
call qword [r14 + 0x38]
movdqa xmm0, xmmword [0x1800bba70]
xor ebx, ebx
movdqa xmm1, xmmword [0x1800bba20]
mov ecx, ebx
movdqu xmmword [rbp - 9], xmm0
mov word [rbp + 0x17], 0x31
movdqu xmmword [rbp + 7], xmm1
nop dword [rax]
movzx eax, byte [rbp - 9]
xor byte [rbp + rcx - 8], al
movzx eax, byte [rbp - 9]
xor byte [rbp + rcx - 7], al
add rcx, 2
cmp rcx, 0x20
jb 0x1800348e0
mov byte [rbp + 0x18], bl
lea rax, [rbp - 8]
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], 0xf
mov byte [rbp - 0x29], bl
inc rdi
cmp byte [rax + rdi], bl
jne 0x180034910
mov r8, rdi
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x29]
call fcn.18000b0f0
lea rdx, [rbp - 0x29]
call fcn.18000a540
mov ecx, 0xe
call rax
jmp 0x1800347ea
movdqa xmm0, xmmword [0x1800bb250]
xor ebx, ebx
movdqa xmm1, xmmword [0x1800bb1b0]
mov ecx, ebx
movdqu xmmword [rbp - 9], xmm0
mov word [rbp + 0x17], 0x58
movdqu xmmword [rbp + 7], xmm1
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp - 9]
xor byte [rbp + rcx - 8], al
movzx eax, byte [rbp - 9]
xor byte [rbp + rcx - 7], al
add rcx, 2
cmp rcx, 0x20
jb 0x180034970
mov byte [rbp + 0x18], bl
lea rax, [rbp - 8]
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], 0xf
mov byte [rbp - 0x29], bl
inc rdi
cmp byte [rax + rdi], bl
jne 0x1800349a0
mov r8, rdi
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x29]
call fcn.18000b0f0
lea rdx, [rbp - 0x29]
call fcn.18000a540
mov ecx, 0x7e
call rax
jmp 0x1800347ea