Function at 0x180034470
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x718
mov r13, rcx
movsxd rcx, dword [rcx + 0x1b0]
xor esi, esi
mov rax, qword [r13 + 0x1c0]
mov r12, rdx
mov qword [rsp + 0x60], rsi
mov rbx, qword [rax + rcx*8]
or eax, 0xffffffff
xor ecx, ecx
movsxd r15, dword [rbx + 0x14]
mov dword [rsp + 0x44], eax
xor eax, eax
lea edi, [r15*4]
mov qword [rsp + 0xd8], rbx
test r15d, r15d
jle 0x1800344e6
cmp dword [rdx + rax*4], esi
jne 0x1800344e6
inc rax
inc ecx
cmp rax, r15
jl 0x1800344d7
cmp ecx, r15d
jne 0x180034536
lea rcx, [rbx + 0x1c0]
xor edx, edx
mov r8d, 0x600
call fcn.18005ce60
xor edx, edx
lea rcx, [rbx + 0x20]
lea r8d, [rdx + 0x4c]
mov dword [rbx + 0x9c], esi
call fcn.18005ce60
test byte [rbx + 0x18], 8
je 0x180034ba2
mov rcx, rbx
add rsp, 0x718
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
jmp fcn.180046c50
mov eax, dword [rbx + 0x18]
mov ecx, 0x1b00
mov r8d, 0x600
shr eax, 0x12
mov qword [rsp + 0x710], rbp
mov qword [rsp + 0x708], r14
and eax, 0x1f
add eax, 4
shl eax, 8
cmp eax, ecx
cmovg eax, ecx
lea rcx, [rsp + 0x100]
xor edx, edx
mov dword [rsp + 0x58], eax
call fcn.18005ce60
movsxd rbp, edi
mov rcx, rbp
mov qword [rsp + 0xe0], rbp
call fcn.180059818
mov rcx, rbp
mov r14, rax
mov qword [rsp + 0x48], rax
call fcn.180059818
mov rcx, rbp
mov qword [rsp + 0x50], rax
call fcn.180059818
mov edx, 1
mov qword [rsp + 0x38], rax
mov eax, dword [rbx + 0xb4]
cmp eax, edx
jle 0x1800346ca
test byte [rbx + 0x18], 8
je 0x1800346ca
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x60]
call fcn.18005ce60
mov eax, 0x800
mov edi, r15d
cmp r15d, eax
lea r9, [rsp + 0x70]
mov rdx, r14
cmovg edi, eax
mov rcx, r12
mov dword [rsp + 0x74], 2
mov r8d, edi
mov dword [rsp + 0x70], 0x12
mov dword [rsp + 0x20], 0xffffffff
call fcn.180033070
lea rcx, [rsp + 0x70]
call fcn.180033410
lea r9, [rsp + 0x70]
mov esi, 1
mov r8d, r15d
mov rdx, r14
mov rcx, r12
mov dword [rsp + 0x20], esi
call fcn.180033070
lea r8d, [rsi + 0x5f]
lea rcx, [rsp + 0x70]
xor edx, edx
call fcn.18005ce60
mov r8d, edi
mov rdi, qword [rsp + 0x50]
lea r9, [rsp + 0x70]
mov rcx, r14
mov rdx, rdi
mov dword [rsp + 0x74], 2
mov dword [rsp + 0x70], 0x11
mov dword [rsp + 0x20], 0xffffffff
call fcn.180033070
lea r9, [rsp + 0x70]
mov r8d, r15d
mov rdx, rdi
mov rcx, r14
mov dword [rsp + 0x20], esi
call fcn.180033070
mov rcx, rbp
call fcn.180059818
mov r8, rbp
mov rdx, r12
mov rcx, rax
mov rsi, rax
mov qword [rsp + 0x60], rax
call fcn.180058a30
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.1800342f0
mov edx, 1
mov dword [rsp + 0x760], edx
jmp 0x1800346d8
cmp dword [rsp + 0x760], esi
jne 0x1800346d8
cmp eax, 7
jl 0x1800346ec
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xb8], 0
xor ecx, ecx
cmp dword [rbx + 0xb4], ecx
mov dword [rsp + 0x30], ecx
jle 0x180034ac8
nop
test ecx, ecx
jne 0x180034851
mov ecx, dword [rbx + 0xb8]
mov dword [rsp + 0x34], ecx
movsxd r13, ecx
xor eax, eax
or rcx, 0xffffffffffffffff
imul r13, r13, 0x13
add r13, qword [rbx + 0x820]
mov qword [rsp + 0xd0], r13
lea rsi, [r13 + 2]
mov rdi, rsi
mov qword [rsp + 0xe8], rsi
repne scasb al, byte [rdi]
mov rax, qword [rsp + 0x758]
not rcx
lea r12, [rcx - 1]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
cmovne rax, rcx
mov qword [rsp + 0xf0], rax
mov r8, rbp
mov rdx, rax
mov rcx, r14
call fcn.180058a30
lea rcx, [rsp + 0x100]
xor edx, edx
mov r8d, 0x600
call fcn.18005ce60
xor ebx, ebx
test r12d, r12d
jle 0x1800349da
mov eax, 0x800
mov edi, r15d
mov rbp, rsi
cmp r15d, eax
lea rsi, [rsp + 0x100]
cmovg edi, eax
mov dword [rsp + 0x40], edi
nop dword [rax]
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x60]
call fcn.18005ce60
movsx eax, byte [rbp]
movsx edx, byte [r13 + 1]
test eax, eax
mov ecx, 1
mov dword [rsp + 0x74], edx
cmovs eax, ecx
lea r9, [rsp + 0x70]
mov r8d, edi
mov dword [rsp + 0x70], eax
mov eax, ebx
mov dword [rsp + 0x20], 0xffffffff
not eax
and eax, ecx
mov r13, qword [rsp + rax*8 + 0x48]
mov eax, ebx
and eax, ecx
mov rdx, r13
mov r14, qword [rsp + rax*8 + 0x48]
mov rcx, r14
call fcn.180033070
test ebx, ebx
je 0x1800348ae
xor eax, eax
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x84], eax
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x8c], eax
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x98], eax
mov dword [rsp + 0x9c], eax
jmp 0x18003497c
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x180034863
xor ecx, ecx
mov dword [rsp + 0x34], ecx
jmp 0x180034872
lea ecx, [rax - 1]
and ecx, dword [rbx + 0xb8]
or ecx, eax
mov dword [rsp + 0x34], ecx
cmp ecx, dword [rbx + 0xb8]
jne 0x180034712
test eax, eax
je 0x18003489d
mov ecx, dword [rbx + 0xb0]
add eax, eax
dec ecx
and ecx, eax
mov dword [rbx + 0xbc], ecx
mov ecx, dword [rsp + 0x30]
jmp 0x180034aa2
mov ecx, edx
mov ecx, dword [rsp + 0x30]
mov dword [rbx + 0xbc], edx
jmp 0x180034aa2
mov ecx, dword [rsp + 0x70]
cmp ecx, 8
jle 0x18003490d
and ecx, 1
je 0x1800348cf
mov edx, dword [rsp + 0x80]
lea eax, [rdx + rdx]
sub eax, dword [rsp + 0x84]
jmp 0x1800348e2
mov edx, dword [rsp + 0x80]
lea eax, [rdx + rdx*2]
sub eax, dword [rsp + 0x84]
sar eax, 1
mov dword [rsp + 0x80], eax
test ecx, ecx
je 0x1800348fd
add eax, eax
sub eax, edx
mov dword [rsp + 0x84], eax
jmp 0x18003497c
lea eax, [rax + rax*2]
sub eax, edx
sar eax, 1
mov dword [rsp + 0x84], eax
jmp 0x18003497c
cmp ecx, 1
jle 0x18003497c
mov eax, ecx
xor edi, edi
lea r8d, [rcx - 1]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
je 0x180034978
nop word [rax + rax]
and r8d, 7
and edi, 7
movsxd rax, r8d
movsxd rdx, edi
dec r8d
mov ecx, dword [rsp + rax*4 + 0x80]
inc edi
xor dword [rsp + rdx*4 + 0x80], ecx
mov ecx, dword [rsp + rdx*4 + 0x80]
xor dword [rsp + rax*4 + 0x80], ecx
mov eax, dword [rsp + rax*4 + 0x80]
xor dword [rsp + rdx*4 + 0x80], eax
sub r9d, 1
jne 0x180034930
mov edi, dword [rsp + 0x40]
jmp 0x18003497c
mov edi, dword [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov rcx, rsi
mov r8d, 0x60
call fcn.180058a30
mov eax, 1
lea r9, [rsp + 0x70]
mov r8d, r15d
mov rdx, r13
mov rcx, r14
mov dword [rsp + 0x20], eax
call fcn.180033070
mov r13, qword [rsp + 0xd0]
inc ebx
inc rbp
add rsi, 0x60
cmp ebx, r12d
jl 0x1800347b0
mov rsi, qword [rsp + 0xe8]
mov rbp, qword [rsp + 0xe0]
mov r14, qword [rsp + 0x48]
mov r8d, dword [rsp + 0x58]
mov ecx, ebx
mov edx, r15d
and ecx, 1
mov rcx, qword [rsp + rcx*8 + 0x48]
call fcn.180049990
mov edi, eax
cmp eax, 0xffffffff
jne 0x180034a0d
test r12d, r12d
je 0x180034a0d
mov rax, qword [rsp + 0xf0]
sar r12d, 1
jmp 0x180034762
cmp eax, dword [rsp + 0x44]
jae 0x180034a63
mov rcx, qword [rsp + 0x38]
mov edx, ebx
mov r8, rbp
and edx, 1
mov rdx, qword [rsp + rdx*8 + 0x48]
call fcn.180058a30
mov rbx, qword [rsp + 0xd8]
lea rdx, [rsp + 0x100]
lea rcx, [rbx + 0x1c0]
mov r8d, 0x600
call fcn.180058a30
mov eax, dword [rsp + 0x34]
mov dword [rbx + 0x9c], r12d
mov dword [rbx + 0xb8], eax
mov dword [rsp + 0x44], edi
jmp 0x180034a6b
mov rbx, qword [rsp + 0xd8]
mov ecx, dword [rsp + 0x30]
mov eax, ecx
inc ecx
mov dword [rsp + 0x30], ecx
test eax, eax
je 0x180034aa2
mov eax, dword [rbx + 0xbc]
test eax, eax
je 0x180034a93
mov ecx, dword [rbx + 0xb0]
add eax, eax
dec ecx
and ecx, eax
jmp 0x180034a98
mov ecx, 1
mov dword [rbx + 0xbc], ecx
mov ecx, dword [rsp + 0x30]
cmp ecx, dword [rbx + 0xb4]
mov edx, 1
jl 0x180034700
mov rsi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x758]
mov r13, qword [rsp + 0x750]
cmp dword [r13 + 0x18], 3
jle 0x180034b1c
test rsi, rsi
je 0x180034b02
mov edi, dword [rsp + 0x768]
mov rdx, rsi
mov rcx, r13
mov r8d, edi
call fcn.180033e20
test edi, edi
je 0x180034b3c
mov r8, rbp
mov rdx, rsi
mov rcx, r12
call fcn.180058a30
mov rdi, qword [rsp + 0x38]
jmp 0x180034b48
mov r8d, dword [rsp + 0x768]
mov rdx, r12
mov rcx, r13
call fcn.180033e20
mov rdi, qword [rsp + 0x38]
jmp 0x180034b48
mov edi, dword [rsp + 0x768]
test edi, edi
je 0x180034b43
mov rdi, qword [rsp + 0x38]
mov r8, rbp
mov rcx, r12
mov rdx, rdi
call fcn.180058a30
jmp 0x180034b48
mov rdi, qword [rsp + 0x38]
jmp 0x180034b48
mov rdi, qword [rsp + 0x38]
cmp dword [rsp + 0x760], 0
mov rbp, qword [rsp + 0x710]
jne 0x180034b61
cmp dword [r13 + 0x18], 3
jle 0x180034b73
or r9d, 0xffffffff
mov r8d, r15d
mov rdx, rdi
mov rcx, rbx
call fcn.180048620
test rsi, rsi
je 0x180034b80
mov rcx, rsi
call fcn.1800597d8
mov rcx, qword [rsp + 0x50]
call fcn.1800597d8
mov rcx, r14
call fcn.1800597d8
mov rcx, rdi
call fcn.1800597d8
mov r14, qword [rsp + 0x708]
add rsp, 0x718
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret