Function at 0x18008a35c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x258]
sub rsp, 0x330
mov rsi, rcx
lea r15, [rcx + 8]
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1800910b0
mov dil, al
mov rdx, qword [rsp + 0x48]
sub rdx, qword [r15]
mov qword [rsi + 0x28], rdx
xor ebx, ebx
lea r12d, [rbx + 3]
lea r13d, [rbx + 1]
lea r14d, [rbx + 2]
cmp al, r14b
jne 0x18008a5d8
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.1800910b0
mov dil, al
mov r8, qword [rsp + 0x48]
cmp al, 0x11
jne 0x18008a452
lea r14d, [rbx + 4]
mov dword [rsp + 0x30], r14d
or dword [rsp + 0x34], 0xffffffff
mov qword [rsp + 0x38], rbx
mov r9, qword [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.18008a080
test eax, eax
jne 0x18008a9c4
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
call qword [rax + 0x28]
test eax, eax
jne 0x18008a9c4
mov rax, qword [rsi]
mov rax, qword [rax + 0x30]
mov edx, dword [rsp + 0x34]
cmp edx, dword [rax + 0xd8]
jae 0x18008a43c
mov rax, qword [rax + 0xd0]
mov rbx, qword [rax + rdx*8]
mov eax, 2
cmp byte [rbx + 0x10], al
jne 0x18008a5e1
mov dword [rsi + 0x30], edx
jmp 0x18008a5e1
cmp byte [r8], 0x2e
jne 0x18008a607
mov rdx, qword [rsp + 0x50]
dec rdx
lea rcx, [r8 + 1]
call fcn.18008b4d0
cmp eax, r13d
jne 0x18008a4d0
mov r14d, 4
cmp dil, r14b
jne 0x18008a9c1
mov r8, qword [rsp + 0x78]
lea rax, [r8 - 1]
mov ecx, 0xfffffffe
cmp rax, rcx
ja 0x18008a9c1
lea rax, [r8 - 1]
test r8, rax
jne 0x18008a9c1
mov rcx, qword [rsi]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x40]
test eax, eax
jne 0x18008a9c4
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1800910b0
mov dil, al
jmp 0x18008a5d8
cmp eax, r14d
jb 0x18008a5fd
cmp eax, 5
ja 0x18008a5fd
mov r14d, 4
cmp dil, r14b
jne 0x18008a9c1
lea edx, [r14 + 4]
cmp eax, r14d
cmove edx, r14d
cmp eax, r12d
lea ecx, [r14 - 2]
cmove edx, ecx
cmp eax, ecx
cmove edx, r13d
mov dword [rbp + 0x260], edx
lea eax, [rdx*8]
lea ecx, [r14 + 0x3c]
sub cl, al
or r12, 0xffffffffffffffff
shr r12, cl
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
mov byte [rbp], 0x20
mov qword [rbp + 0x10], 0x207
lea rax, [rbp + 0x20]
mov qword [rbp + 0x18], rax
mov byte [rbp + 0x20], bl
cmp qword [rsp + 0x78], r12
ja 0x18008a5e8
mov r9d, edx
lea r8, [rsp + 0x78]
mov edx, r13d
lea rcx, [rbp]
call fcn.180090de0
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.1800910b0
mov dil, al
cmp al, 0x10
jne 0x18008a5a0
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.1800910b0
cmp al, r14b
mov edx, dword [rbp + 0x260]
je 0x18008a548
mov ebx, 3
jmp 0x18008a5ed
movzx eax, byte [rbp]
cmp al, 0x1f
mov r8, qword [rbp + 8]
jae 0x18008a5af
mov r8d, eax
lea rdx, [rbp + 1]
cmovae rdx, qword [rbp + 0x18]
mov rcx, qword [rsi]
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
je 0x18008a5c9
mov ebx, eax
jmp 0x18008a5ed
lea rcx, [rbp]
call fcn.180091020
mov r12d, 3
cmp dil, r13b
jne 0x18008aa73
xor eax, eax
jmp 0x18008a9c4
mov ebx, 0x32
lea rcx, [rbp]
call fcn.180091020
mov eax, ebx
jmp 0x18008a9c4
mov eax, 0xb
jmp 0x18008a9c4
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x18], rax
mov qword [rsp + 0x30], rbx
mov edi, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
mov r14, qword [rsp + 0x50]
mov r12, r14
cmp r14, 0x20
ja 0x18008aa69
mov rax, r14
mov rdx, rbx
test rax, rax
je 0x18008a667
lea rax, [rbp - 0x80]
sub r8, rax
lea rcx, [rbp - 0x80]
add rcx, rdx
mov al, byte [r8 + rcx]
sub al, 0x41
cmp al, 0x19
seta al
sub al, r13b
and al, 0x20
xor al, byte [r8 + rcx]
mov byte [rcx], al
add rdx, r13
cmp rdx, r14
jb 0x18008a642
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.18008aef8
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x18008a6f6
mov rcx, qword [rsi]
mov r8, r14
lea rdx, [rbp - 0x80]
mov cl, byte [rcx + 0x48]
call fcn.18009104c
mov dword [rsp + 0x30], eax
mov edi, dword [rsp + 0x34]
test eax, eax
jne 0x18008a6f6
mov rdx, r12
lea rcx, [rbp - 0x80]
call fcn.18008b5e8
test eax, eax
je 0x18008aa69
test eax, edi
jne 0x18008a9a1
or edi, eax
mov dword [rsp + 0x34], edi
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1800910b0
cmp al, 2
jne 0x18008aa69
mov r14, qword [rsp + 0x50]
mov r12, r14
mov rax, r14
cmp r14, 0x20
ja 0x18008aa69
mov r8, qword [rsp + 0x48]
mov edi, dword [rsp + 0x34]
jmp 0x18008a633
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1800910b0
mov rdi, qword [rsp + 0x48]
mov r12d, 2
cmp al, r12b
jne 0x18008a76c
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x20
ja 0x18008a76c
mov r8, rbx
test rdx, rdx
je 0x18008a758
lea rax, [rbp - 0x80]
mov r9, rdi
sub r9, rax
lea rcx, [rbp - 0x80]
add rcx, r8
mov al, byte [rcx + r9]
sub al, 0x41
cmp al, 0x19
seta al
sub al, r13b
and al, 0x20
xor al, byte [rcx + r9]
mov byte [rcx], al
add r8, r13
cmp r8, rdx
jb 0x18008a733
lea rcx, [rbp - 0x80]
call fcn.18008b5e8
cmp eax, 0x10
jne 0x18008a76c
or dword [rsp + 0x34], eax
jmp 0x18008a770
mov qword [rsi + 0x18], rdi
mov r14d, ebx
mov dword [rbp + 0x260], ebx
mov r13, rbx
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1800910b0
mov dil, al
cmp al, 1
ja 0x18008a79c
test r14d, r14d
je 0x18008a9e5
cmp al, 6
jne 0x18008a828
mov r12d, 3
mov r8d, r12d
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.1800910b0
sub al, 2
cmp al, 1
ja 0x18008a9c1
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1800910b0
cmp al, 7
jne 0x18008a9c1
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.18008b370
test eax, eax
je 0x18008a9af
test eax, 0xff93ffff
jne 0x18008a9af
mov ecx, dword [rsp + 0x34]
test eax, ecx
jne 0x18008a9a1
or ecx, eax
mov dword [rsp + 0x34], ecx
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1800910b0
mov dil, al
jmp 0x18008a990
cmp r14d, 6
je 0x18008aa69
mov eax, r14d
shl rax, 4
lea rdi, [rbp - 0x60]
add rdi, rax
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, rsi
call fcn.18008b84c
test eax, eax
jne 0x18008a9c4
mov al, byte [rdi]
and al, 7
cmp al, r12b
cmove r13, rdi
jmp 0x18008a965
mov r8d, r12d
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.1800910b0
sub al, 2
cmp al, 1
ja 0x18008a9c1
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1800910b0
cmp al, 7
jne 0x18008a9c1
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov eax, 2
cmp r12, rax
jne 0x18008a8e6
cmp byte [rdi], 0x6b
je 0x18008a8b9
cmp byte [rdi + 1], 0x4b
jne 0x18008a917
movzx eax, byte [rdi + 1]
sub eax, 0x30
cmp eax, 8
jae 0x18008a917
test r14d, r14d
jne 0x18008a9af
cmp dword [rsp + 0x38], ebx
jne 0x18008a9a1
mov dword [rsp + 0x38], 0x289
mov dword [rsp + 0x3c], eax
jmp 0x18008a965
cmp r12, 1
jne 0x18008a917
cmp byte [rdi], 0x7a
je 0x18008a8f7
cmp byte [rdi + 1], 0x5a
jne 0x18008a917
test r14d, r14d
jne 0x18008a9af
mov ecx, dword [rsp + 0x34]
mov eax, ecx
shr eax, 0x17
test al, 1
jne 0x18008a9a1
bts ecx, 0x17
jmp 0x18008a930
mov rdx, r12
mov rcx, rdi
call fcn.18008b370
test eax, eax
je 0x18008a936
mov ecx, dword [rsp + 0x34]
test eax, ecx
jne 0x18008a9a1
or ecx, eax
mov dword [rsp + 0x34], ecx
jmp 0x18008a965
mov rdx, r12
mov rcx, rdi
call fcn.18008b244
test eax, eax
je 0x18008a9af
test r13, r13
je 0x18008a9a8
mov ecx, dword [r13]
test ecx, 0xe00000
jne 0x18008a9a8
and ecx, 0xff1fffff
shl eax, 0x15
or ecx, eax
mov dword [r13], ecx
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1800910b0
cmp al, 6
mov dil, al
mov r12d, 3
je 0x18008a868
inc r14d
mov dword [rbp + 0x260], r14d
cmp dil, 0x10
jne 0x18008a9b6
mov r12d, 2
jmp 0x18008a77c
mov eax, 0x37
jmp 0x18008a9c4
mov eax, 0x29
jmp 0x18008a9c4
mov eax, 0x36
jmp 0x18008a9c4
mov r13d, 1
cmp dil, r13b
jbe 0x18008a9eb
mov eax, r12d
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r13d, 1
lea r9, [rbp + 0x260]
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.18008aa88
test eax, eax
jne 0x18008a9c4
mov r14d, dword [rbp + 0x260]
mov rcx, qword [rsi]
mov dword [rsp + 0x20], ebx
mov r9d, r14d
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x30]
mov cl, byte [rcx + 0x48]
call fcn.18009105c
test eax, eax
jne 0x18008a9c4
mov rcx, qword [rsi]
mov eax, dword [rsp + 0x34]
mov dword [rcx + 0x54], eax
mov rdx, qword [rsi]
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x38]
mov dword [rdx + 0x58], eax
mov dword [rdx + 0x5c], ecx
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov r9d, r14d
lea r8, [rbp - 0x60]
mov edx, dword [rsp + 0x30]
call qword [rax + 0x38]
test eax, eax
je 0x18008a5d2
jmp 0x18008a9c4
mov eax, 0x1a
jmp 0x18008a9c4
test dil, dil
jne 0x18008a9c1
mov byte [rsi + 0x34], r13b
jmp 0x18008a5e1