Function at 0x180001f98
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x450]
sub rsp, 0x550
mov rax, qword [0x180009010]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov r14, rcx
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x80], rcx
xor r13d, r13d
lea rcx, [rbp - 0x68]
call fcn.180001a38
nop
mov rdi, qword [rbp - 0x58]
mov qword [rsp + 0x68], rdi
lea rcx, [rdi + 1]
call fcn.180002f4c
mov r12, rax
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rdx, qword [rbp - 0x68]
lea rbx, [rdi + 1]
mov r8, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call fcn.180002f4c
mov rsi, rax
mov qword [rbp - 0x70], rax
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rdx, qword [rbp - 0x68]
mov r8, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, vtable.AES.0
mov qword [rbp - 0x40], rax
mov byte [rbp - 0x38], r13b
mov qword [rbp + 0x38c], r13
mov dword [rbp + 0x394], r13d
lea rcx, [rbp - 0x40]
call fcn.1800014a4
cmp byte [rbp - 0x38], r13b
je 0x180002456
test rdi, rdi
je 0x180002456
movsxd r9, dword [rbp + 0x390]
xor edx, edx
mov rax, rdi
div r9
test rdx, rdx
jne 0x180002456
mov r15d, r13d
mov dword [rsp + 0x34], r13d
mov r14, r12
mov qword [rsp + 0x50], r12
mov rbx, rsi
mov qword [rsp + 0x70], rbx
test rax, rax
je 0x180002451
lea r8, [0x180000000]
mov r10, r14
cmp byte [rbp - 0x38], r13b
je 0x1800023d1
cmp r9d, 0x10
jne 0x1800020e6
mov r8, rbx
mov rdx, r14
lea rcx, [rbp - 0x40]
call fcn.180001088
mov r9d, dword [rbp + 0x390]
jmp 0x1800023d1
mov eax, r9d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rcx, eax
mov rax, r13
cmp ecx, 6
setne al
inc rax
cmp ecx, 4
cmove rax, r13
shl rax, 5
mov r15d, dword [rax + r8 + 0x6d0c]
mov dword [rsp + 0x40], r15d
mov esi, dword [rax + r8 + 0x6d14]
mov dword [rsp + 0x44], esi
mov edx, dword [rax + r8 + 0x6d1c]
mov dword [rsp + 0x30], edx
lea r11, [rbp + 0x418]
mov r12, r13
mov r13, rcx
test ecx, ecx
jle 0x180002192
movzx r8d, byte [r10]
movzx eax, byte [r10 + 1]
movzx ecx, byte [r10 + 2]
mov rdx, r11
shl r8d, 8
or r8d, eax
shl r8d, 8
or r8d, ecx
shl r8d, 8
movzx eax, byte [r10 + 3]
or r8d, eax
mov dword [r11], r8d
lea r10, [r10 + 4]
add r11, 4
xor r8d, dword [rbp + r12*4 + 0x1ac]
mov dword [rdx], r8d
inc r12
cmp r12, r13
jl 0x180002142
mov r9d, dword [rbp + 0x390]
mov r12d, 1
mov eax, dword [rbp + 0x394]
cmp eax, r12d
jle 0x1800022dd
mov edi, r13d
lea eax, [r13*4]
cdqe
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], 0xfffffffffffffdb4
mov r14d, dword [rsp + 0x30]
mov rbx, rax
and qword [rsp + 0x58], 0
test r13, r13
jle 0x180002299
mov r10d, esi
sub r10d, r15d
mov r11d, r14d
sub r11d, r15d
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
mov r14d, r15d
lea r15, [0x180000000]
lea eax, [r10 + r14]
cdq
idiv edi
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x418]
sar rcx, 8
movzx r8d, cl
lea eax, [r11 + r14]
cdq
idiv edi
movsxd rax, edx
movzx ecx, byte [rbp + rax*4 + 0x418]
mov r9d, dword [r15 + r8*4 + 0x53f0]
xor r9d, dword [r15 + rcx*4 + 0x64f0]
mov eax, r14d
cdq
idiv edi
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x418]
sar rcx, 0x10
movzx eax, cl
xor r9d, dword [r15 + rax*4 + 0x43f0]
movzx eax, byte [rbp + rbx*4 + 0x41b]
xor r9d, dword [r15 + rax*4 + 0x6900]
lea rax, [rsi + rbx*4]
xor r9d, dword [rbp + rax + 0x418]
mov dword [rbp + rbx*4 + 0x3f8], r9d
inc r14d
inc rbx
cmp rbx, r13
jl 0x1800021f9
mov r15d, dword [rsp + 0x40]
mov esi, dword [rsp + 0x44]
mov r14d, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x60]
mov r8, rbx
lea rdx, [rbp + 0x3f8]
lea rcx, [rbp + 0x418]
call sub.VCRUNTIME140.dll_memcpy
inc r12d
add qword [rsp + 0x48], 0x20
mov eax, dword [rbp + 0x394]
cmp r12d, eax
jl 0x1800021ca
mov r9d, dword [rbp + 0x390]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x50]
and qword [rsp + 0x58], 0
test r13, r13
jle 0x1800023c9
movsxd r11, eax
mov rdi, rbx
shl r11, 5
sub r15d, esi
mov r12d, dword [rsp + 0x30]
sub r12d, esi
mov r10d, r13d
mov r14, qword [rsp + 0x58]
lea r9, [0x180000000]
lea rax, [r11 + r14*4]
mov r8d, dword [rbp + rax + 0x1ac]
movzx ecx, byte [rbp + r14*4 + 0x41b]
mov eax, r8d
sar eax, 0x18
xor al, byte [rcx + r9 + 0x42f0]
mov byte [rdi], al
lea eax, [rsi + r15]
cdq
idiv r10d
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x418]
sar rcx, 0x10
movzx edx, cl
mov eax, r8d
sar eax, 0x10
xor al, byte [rdx + r9 + 0x42f0]
mov byte [rdi + 1], al
mov eax, esi
cdq
idiv r10d
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x418]
sar rcx, 8
movzx edx, cl
mov eax, r8d
sar eax, 8
xor al, byte [rdx + r9 + 0x42f0]
mov byte [rdi + 2], al
lea eax, [rsi + r12]
cdq
idiv r10d
movsxd rax, edx
movzx ecx, byte [rbp + rax*4 + 0x418]
xor r8b, byte [rcx + r9 + 0x42f0]
mov byte [rdi + 3], r8b
lea rdi, [rdi + 4]
inc esi
inc r14
cmp r14, r13
jl 0x180002310
mov r9d, dword [rbp + 0x390]
mov rdi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x50]
xor r13d, r13d
mov r15d, dword [rsp + 0x34]
mov rcx, rbx
cmp byte [rbp - 0x38], r13b
je 0x1800023fa
test r9d, r9d
jle 0x1800023fa
lea rdx, [rbp + 0x3b8]
sub rdx, rbx
mov r8d, r9d
mov al, byte [rdx + rcx]
xor byte [rcx], al
inc rcx
sub r8, 1
jne 0x1800023ec
movsxd r8, r9d
mov rdx, r14
lea rcx, [rbp + 0x3b8]
call sub.VCRUNTIME140.dll_memcpy
movsxd r9, dword [rbp + 0x390]
add r14, r9
mov qword [rsp + 0x50], r14
add rbx, r9
mov qword [rsp + 0x70], rbx
inc r15d
mov dword [rsp + 0x34], r15d
xor edx, edx
mov rax, rdi
div r9
mov rcx, rax
movsxd rax, r15d
cmp rax, rcx
lea r8, [0x180000000]
jb 0x1800020b8
mov rsi, qword [rbp - 0x70]
mov r12, qword [rbp - 0x80]
mov r14, qword [rsp + 0x78]
movsx r9, byte [rsi + rdi - 1]
lea edx, [rdi - 1]
mov r8, rdi
sub r8, r9
movsxd rax, edx
cmp rax, r8
jb 0x180002495
lea rcx, [rax + rsi]
cmp byte [rcx], r9b
jne 0x180002488
mov byte [rcx], r13b
dec edx
dec rcx
movsxd rax, edx
cmp rax, r8
jae 0x180002471
jmp 0x180002495
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov rdx, rsi
mov rcx, r14
call fcn.180001e78
mov rcx, r12
call fcn.1800028c0
mov rcx, rsi
call fcn.1800028c0
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x1800024ef
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800024ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800024ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800028c0
mov rax, r14
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.1800028a0
mov rbx, qword [rsp + 0x5a0]
add rsp, 0x550
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret