Function at 0x180001f88
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 - 0x440]
sub rsp, 0x540
mov rax, qword [0x180009010]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov r15, rcx
mov qword [rbp - 0x80], rcx
mov qword [rsp + 0x40], rcx
xor r12d, r12d
lea rcx, [rbp - 0x78]
call fcn.180001a28
nop
mov r14, qword [rbp - 0x68]
mov qword [rsp + 0x60], r14
lea rcx, [r14 + 1]
call fcn.180002c7c
mov rsi, rax
mov qword [rsp + 0x58], rax
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
lea rbx, [r14 + 1]
mov r8, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call fcn.180002c7c
mov rdi, rax
mov qword [rsp + 0x68], rax
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
mov r8, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, vtable.AES.0
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], r12b
mov qword [rbp + 0x37c], r12
mov dword [rbp + 0x384], r12d
lea rcx, [rbp - 0x50]
call fcn.180001494
cmp byte [rbp - 0x48], r12b
je 0x180002428
test r14, r14
je 0x180002428
movsxd r9, dword [rbp + 0x380]
xor edx, edx
mov rax, r14
div r9
test rdx, rdx
jne 0x180002428
mov ebx, r12d
mov dword [rsp + 0x38], ebx
test rax, rax
je 0x180002428
lea r8, [0x180000000]
mov r10, rsi
cmp byte [rbp - 0x48], r12b
je 0x1800023ae
cmp r9d, 0x10
jne 0x1800020c7
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp - 0x50]
call fcn.180001078
mov r9d, dword [rbp + 0x380]
jmp 0x1800023ae
mov eax, r9d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd r13, eax
mov rax, r12
cmp r13d, 6
setne al
inc rax
cmp r13d, 4
cmove rax, r12
shl rax, 5
mov ebx, dword [rax + r8 + 0x6cbc]
mov dword [rsp + 0x4c], ebx
mov ecx, dword [rax + r8 + 0x6cc4]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rax + r8 + 0x6ccc]
mov dword [rsp + 0x34], ecx
lea r11, [rbp + 0x408]
mov r15, r12
test r13d, r13d
jle 0x180002172
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 + r15*4 + 0x19c]
mov dword [rdx], r8d
inc r15
cmp r15, r13
jl 0x180002122
mov r9d, dword [rbp + 0x380]
mov r15d, 1
mov eax, dword [rbp + 0x384]
cmp eax, r15d
jle 0x1800022b5
lea eax, [r13*4]
cdqe
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0xfffffffffffffdb4
mov r14d, dword [rsp + 0x30]
mov edi, dword [rsp + 0x34]
and qword [rsp + 0x78], 0
test r13d, r13d
jle 0x18000226f
mov r10d, r14d
sub r10d, ebx
mov r11d, edi
sub r11d, ebx
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x78]
lea r14, [0x180000000]
lea eax, [r10 + rbx]
cdq
idiv r13d
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x408]
sar rcx, 8
movzx r8d, cl
lea eax, [r11 + rbx]
cdq
idiv r13d
movsxd rax, edx
movzx ecx, byte [rbp + rax*4 + 0x408]
mov r9d, dword [r14 + r8*4 + 0x53a0]
xor r9d, dword [r14 + rcx*4 + 0x64a0]
mov eax, ebx
cdq
idiv r13d
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x408]
sar rcx, 0x10
movzx eax, cl
xor r9d, dword [r14 + rax*4 + 0x43a0]
movzx eax, byte [rbp + rdi*4 + 0x40b]
xor r9d, dword [r14 + rax*4 + 0x68b0]
lea rax, [rsi + rdi*4]
xor r9d, dword [rbp + rax + 0x408]
mov dword [rbp + rdi*4 + 0x3e8], r9d
inc ebx
inc rdi
cmp rdi, r13
jl 0x1800021d4
mov ebx, dword [rsp + 0x4c]
mov r14d, dword [rsp + 0x30]
mov edi, dword [rsp + 0x34]
mov r8, qword [rsp + 0x40]
lea rdx, [rbp + 0x3e8]
lea rcx, [rbp + 0x408]
call sub.VCRUNTIME140.dll_memcpy
inc r15d
add qword [rsp + 0x50], 0x20
mov eax, dword [rbp + 0x384]
cmp r15d, eax
jl 0x1800021a8
mov r9d, dword [rbp + 0x380]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
and qword [rsp + 0x40], 0
test r13d, r13d
jle 0x1800023a7
movsxd r11, eax
mov r14, rdi
shl r11, 5
mov r10d, dword [rsp + 0x30]
sub ebx, r10d
mov r15d, dword [rsp + 0x34]
sub r15d, r10d
mov rsi, qword [rsp + 0x40]
lea r9, [0x180000000]
lea rax, [r11 + rsi*4]
mov r8d, dword [rbp + rax + 0x19c]
movzx ecx, byte [rbp + rsi*4 + 0x40b]
mov eax, r8d
sar eax, 0x18
xor al, byte [rcx + r9 + 0x42a0]
mov byte [r14], al
lea eax, [rbx + r10]
cdq
idiv r13d
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x408]
sar rcx, 0x10
movzx edx, cl
mov eax, r8d
sar eax, 0x10
xor al, byte [rdx + r9 + 0x42a0]
mov byte [r14 + 1], al
mov eax, r10d
cdq
idiv r13d
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x408]
sar rcx, 8
movzx edx, cl
mov eax, r8d
sar eax, 8
xor al, byte [rdx + r9 + 0x42a0]
mov byte [r14 + 2], al
lea eax, [r15 + r10]
cdq
idiv r13d
movsxd rax, edx
movzx ecx, byte [rbp + rax*4 + 0x408]
xor r8b, byte [rcx + r9 + 0x42a0]
mov byte [r14 + 3], r8b
lea r14, [r14 + 4]
inc r10d
inc rsi
cmp rsi, r13
jl 0x1800022ea
mov r9d, dword [rbp + 0x380]
mov rsi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
xor r12d, r12d
mov ebx, dword [rsp + 0x38]
mov rcx, rdi
cmp byte [rbp - 0x48], r12b
je 0x1800023d7
test r9d, r9d
jle 0x1800023d7
lea rdx, [rbp + 0x3a8]
sub rdx, rdi
mov r8d, r9d
mov al, byte [rcx + rdx]
xor byte [rcx], al
inc rcx
sub r8, 1
jne 0x1800023c9
movsxd r8, r9d
mov rdx, rsi
lea rcx, [rbp + 0x3a8]
call sub.VCRUNTIME140.dll_memcpy
movsxd r9, dword [rbp + 0x380]
add rsi, r9
mov qword [rsp + 0x58], rsi
add rdi, r9
mov qword [rsp + 0x68], rdi
inc ebx
mov dword [rsp + 0x38], ebx
xor edx, edx
mov rax, r14
div r9
mov rcx, rax
movsxd rax, ebx
cmp rax, rcx
lea r8, [0x180000000]
jb 0x180002099
mov r15, qword [rbp - 0x80]
lea rdx, str.szDataOut
mov rcx, r15
call fcn.180001e68
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x180002476
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002471
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180002471
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800025f0
mov rax, r15
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.1800025d0
mov rbx, qword [rsp + 0x590]
add rsp, 0x540
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret