Function at 0x1400a19a4
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 - 0xa4a8]
mov eax, 0xa580
call fcn.140117f40
sub rsp, rax
mov rax, qword [0x140181c48]
xor rax, rsp
mov qword [rbp + 0xa470], rax
mov rsi, rcx
lea rdx, [rsp + 0x40]
call fcn.1400a1918
cmp eax, 3
jne 0x1400a1f72
mov rdx, qword [rsi + 0x1c00]
lea rcx, [rbp]
call fcn.140067aac
nop
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rbp]
mov rcx, rsi
call fcn.14009eb78
test al, al
je 0x1400a1f63
mov ecx, 0x68
call fcn.140018c14
lea rdx, [0x14014fff8]
mov rcx, rsi
call fcn.14006fcb4
mov r15d, 1
test rax, rax
je 0x1400a1ecf
cmp byte [rsi + 0x71f8], 0
jne 0x1400a1ecf
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.140098b10
nop
mov r8, qword [rsi + 0x5b20]
mov rdx, qword [rsi + 0x5b18]
lea rcx, [rbp - 0x40]
call fcn.140098e34
lea r8d, [r15 + 7]
lea rdx, [rbp + 0x8260]
lea rcx, [rbp - 0x40]
call fcn.140098c3c
lea rcx, [rbp - 0x40]
call fcn.140098bc4
mov r13d, eax
lea rcx, [rbp - 0x40]
call fcn.140098c0c
mov r14, rax
mov qword [rsp + 0x50], rax
mov dil, r15b
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400a1abd
call fcn.140123a48
mov ecx, 0x6a
call fcn.140018c14
mov rbx, qword [rsi + 0x71d0]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x58], rbx
xor edx, edx
mov r12d, edx
neg dil
sbb ecx, ecx
and ecx, 0x1c
add ecx, 0x1a
cmp byte [rsi + 0x71ec], dl
je 0x1400a1afc
mov eax, ecx
neg eax
and eax, 0xf
add ecx, 8
add ecx, eax
mov eax, ecx
mov rdi, rbx
add rax, rbx
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], rdx
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x48], rdx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r13d
mov r9, rax
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.14009fde0
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov edx, r13d
shl edx, 9
lea rcx, [rbp - 0x80]
call fcn.1400081d0
nop
mov r8, qword [rbp - 0x78]
xor edx, edx
mov rcx, qword [rbp - 0x80]
call fcn.14011ac30
mov rax, qword [rsi]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x1400a07c7.0]
mov ecx, 0x69
call fcn.140018c14
xor edx, edx
movabs r8, 0x7fffffff7fffffff
mov rcx, rsi
call fcn.1400a2690
and dword [rsp + 0x48], 0
test rbx, rbx
jle 0x1400a1c9e
mov r14, qword [rsp + 0x58]
call fcn.1400ab4fc
mov rdx, r14
sub rdx, rbx
mov r8, r14
mov rcx, rsi
call fcn.1400a2690
mov edi, dword [rsp + 0x48]
cmp rdi, qword [rbp - 0x38]
jae 0x1400a1c2c
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x28]
call qword [case.0x1400a07c7.0]
mov rcx, qword [rbp - 0x40]
cmp rax, qword [rcx + rdi*8]
jl 0x1400a1c2c
mov rax, qword [rsi]
mov rcx, qword [rbp - 0x60]
movsxd rdx, dword [rcx + rdi*4]
mov r8d, r15d
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x1400a07c7.0]
mov rcx, qword [rbp - 0x60]
movsxd rax, dword [rcx + rdi*4]
sub rbx, rax
mov qword [rsp + 0x70], rbx
add dword [rsp + 0x48], r15d
mov byte [rsp + 0x20], r15b
lea r9, [rsp + 0x70]
mov r8d, 0x200
lea rdx, [rbp + 0x8270]
mov rcx, rsi
call fcn.1400a0748
mov eax, r12d
shl eax, 9
mov rcx, qword [rbp - 0x80]
add rcx, rax
xor edx, edx
lea r8, [rbp + 0x8270]
sub r8, rcx
mov al, byte [r8 + rcx]
xor byte [rcx], al
add edx, r15d
add rcx, r15
cmp edx, 0x200
jb 0x1400a1c64
lea eax, [r12 + 1]
cmp eax, r13d
sbb r12d, r12d
and r12d, eax
mov rbx, qword [rsp + 0x70]
test rbx, rbx
jg 0x1400a1bc2
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov eax, reloc.SHELL32.dll_SHRestricted
mov r8d, eax
mov edx, eax
mov rcx, rsi
call fcn.1400a2690
mov rax, qword [rsi]
mov rcx, qword [rsp + 0x78]
lea rdx, [rcx + r14*2]
xor r8d, r8d
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x1400a07c7.0]
xor ebx, ebx
test r13d, r13d
je 0x1400a1d26
mov rdi, qword [rbp - 0x80]
mov r14d, 0x200
mov rax, qword [rsi]
mov r8, r14
lea rdx, [rbp + 0x8270]
mov rcx, rsi
mov rax, qword [rax + 0x18]
call qword [case.0x1400a07c7.0]
mov ecx, ebx
shl ecx, 9
add rcx, rdi
lea rdx, [rbp + 0x8270]
sub rdx, rcx
mov r8, r14
mov al, byte [rdx + rcx]
xor byte [rcx], al
add rcx, r15
sub r8, r15
jne 0x1400a1d0c
add ebx, r15d
cmp ebx, r13d
jb 0x1400a1cdd
mov rdi, qword [rsp + 0x58]
mov rax, qword [rsi]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x1400a07c7.0]
mov rbx, rdi
mov qword [rsp + 0x70], rbx
xor r12d, r12d
and dword [rsp + 0x48], r12d
or r14d, 0xffffffff
mov dword [rsp + 0x4c], r14d
and dword [rsp + 0x50], r12d
lea rdx, [rbp + 0x3a]
lea ecx, [r12 + 0x67]
call fcn.140018d18
xor edx, edx
movabs r8, 0x7fffffff7fffffff
mov rcx, rsi
call fcn.1400a2690
and dword [rsp + 0x68], r12d
test rdi, rdi
jle 0x1400a2528
call fcn.1400ab4fc
mov rdx, rdi
sub rdx, rbx
mov r8, rdi
mov rcx, rsi
call fcn.1400a2690
mov edi, dword [rsp + 0x68]
cmp rdi, qword [rbp - 0x38]
jae 0x1400a1df3
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x28]
call qword [case.0x1400a07c7.0]
mov rcx, qword [rbp - 0x40]
cmp rax, qword [rcx + rdi*8]
jl 0x1400a1df3
mov rax, qword [rsi]
mov rcx, qword [rbp - 0x60]
movsxd rdx, dword [rcx + rdi*4]
mov r8d, r15d
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x1400a07c7.0]
mov rcx, qword [rbp - 0x60]
movsxd rax, dword [rcx + rdi*4]
sub rbx, rax
mov qword [rsp + 0x70], rbx
add dword [rsp + 0x68], r15d
mov byte [rsp + 0x20], r15b
lea r9, [rsp + 0x70]
mov ebx, 0x200
mov r8d, ebx
lea rdx, [rbp + 0x8270]
mov rcx, rsi
call fcn.1400a0748
mov eax, eax
mov qword [rbp + 0x8260], rax
mov r8d, eax
lea rdx, [rbp + 0x8270]
lea rcx, [rbp]
call fcn.140083354
mov r8d, ebx
lea rdx, [rbp + 0x8270]
or ecx, 0xffffffff
call fcn.14007855c
movzx edi, ax
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x28]
call qword [case.0x1400a07c7.0]
mov rbx, rax
mov rcx, qword [rsi]
mov rax, qword [rcx + 0x20]
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, rsi
call qword [case.0x1400a07c7.0]
mov rcx, rsi
call fcn.140082a54
movzx eax, al
mov dword [rsp + 0x44], eax
mov rcx, rsi
call fcn.140082a54
movzx eax, al
shl eax, 8
add dword [rsp + 0x44], eax
add qword [rsp + 0x78], 2
mov rax, qword [rsi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x1400a07c7.0]
cmp dword [rsp + 0x44], edi
jne 0x1400a2274
mov r9b, r15b
lea r8, [rsp + 0x4c]
mov edx, r12d
mov ecx, r14d
call fcn.1400a25e8
jmp 0x1400a24fc
mov rax, qword [rsi]
xor r8d, r8d
mov rdx, qword [rsi + 0x71f0]
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x1400a07c7.0]
mov edx, 0x78
mov rcx, rsi
call fcn.14006fb74
test rax, rax
je 0x1400a1f20
cmp byte [rsi + 0x71f8], 0
jne 0x1400a1f20
movzx r13d, word [rsi + 0x6e46]
mov r14d, dword [rsi + 0x6e48]
mov qword [rsp + 0x50], r14
xor dil, dil
jmp 0x1400a1abd
cmp byte [rsp + 0x40], 0
je 0x1400a1fa2
cmp byte [rsi + 0x71ec], 0
je 0x1400a1fa2
lea rax, [rsi + 0x3a]
mov qword [rsp + 0x60], rax
mov ecx, 0x6b
call fcn.140018c14
lea rdx, [rsp + 0x60]
mov ecx, 0x41
call fcn.140061e60
mov edx, 0xa
lea rcx, [0x1401c97d8]
call fcn.14007cb48
xor r15d, r15d
lea rcx, [rbp]
call fcn.140067d0c
mov eax, r15d
mov rcx, qword [rbp + 0xa470]
xor rcx, rsp
call fcn.140117fa0
lea r11, [rsp + 0xa580]
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
and qword [rsp + 0x58], 0
and qword [rsi + 0x71d0], 0
mov rax, qword [rsi]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x1400a07c7.0]
mov rax, qword [rsi]
mov r8d, 0x2000
lea rdx, [rbp + 0x8470]
mov rcx, rsi
mov rax, qword [rax + 0x18]
call qword [case.0x1400a07c7.0]
mov r13d, dword [rsp + 0x50]
mov r14, qword [rsp + 0x60]
mov dil, byte [rsp + 0x40]
test eax, eax
je 0x1400a2135
mov byte [rsp + 0x40], dil
xor ecx, ecx
mov dword [rsp + 0x44], ecx
xor r12d, r12d
mov qword [rsp + 0x78], r12
add eax, 0xffffffce
cdqe
mov qword [rsp + 0x60], rax
test rax, rax
jle 0x1400a20ef
mov edi, ecx
lea r12, [rbp + r12 + 0x8472]
cmp byte [r12], 0x7a
jne 0x1400a207e
movabs rcx, 0x2b746365746f7250
cmp qword [r12 + 0x20], rcx
jne 0x1400a20cd
movzx ebx, byte [r12 - 1]
movzx edi, byte [r12 - 2]
mov r8d, 0x34
mov rdx, r12
or ecx, 0xffffffff
call fcn.14007855c
mov edx, ebx
shl edx, 8
add edx, edi
not edx
xor eax, edx
movzx eax, ax
test eax, eax
je 0x1400a216c
mov edi, dword [rsp + 0x44]
jmp 0x1400a20c8
cmp byte [r12], 0x78
jne 0x1400a20cd
movabs rcx, 0x21746365746f7250
cmp qword [r12 + 0x10], rcx
jne 0x1400a20cd
movzx ecx, byte [r12 - 1]
shl ecx, 8
movzx eax, byte [r12 - 2]
add ecx, eax
not ecx
movzx ebx, cx
mov r8d, 0x18
mov rdx, r12
or ecx, 0xffffffff
call fcn.14007855c
movzx ecx, ax
cmp ebx, ecx
je 0x1400a2218
mov rax, qword [rsp + 0x60]
add edi, r15d
mov dword [rsp + 0x44], edi
mov r12, qword [rsp + 0x78]
add r12, r15
mov qword [rsp + 0x78], r12
cmp r12, rax
jl 0x1400a2021
mov dil, byte [rsp + 0x40]
add qword [rsp + 0x58], 0x1fce
mov rax, qword [rsi]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x1400a07c7.0]
mov rax, qword [rsi]
mov r8d, 0x2000
lea rdx, [rbp + 0x8470]
mov rcx, rsi
mov rax, qword [rax + 0x18]
call qword [case.0x1400a07c7.0]
test eax, eax
jne 0x1400a1ffe
mov qword [rsp + 0x50], r14
cmp qword [rsi + 0x71d0], 0
jne 0x1400a1abd
mov rax, qword [rsi]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x1400a07c7.0]
mov ecx, 0x6b
call fcn.140018c14
jmp 0x1400a1f66
movzx r13d, byte [r12 + 0x2b]
shl r13d, 8
movzx eax, byte [r12 + 0x2a]
add r13d, eax
shl r13d, 8
movzx eax, byte [r12 + 0x29]
add r13d, eax
shl r13d, 8
movzx eax, byte [r12 + 0x28]
add r13d, eax
movzx ecx, byte [r12 + 0x33]
shl rcx, 8
movzx eax, byte [r12 + 0x32]
add rcx, rax
shl rcx, 8
movzx eax, byte [r12 + 0x31]
add rcx, rax
shl rcx, 8
movzx eax, byte [r12 + 0x30]
add rcx, rax
movzx r14d, byte [r12 + 0x2f]
shl r14, 8
movzx eax, byte [r12 + 0x2e]
add r14, rax
shl r14, 8
movzx eax, byte [r12 + 0x2d]
add r14, rax
shl r14, 8
movzx eax, byte [r12 + 0x2c]
add r14, rax
shl rcx, 0x20
add r14, rcx
movsxd rax, dword [rsp + 0x44]
add rax, qword [rsp + 0x58]
mov qword [rsi + 0x71d0], rax
mov dil, r15b
mov byte [rsp + 0x40], r15b
jmp 0x1400a20ef
movzx r13d, byte [r12 + 0xb]
shl r13d, 8
movzx eax, byte [r12 + 0xa]
add r13d, eax
movzx r14d, byte [r12 + 0xf]
shl r14, 8
movzx eax, byte [r12 + 0xe]
add r14, rax
shl r14, 8
movzx eax, byte [r12 + 0xd]
add r14, rax
shl r14, 8
movzx eax, byte [r12 + 0xc]
add r14, rax
movsxd rax, edi
add rax, qword [rsp + 0x58]
mov qword [rsi + 0x71d0], rax
xor dil, dil
mov byte [rsp + 0x40], dil
jmp 0x1400a20ef
lea rax, [rbp + 0x8470]
lea rcx, [rbp + 0x8270]
mov edx, 4
lea r8d, [rdx + 0x7c]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
add rax, r8
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
add rcx, r8
sub rdx, 1
jne 0x1400a228b
mov ebx, dword [rsp + 0x50]
shl ebx, 9
add rbx, qword [rbp - 0x80]
lea rcx, [rbp + 0x8270]
lea rax, [rbp + 0x8270]
sub rbx, rax
mov al, byte [rbx + rcx]
xor byte [rcx], al
add edx, r15d
add rcx, r15
mov eax, 0x200
cmp edx, eax
jb 0x1400a22f1
mov r8d, eax
lea rdx, [rbp + 0x8270]
or ecx, 0xffffffff
call fcn.14007855c
movzx ecx, ax
cmp dword [rsp + 0x44], ecx
je 0x1400a249e
mov edi, 0x40
lea rax, [rbp + 0x82b0]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x8270]
lea rcx, [rbp + 0x8470]
mov edx, 4
lea r8d, [rdx + 0x7c]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
add rax, r8
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
add rcx, r8
sub rdx, 1
jne 0x1400a234c
movsxd r8, edi
test edi, edi
jle 0x1400a23b4
lea rcx, [rbp + 0x8270]
add rcx, rdx
mov al, byte [rcx + rbx]
xor byte [rcx], al
add rdx, r15
cmp rdx, r8
jl 0x1400a239d
mov r8d, 0x200
lea rdx, [rbp + 0x8270]
or ecx, 0xffffffff
call fcn.14007855c
movzx ecx, ax
cmp dword [rsp + 0x44], ecx
je 0x1400a249e
lea rax, [rbp + 0x8270]
lea rcx, [rbp + 0x8470]
mov edx, 4
lea r8d, [rdx + 0x7c]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
add rax, r8
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
add rcx, r8
sub rdx, 1
jne 0x1400a23ed
mov edx, edi
movsxd rax, edi
mov r8d, 0x200
cmp rax, r8
jae 0x1400a245c
mov rcx, qword [rsp + 0x60]
mov al, byte [rcx + rbx]
xor byte [rcx], al
add edx, r15d
add rcx, r15
cmp edx, r8d
jb 0x1400a244c
lea rdx, [rbp + 0x8270]
or ecx, 0xffffffff
call fcn.14007855c
movzx ecx, ax
cmp dword [rsp + 0x44], ecx
je 0x1400a249e
add edi, 0x40
add qword [rsp + 0x60], 0x40
cmp edi, 0x100
jl 0x1400a2335
add dword [rsp + 0x48], r15d
cmp r14d, 0xffffffff
jne 0x1400a2501
mov r14d, r12d
mov dword [rsp + 0x4c], r12d
jmp 0x1400a2501
mov r9b, r15b
lea r8, [rsp + 0x4c]
mov edx, r12d
mov ecx, r14d
call fcn.1400a25e8
lea edx, [r12 + 1]
xor r9d, r9d
lea r8, [rsp + 0x4c]
mov ecx, r12d
call fcn.1400a25e8
lea rcx, [rbp]
call fcn.14006af30
sub rax, qword [rbp + 0x8260]
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp]
call fcn.14006aea0
mov r8, qword [rbp + 0x8260]
lea rdx, [rbp + 0x8270]
lea rcx, [rbp]
call fcn.140083354
mov r14d, dword [rsp + 0x4c]
add r12d, r15d
mov eax, dword [rsp + 0x50]
inc eax
cmp eax, r13d
sbb ecx, ecx
and ecx, eax
mov dword [rsp + 0x50], ecx
mov rbx, qword [rsp + 0x70]
test rbx, rbx
mov rdi, qword [rsp + 0x58]
jg 0x1400a1d89
mov r9b, r15b
lea r8, [rsp + 0x4c]
mov edx, r12d
mov ecx, r14d
call fcn.1400a25e8
mov edx, reloc.SHELL32.dll_SHRestricted
mov r8d, edx
mov rcx, rsi
call fcn.1400a2690
mov rax, qword [rsi]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x1400a07c7.0]
movabs r8, 0x7fffffff7fffffff
lea rdx, [rbp]
mov rcx, rsi
call fcn.140082658
lea rcx, [rbp]
call fcn.1400829d4
test rax, rax
jle 0x1400a259c
lea rdx, [rbp + 0x3a]
mov ecx, 0x97
call fcn.140018d18
lea rcx, [rbp]
call fcn.1400825f0
neg dword [rsp + 0x48]
sbb r15d, r15d
and r15d, 2
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x1400a25b9
mov rcx, rax
call fcn.140123a48
nop
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x1400a25cb
mov rcx, rax
call fcn.140123a48
nop
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x1400a1f66
mov rcx, rax
call fcn.140123a48
jmp 0x1400a1f66