Function at 0x1801366a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x118
mov ebp, dword [rsp + 0x180]
mov rdi, qword [r9]
xor r14d, r14d
mov rax, qword [rdi + 0xa8]
mov r11, rdx
mov r10, rcx
mov rdx, qword [rax + 0x10]
mov rcx, qword [rcx + 0x10]
movabs rax, 0x200000800000
mov r8, r14
xor r13b, r13b
xor r15b, r15b
test rax, rdx
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x68], rcx
mov rax, rdx
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x54], r14d
mov byte [rsp + 0x180], r8b
je 0x180136872
shr rax, 0x30
test al, 1
je 0x180136741
mov ebx, ebp
mov r13b, 1
and ebx, 0xfffff
or ebx, 0x51800000
jmp 0x1801368a7
mov rax, rdx
shr rax, 0x2f
test al, 1
je 0x180136762
mov ebx, ebp
mov r13b, 1
and ebx, 0xfffff
or ebx, 0x51900000
jmp 0x1801368a7
shr rdx, 0x17
mov ebp, 4
test dl, 1
je 0x180136785
mov byte [rsp + 0x180], 1
mov ebx, 0x67a00004
mov r13b, 1
jmp 0x1801368a7
mov rcx, qword [rdi + 0x108]
test rcx, rcx
je 0x1801367ce
cmp dword [rcx + 8], 2
je 0x1801367a2
test rcx, rcx
je 0x1801367ce
cmp dword [rcx + 8], 3
jne 0x1801367ce
mov rcx, qword [rcx + 0x60]
mov edx, dword [rdi + 0x110]
lea r8, [rsp + 0xf0]
mov rax, qword [rcx]
call qword [rax + 0x10]
test eax, eax
je 0x180136833
mov r10, qword [rsp + 0x160]
mov r11, qword [rsp + 0x168]
mov edi, 0x80004005
test edi, edi
js 0x180136e4e
movsxd rax, dword [rsp + 0x84]
lea rcx, [0x180026720]
mov ecx, dword [rcx + rax*4]
and cl, 0xf
cmp cl, bpl
je 0x180136809
mov eax, dword [rsp + 0xbc]
imul eax, dword [rsp + 0xb8]
cmp eax, 1
jbe 0x180136821
lea r9, [0x180044ef0]
mov r8d, 0xe5c
mov rdx, r11
mov rcx, r10
call fcn.180109730
mov rcx, qword [rsp + 0x68]
mov ebx, 0x51700004
mov r8, r14
mov r13b, 1
jmp 0x1801368a7
mov rcx, qword [rsp + 0xf0]
lea r8, [rsp + 0x80]
mov edx, 3
mov rax, qword [rcx]
call qword [rax + 0x60]
mov r10, qword [rsp + 0x160]
mov r11, qword [rsp + 0x168]
mov edi, 0x80004005
test al, al
mov ecx, r14d
cmove ecx, edi
mov edi, ecx
jmp 0x1801367d3
mov ebx, ebp
shr rax, 0x2e
and ebx, 0xfffff
test al, 1
je 0x1801368a1
shr rdx, 0x2f
test dl, 1
je 0x180136896
or ebx, 0x51e00000
mov r15b, 1
jmp 0x1801368a7
or ebx, 0x51d00000
mov r15b, 1
jmp 0x1801368a7
or ebx, 0x80100000
lea r12d, [rbp*8]
mov esi, 8
cmp r12d, 0x1ffffffe
jbe 0x1801368c4
mov edi, 0x80070216
jmp 0x180136901
lea r14d, [r12*8]
test r14d, r14d
cmove r14d, esi
add rcx, 0xd280
mov edx, r14d
mov dword [rsp + 0x54], r14d
call fcn.1800c58b0
mov edi, 0x8007000e
mov r14d, 0
test rax, rax
mov r8, rax
mov qword [rsp + 0x58], rax
cmovne edi, r14d
test edi, edi
js 0x180136e4e
test r12d, r12d
je 0x18013691b
mov ecx, r12d
mov rdi, r8
or rax, 0xffffffffffffffff
rep stosq qword [rdi], rax
mov edx, r14d
lea rdi, [rsp + 0x80]
nop word [rax + rax]
mov eax, edx
add rdi, 8
add edx, ebp
sub rsi, 1
lea rcx, [r8 + rax*8]
mov qword [rdi - 8], rcx
jne 0x180136930
mov rcx, qword [rsp + 0x178]
mov rax, qword [rcx]
mov r14, qword [rax + 0xa8]
cmp byte [rsp + 0x180], sil
je 0x180136a3e
mov rsi, qword [rsp + 0x80]
mov r15, qword [rsp + 0x160]
mov r12d, dword [rsp + 0x50]
mov r9, rcx
mov rdx, rsi
mov r8d, ebp
mov rcx, r15
mov dword [rsp + 0x20], r12d
call fcn.180136580
mov edi, eax
test eax, eax
js 0x180136e4e
mov rdx, qword [rsp + 0x168]
xor eax, eax
mov dword [rsp + 0x40], 0x11
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov rsi, qword [rsp + 0x90]
mov r8d, ebx
mov rcx, r15
mov r9, rsi
call fcn.18012ed20
mov edi, eax
test eax, eax
js 0x180136e4e
mov rcx, qword [rsp + 0x170]
mov r8, r12
mov rdx, rsi
shl r8, 3
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0x68]
mov r11d, dword [rsp + 0x54]
add rcx, 0xd280
cmp qword [rsp + 0x58], 0
je 0x180136e8c
mov edx, 1
test r11, r11
cmove r11, rdx
mov rdx, qword [rcx]
cmp r11, qword [rdx + 8]
jae 0x180136e81
sub qword [rdx + 8], r11
jmp 0x180136e8c
test r13b, r13b
jne 0x180136ac2
test r15b, r15b
jne 0x180136ac2
mov rdx, rcx
mov rcx, qword [rsp + 0x80]
mov r8d, ebp
shl r8, 3
call sub.msvcrt.dll_memcpy
mov r12d, dword [rsp + 0x50]
mov rsi, qword [rsp + 0x160]
mov eax, dword [r14 + 0xb8]
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x70], rdi
cmp eax, 0xffffffff
jne 0x180136bbd
mov eax, dword [r14 + 0x10]
shr rax, 0x1b
test al, 1
je 0x180136b84
mov r9, qword [rsp + 0x178]
mov rax, qword [r9]
test rax, rax
je 0x180136b6b
mov rcx, qword [rax + 0x108]
test rcx, rcx
je 0x180136b6b
lea rdx, [rcx + 0x20]
jmp 0x180136b6d
mov r12, qword [rsp + 0x80]
mov rsi, qword [rsp + 0xb8]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x168]
mov r9, rcx
mov rcx, qword [rsp + 0x160]
mov byte [rsp + 0x30], 0
mov rax, r12
test r13b, r13b
cmovne rax, rsi
mov byte [rsp + 0x28], r13b
mov qword [rsp + 0x20], rax
call fcn.180135f30
mov edi, eax
test eax, eax
js 0x180136e4e
test r13b, r13b
je 0x180136a5f
mov eax, ebp
mov rdx, rsi
mov rsi, qword [rsp + 0x160]
and eax, 0xfffff
mov r8d, ebp
mov rcx, rsi
or eax, 0x51700000
cmp ebx, eax
sete al
mov byte [rsp + 0x30], al
mov qword [rsp + 0x28], r12
mov r12d, dword [rsp + 0x50]
mov r9d, r12d
mov qword [rsp + 0x20], 0
call fcn.180136210
mov edi, eax
test eax, eax
js 0x180136e4e
jmp 0x180136a6c
xor edx, edx
lea r9, [0x180044f40]
mov r8d, 0xe5e
mov rcx, rsi
call fcn.180109730
jmp 0x180136bc8
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0x70]
xor r9d, r9d
mov r8, qword [rcx + 0xd120]
mov dword [rsp + 0x28], 0x11
mov dword [rsp + 0x20], 0
call fcn.18019f030
mov edi, eax
test eax, eax
js 0x180136e4e
mov rdi, qword [rsp + 0x70]
jmp 0x180136bc8
mov rcx, rax
mov rax, qword [rsi + 0x30]
mov rdi, qword [rax + rcx*8]
mov r15, qword [rsp + 0xb0]
test ebp, ebp
je 0x180136c1d
mov r9, qword [rsp + 0x88]
mov rdx, r15
mov r8d, ebp
sub r9, r15
nop word [rax + rax]
mov qword [r9 + rdx], rdi
mov eax, dword [r14 + 0xa8]
cmp eax, 0xffffffff
je 0x180136c10
mov rcx, rax
mov rax, qword [rsi + 0x30]
mov rcx, qword [rax + rcx*8]
mov qword [rdx], rcx
jmp 0x180136c13
mov qword [rdx], rdi
add rdx, 8
sub r8, 1
jne 0x180136bf0
mov rsi, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0x170]
lea r13, [r12*8]
mov rcx, rsi
mov r8, r13
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsp + 0x168]
xor eax, eax
mov dword [rsp + 0x40], 0x11
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x88]
mov r8d, ebx
mov rbx, qword [rsp + 0x160]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov r9, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.18012ed20
mov edi, eax
test eax, eax
js 0x180136e4e
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x168]
mov dword [rsp + 0x40], 0x11
xor eax, eax
and r8d, 0xfffff
lea r9, [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov rcx, rbx
or r8d, 0x80200000
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x60], 0xffffffffffffffff
mov qword [rsp + 0x20], r15
call fcn.18012ed20
mov edi, eax
test eax, eax
js 0x180136e4e
mov r8, qword [rsp + 0x178]
mov rax, qword [r8]
mov rcx, qword [rax + 0xa8]
mov rax, qword [rcx + 0x10]
shr rax, 0x2d
test al, 1
je 0x180136d3c
test ebp, ebp
je 0x180136d3c
mov rcx, rsi
mov edx, ebp
mov rax, qword [rcx]
add rcx, 8
or qword [rax + 0x98], 0x10000
mov rax, qword [rsp + 0x60]
or qword [rax + 0x98], 0x10000
sub rdx, 1
jne 0x180136d14
mov eax, dword [r14 + 0x10]
shr rax, 0x1b
test al, 1
je 0x180136d6d
mov r8, qword [rsp + 0x60]
mov r9b, 1
mov rdx, r14
mov rcx, rbx
call fcn.180135d80
mov edi, eax
test eax, eax
js 0x180136e4e
mov r8, qword [rsp + 0x178]
cmp dword [rsp + 0x50], 0
jbe 0x180136e37
mov rdi, rsi
sub r8, rsi
nop
mov rcx, qword [r8 + rdi]
mov rdx, qword [rdi]
add rdi, 8
mov eax, dword [rcx + 0xa4]
mov dword [rdx + 0xa4], eax
mov rax, qword [rcx + 0x140]
mov qword [rdx + 0x140], rax
mov rax, qword [rcx + 0x148]
mov qword [rdx + 0x148], rax
mov rax, qword [rcx + 0x150]
mov qword [rdx + 0x150], rax
mov rax, qword [rcx + 0x158]
mov qword [rdx + 0x158], rax
mov rax, qword [rcx + 0x160]
mov qword [rdx + 0x160], rax
mov rax, qword [rcx + 0x168]
mov qword [rdx + 0x168], rax
mov rax, qword [rcx + 0x170]
mov qword [rdx + 0x170], rax
mov rax, qword [rcx + 0x178]
mov qword [rdx + 0x178], rax
mov rax, qword [rcx + 0x180]
mov qword [rdx + 0x180], rax
mov eax, dword [rcx + 0x98]
xor eax, dword [rdx + 0x98]
and eax, 0x1f00000
xor qword [rdx + 0x98], rax
sub r12, 1
jne 0x180136d80
mov rcx, qword [rsp + 0x170]
mov r8, r13
mov rdx, rsi
call sub.msvcrt.dll_memcpy
xor eax, eax
mov edi, eax
mov rcx, qword [rsp + 0x68]
mov eax, dword [rsp + 0x54]
add rcx, 0xd280
cmp qword [rsp + 0x58], 0
je 0x180136e8c
mov edx, 1
test rax, rax
cmove rax, rdx
mov rdx, qword [rcx]
cmp rax, qword [rdx + 8]
jae 0x180136e81
sub qword [rdx + 8], rax
jmp 0x180136e8c
mov rax, qword [rdx]
mov qword [rcx], rax
call fcn.1800c56f0
mov eax, edi
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret