Function at 0x180034bb0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x618]
sub rsp, 0x718
mov rax, qword [0x180083008]
xor rax, rsp
mov qword [rbp + 0x600], rax
mov rax, rcx
mov qword [rsp + 0x50], rcx
movsxd rcx, dword [rcx + 0x1b0]
xor esi, esi
mov dword [rsp + 0x38], r9d
mov r15, rdx
mov dword [rsp + 0x3c], r8d
mov rax, qword [rax + 0x1c0]
mov qword [rbp - 0x78], rdx
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x4c], 0xffffffff
mov rdi, qword [rax + rcx*8]
xor ecx, ecx
xor eax, eax
mov qword [rbp - 0x80], rdi
movsxd r14, dword [rdi + 0x14]
mov dword [rsp + 0x48], r14d
lea ebx, [r14*4]
test r14d, r14d
jle 0x180034c40
cmp dword [rdx + rax*4], esi
jne 0x180034c40
inc ecx
inc rax
cmp rax, r14
jl 0x180034c31
mov r8d, 0x600
cmp ecx, r14d
jne 0x180034c9f
lea rcx, [rdi + 0x1c0]
xor edx, edx
call fcn.18004fc80
xor eax, eax
mov dword [rdi + 0x9c], esi
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x48], rax
mov qword [rdi + 0x50], rax
mov qword [rdi + 0x58], rax
mov qword [rdi + 0x60], rax
mov dword [rdi + 0x68], eax
test byte [rdi + 0x18], 8
je 0x1800352c6
mov rcx, rdi
call fcn.180045ed0
jmp 0x1800352c6
mov eax, dword [rdi + 0x18]
mov ecx, 0x1b00
shr eax, 0x12
and eax, 0x1f
mov qword [rsp + 0x760], r12
add eax, 4
mov qword [rsp + 0x710], r13
shl eax, 8
cmp eax, ecx
cmova eax, ecx
xor edx, edx
lea rcx, [rbp]
mov dword [rsp + 0x68], eax
call fcn.18004fc80
movsxd r12, ebx
mov rcx, r12
mov qword [rbp - 0x70], r12
call fcn.1800513bc
mov rcx, r12
mov qword [rsp + 0x58], rax
mov r13, rax
call fcn.1800513bc
mov rcx, r12
mov qword [rsp + 0x60], rax
call fcn.1800513bc
mov qword [rsp + 0x40], rax
mov edx, 1
mov eax, dword [rdi + 0xb4]
cmp eax, edx
jle 0x180034e91
test byte [rdi + 0x18], 8
je 0x180034e91
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rdx + 0x60]
call fcn.18004fc80
mov eax, 0x800
mov dword [rbp - 0x5c], 2
cmp r14d, eax
mov dword [rbp - 0x60], 0x12
mov ebx, r14d
mov dword [rsp + 0x20], 0xffffffff
cmovg ebx, eax
lea r9, [rbp - 0x60]
mov r8d, ebx
mov rdx, r13
mov rcx, r15
call fcn.1800336e0
mov edx, dword [rbp - 0x60]
cmp edx, 8
jle 0x180034da6
mov ecx, dword [rbp - 0x50]
and edx, 1
je 0x180034d82
lea eax, [rcx + rcx]
sub eax, dword [rbp - 0x4c]
jmp 0x180034d8a
lea eax, [rcx + rcx*2]
sub eax, dword [rbp - 0x4c]
sar eax, 1
mov dword [rbp - 0x50], eax
test edx, edx
je 0x180034d9a
add eax, eax
sub eax, ecx
mov dword [rbp - 0x4c], eax
jmp 0x180034ded
lea eax, [rax + rax*2]
sub eax, ecx
sar eax, 1
mov dword [rbp - 0x4c], eax
jmp 0x180034ded
cmp edx, 1
jle 0x180034ded
mov eax, edx
lea r8d, [rdx - 1]
cdq
xor ecx, ecx
sub eax, edx
sar eax, 1
mov r9d, eax
je 0x180034ded
nop dword [rax]
and r8d, 7
and ecx, 7
mov eax, dword [rbp + r8*4 - 0x50]
xor dword [rbp + rcx*4 - 0x50], eax
mov eax, dword [rbp + rcx*4 - 0x50]
xor dword [rbp + r8*4 - 0x50], eax
mov eax, dword [rbp + r8*4 - 0x50]
dec r8d
xor dword [rbp + rcx*4 - 0x50], eax
inc ecx
sub r9d, 1
jne 0x180034dc0
mov esi, 1
lea r9, [rbp - 0x60]
mov r8d, r14d
mov dword [rsp + 0x20], esi
mov rdx, r13
mov rcx, r15
call fcn.1800336e0
xor edx, edx
lea r8d, [rsi + 0x5f]
lea rcx, [rbp - 0x60]
call fcn.18004fc80
mov r8d, ebx
mov dword [rbp - 0x5c], 2
mov rbx, qword [rsp + 0x60]
lea r9, [rbp - 0x60]
mov rdx, rbx
mov dword [rbp - 0x60], 0x11
mov rcx, r13
mov dword [rsp + 0x20], 0xffffffff
call fcn.1800336e0
lea r9, [rbp - 0x60]
mov dword [rsp + 0x20], esi
mov r8d, r14d
mov rdx, rbx
mov rcx, r13
call fcn.1800336e0
mov rcx, r12
call fcn.1800513bc
mov r8, r12
mov qword [rsp + 0x70], rax
mov rdx, r15
mov rcx, rax
mov rsi, rax
call fcn.18004f4a0
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.180034a30
mov edx, 1
mov dword [rsp + 0x3c], edx
jmp 0x180034e9c
cmp dword [rsp + 0x3c], esi
jne 0x180034e9c
cmp eax, 7
jl 0x180034ea7
mov qword [rdi + 0xb8], 0
xor ecx, ecx
mov dword [rsp + 0x30], ecx
cmp dword [rdi + 0xb4], ecx
jle 0x18003522e
nop dword [rax]
test ecx, ecx
jne 0x180034fc1
mov ecx, dword [rdi + 0xb8]
mov dword [rsp + 0x34], ecx
movsxd rax, ecx
imul r15, rax, 0x13
add r15, qword [rdi + 0x820]
mov qword [rsp + 0x78], r15
or rsi, 0xffffffffffffffff
lea rbx, [r15 + 2]
nop dword [rax]
inc rsi
cmp byte [rbx + rsi], 0
jne 0x180034ef0
mov rcx, qword [rsp + 0x70]
mov rax, qword [rbp - 0x78]
test rcx, rcx
cmovne rax, rcx
mov qword [rbp - 0x68], rax
nop dword [rax]
mov r8, r12
mov rdx, rax
mov rcx, r13
call fcn.18004f4a0
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x600
call fcn.18004fc80
xor edi, edi
test esi, esi
jle 0x180035102
mov eax, 0x800
mov r13d, r14d
cmp r14d, eax
mov r14, rbx
lea rbx, [rbp]
cmovg r13d, eax
nop
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rdx + 0x60]
call fcn.18004fc80
movsx eax, byte [r15 + 1]
lea r9, [rbp - 0x60]
mov dword [rbp - 0x5c], eax
mov ecx, 1
movsx eax, byte [r14]
mov r8d, r13d
test eax, eax
mov dword [rsp + 0x20], 0xffffffff
cmovs eax, ecx
mov dword [rbp - 0x60], eax
mov eax, edi
not eax
and eax, ecx
mov r15, qword [rsp + rax*8 + 0x58]
mov eax, edi
and eax, ecx
mov rdx, r15
mov r12, qword [rsp + rax*8 + 0x58]
mov rcx, r12
call fcn.1800336e0
test edi, edi
je 0x180035006
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
jmp 0x180035092
mov eax, dword [rdi + 0xbc]
test eax, eax
jne 0x180034fcf
xor ecx, ecx
jmp 0x180034fda
lea ecx, [rax - 1]
and ecx, dword [rdi + 0xb8]
or ecx, eax
mov dword [rsp + 0x34], ecx
cmp ecx, dword [rdi + 0xb8]
jne 0x180034ed2
test eax, eax
je 0x180034fff
mov ecx, dword [rdi + 0xb0]
add eax, eax
dec ecx
and ecx, eax
jmp 0x18003520a
mov ecx, edx
jmp 0x18003520a
mov ecx, dword [rbp - 0x60]
cmp ecx, 8
jle 0x180035042
mov edx, dword [rbp - 0x50]
and ecx, 1
je 0x18003501e
lea eax, [rdx + rdx]
sub eax, dword [rbp - 0x4c]
jmp 0x180035026
lea eax, [rdx + rdx*2]
sub eax, dword [rbp - 0x4c]
sar eax, 1
mov dword [rbp - 0x50], eax
test ecx, ecx
je 0x180035036
add eax, eax
sub eax, edx
mov dword [rbp - 0x4c], eax
jmp 0x180035092
lea eax, [rax + rax*2]
sub eax, edx
sar eax, 1
mov dword [rbp - 0x4c], eax
jmp 0x180035092
cmp ecx, 1
jle 0x180035092
mov eax, ecx
lea r10d, [rcx - 1]
cdq
xor r9d, r9d
sub eax, edx
sar eax, 1
mov r8d, eax
je 0x180035092
nop word [rax + rax]
and r10d, 7
and r9d, 7
mov eax, dword [rbp + r10*4 - 0x50]
xor dword [rbp + r9*4 - 0x50], eax
mov eax, dword [rbp + r9*4 - 0x50]
xor dword [rbp + r10*4 - 0x50], eax
mov eax, dword [rbp + r10*4 - 0x50]
dec r10d
xor dword [rbp + r9*4 - 0x50], eax
inc r9d
sub r8d, 1
jne 0x180035060
movaps xmm0, xmmword [rbp - 0x60]
lea r9, [rbp - 0x60]
movaps xmm1, xmmword [rbp - 0x50]
mov eax, 1
mov r8d, dword [rsp + 0x48]
mov rdx, r15
movups xmmword [rbx], xmm0
mov rcx, r12
mov dword [rsp + 0x20], eax
movaps xmm0, xmmword [rbp - 0x40]
movups xmmword [rbx + 0x10], xmm1
movaps xmm1, xmmword [rbp - 0x30]
movups xmmword [rbx + 0x20], xmm0
movaps xmm0, xmmword [rbp - 0x20]
movups xmmword [rbx + 0x30], xmm1
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm1
call fcn.1800336e0
mov r15, qword [rsp + 0x78]
inc edi
inc r14
add rbx, 0x60
cmp edi, esi
jl 0x180034f50
mov r14d, dword [rsp + 0x48]
mov r12, qword [rbp - 0x70]
mov r13, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x68]
mov ecx, edi
and ecx, 1
mov edx, r14d
mov rcx, qword [rsp + rcx*8 + 0x58]
call fcn.1800488c0
mov ebx, eax
cmp eax, 0xffffffff
jne 0x180035133
test esi, esi
je 0x180035133
mov rax, qword [rbp - 0x68]
lea rbx, [r15 + 2]
sar esi, 1
jmp 0x180034f10
cmp ebx, dword [rsp + 0x4c]
jae 0x1800351d9
mov rcx, qword [rsp + 0x40]
mov edx, edi
and edx, 1
mov r8, r12
mov rdx, qword [rsp + rdx*8 + 0x58]
call fcn.18004f4a0
mov rdi, qword [rbp - 0x80]
lea rcx, [rbp]
mov edx, 0xc
lea rax, [rdi + 0x1c0]
nop dword [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x180035170
mov eax, dword [rsp + 0x34]
mov dword [rdi + 0xb8], eax
mov dword [rdi + 0x9c], esi
mov dword [rsp + 0x4c], ebx
jmp 0x1800351dd
mov rdi, qword [rbp - 0x80]
mov ecx, dword [rsp + 0x30]
mov eax, ecx
inc ecx
mov dword [rsp + 0x30], ecx
test eax, eax
je 0x180035214
mov eax, dword [rdi + 0xbc]
test eax, eax
je 0x180035205
mov ecx, dword [rdi + 0xb0]
add eax, eax
dec ecx
and ecx, eax
jmp 0x18003520a
mov ecx, 1
mov dword [rdi + 0xbc], ecx
mov ecx, dword [rsp + 0x30]
mov edx, 1
cmp ecx, dword [rdi + 0xb4]
jl 0x180034ec0
mov rsi, qword [rsp + 0x70]
mov r15, qword [rbp - 0x78]
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x18], 3
jle 0x1800352f7
mov rcx, rax
test rsi, rsi
je 0x1800352e5
mov ebx, dword [rsp + 0x38]
mov rdx, rsi
mov r8d, ebx
call fcn.180034540
test ebx, ebx
je 0x18003526a
mov r8, r12
mov rdx, rsi
mov rcx, r15
call fcn.18004f4a0
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
cmp dword [rsp + 0x3c], 0
mov r12, qword [rsp + 0x760]
jne 0x180035289
cmp dword [rax + 0x18], 3
jle 0x180035297
mov r8d, r14d
mov rdx, rbx
mov rcx, rdi
call fcn.180047820
test rsi, rsi
je 0x1800352a4
mov rcx, rsi
call fcn.1800513b4
mov rcx, qword [rsp + 0x60]
call fcn.1800513b4
mov rcx, r13
call fcn.1800513b4
mov rcx, rbx
call fcn.1800513b4
mov r13, qword [rsp + 0x710]
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.18004d010
add rsp, 0x718
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r8d, dword [rsp + 0x38]
mov rdx, r15
call fcn.180034540
jmp 0x18003526a
mov ebx, dword [rsp + 0x38]
test ebx, ebx
je 0x18003526f
mov rbx, qword [rsp + 0x40]
mov r8, r12
mov rdx, rbx
mov rcx, r15
call fcn.18004f4a0
mov rax, qword [rsp + 0x50]
jmp 0x180035274