Function at 0x1400039f0
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 [0x14000f010]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov r13, rcx
mov qword [rbp - 0x80], rcx
mov qword [rsp + 0x60], rcx
xor edi, edi
lea rcx, [rbp - 0x78]
call fcn.140001b30
nop
mov r14, qword [rbp - 0x68]
mov qword [rsp + 0x58], r14
lea rcx, [r14 + 1]
call fcn.140006c64
mov r12, rax
mov qword [rsp + 0x60], rax
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
lea r8, [r14 + 1]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [r14 + 1]
call fcn.140006c64
mov rsi, rax
mov qword [rsp + 0x78], rax
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
lea r8, [r14 + 1]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, vtable.AES.0
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], dil
mov qword [rbp + 0x37c], rdi
mov dword [rbp + 0x384], edi
lea rcx, [rbp - 0x50]
call fcn.1400014b0
cmp byte [rbp - 0x48], dil
je 0x140003f49
test r14, r14
je 0x140003f49
movsxd r10, dword [rbp + 0x380]
xor edx, edx
mov rax, r14
div r10
test rdx, rdx
jne 0x140003f49
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov rdi, r12
mov qword [rsp + 0x50], r12
mov rbx, rsi
mov qword [rsp + 0x40], rbx
test rax, rax
je 0x140003f47
lea r12, [0x140000000]
nop
mov r9, rdi
cmp byte [rbp - 0x48], 0
je 0x140003e00
cmp r10d, 0x10
jne 0x140003b3e
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1400010a0
mov r10d, dword [rbp + 0x380]
jmp 0x140003e00
mov eax, r10d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd r13, eax
xor eax, eax
cmp r13d, 4
je 0x140003b5f
cmp r13d, 6
setne al
inc rax
shl rax, 5
mov esi, dword [rax + r12 + 0xb11c]
mov dword [rsp + 0x48], esi
mov r14d, dword [rax + r12 + 0xb124]
mov dword [rsp + 0x34], r14d
mov r15d, dword [rax + r12 + 0xb12c]
mov dword [rsp + 0x38], r15d
lea r11, [rbp + 0x408]
xor ebx, ebx
test r13d, r13d
jle 0x140003bf0
nop word [rax + rax]
movzx r8d, byte [r9]
movzx eax, byte [r9 + 1]
movzx ecx, byte [r9 + 2]
mov rdx, r11
shl r8d, 8
or r8d, eax
shl r8d, 8
or r8d, ecx
shl r8d, 8
movzx eax, byte [r9 + 3]
or r8d, eax
mov dword [r11], r8d
lea r9, [r9 + 4]
add r11, 4
xor r8d, dword [rbp + rbx*4 + 0x19c]
mov dword [rdx], r8d
inc rbx
cmp rbx, r13
jl 0x140003ba0
mov r10d, dword [rbp + 0x380]
mov r12d, 1
mov eax, dword [rbp + 0x384]
cmp eax, r12d
jle 0x140003d17
lea eax, [r13*4]
cdqe
mov qword [rsp + 0x70], rax
mov r15, 0xfffffffffffffdb4
nop dword [rax + rax]
xor r14d, r14d
test r13d, r13d
jle 0x140003cd8
mov ebx, esi
mov r10d, dword [rsp + 0x34]
sub r10d, esi
mov r11d, dword [rsp + 0x38]
sub r11d, esi
lea rsi, [0x140000000]
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 [rsi + r8*4 + 0x9800]
xor r9d, dword [rsi + rcx*4 + 0xa900]
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 [rsi + rax*4 + 0x8800]
movzx eax, byte [rbp + r14*4 + 0x40b]
xor r9d, dword [rsi + rax*4 + 0xad10]
lea rax, [r15 + r14*4]
xor r9d, dword [rbp + rax + 0x408]
mov dword [rbp + r14*4 + 0x3e8], r9d
inc ebx
inc r14
cmp r14, r13
jl 0x140003c45
mov esi, dword [rsp + 0x48]
mov r8, qword [rsp + 0x70]
lea rdx, [rbp + 0x3e8]
lea rcx, [rbp + 0x408]
call sub.VCRUNTIME140.dll_memcpy
inc r12d
add r15, 0x20
mov eax, dword [rbp + 0x384]
cmp r12d, eax
jl 0x140003c20
mov r10d, dword [rbp + 0x380]
mov r14d, dword [rsp + 0x34]
mov r15d, dword [rsp + 0x38]
xor ebx, ebx
lea r12, [0x140000000]
test r13d, r13d
jle 0x140003dec
movsxd r11, eax
mov r9, qword [rsp + 0x40]
shl r11, 5
sub esi, r14d
sub r15d, r14d
nop dword [rax + rax]
lea rax, [r11 + rbx*4]
mov r8d, dword [rbp + rax + 0x19c]
movzx ecx, byte [rbp + rbx*4 + 0x40b]
mov eax, r8d
sar eax, 0x18
xor al, byte [rcx + r12 + 0x8700]
mov byte [r9], al
lea eax, [rsi + r14]
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 + r12 + 0x8700]
mov byte [r9 + 1], al
mov eax, r14d
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 + r12 + 0x8700]
mov byte [r9 + 2], al
lea eax, [r15 + r14]
cdq
idiv r13d
movsxd rax, edx
movzx ecx, byte [rbp + rax*4 + 0x408]
xor r8b, byte [rcx + r12 + 0x8700]
mov byte [r9 + 3], r8b
lea r9, [r9 + 4]
inc r14d
inc rbx
cmp rbx, r13
jl 0x140003d40
mov r15d, dword [rsp + 0x30]
mov r14, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
lea r8, [rbp + 0x3a8]
mov rax, rbx
cmp byte [rbp - 0x48], 0
je 0x140003ef1
xor r9d, r9d
test r10d, r10d
jle 0x140003ef1
cmp r10d, 0x40
jb 0x140003eca
lea ecx, [r10 - 1]
movsxd rdx, ecx
lea r11, [rdx + rbx]
lea rcx, [rbp + 0x3a8]
add rcx, rdx
cmp rbx, rcx
ja 0x140003e50
lea rcx, [rbp + 0x3a8]
cmp r11, rcx
jae 0x140003eca
mov ecx, r10d
and ecx, 0x8000003f
jge 0x140003e62
dec ecx
or ecx, 0xffffffc0
inc ecx
mov edx, r10d
sub edx, ecx
nop word [rax + rax]
movdqu xmm1, xmmword [r8]
movdqu xmm0, xmmword [rax]
xorps xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm1, xmmword [r8 + 0x10]
movdqu xmm0, xmmword [rax + 0x10]
xorps xmm1, xmm0
movdqu xmmword [rax + 0x10], xmm1
movdqu xmm1, xmmword [r8 + 0x20]
movdqu xmm0, xmmword [rax + 0x20]
xorps xmm1, xmm0
movdqu xmmword [rax + 0x20], xmm1
movdqu xmm1, xmmword [r8 + 0x30]
movdqu xmm0, xmmword [rax + 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax + 0x30], xmm1
add r8, 0x40
add rax, 0x40
add r9d, 0x40
cmp r9d, edx
jl 0x140003e70
cmp r9d, r10d
jge 0x140003ef1
sub r8, rax
mov edx, r10d
sub edx, r9d
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140003ee0
movsxd r8, r10d
mov rdx, rdi
lea rcx, [rbp + 0x3a8]
call sub.VCRUNTIME140.dll_memcpy
movsxd r10, dword [rbp + 0x380]
add rdi, r10
mov qword [rsp + 0x50], rdi
add rbx, r10
mov qword [rsp + 0x40], rbx
inc r15d
mov dword [rsp + 0x30], r15d
xor edx, edx
mov rax, r14
div r10
mov rcx, rax
movsxd rax, r15d
cmp rax, rcx
jb 0x140003b10
mov rsi, qword [rsp + 0x78]
mov r13, qword [rbp - 0x80]
mov r12, qword [rsp + 0x60]
xor edi, edi
movzx r9d, byte [rsi + r14 - 1]
lea edx, [r14 - 1]
movsx rax, r9b
mov r8, r14
sub r8, rax
movsxd rax, edx
cmp rax, r8
jb 0x140003fb7
lea rcx, [rax + rsi]
nop dword [rax]
cmp byte [rcx], r9b
jne 0x140003f87
mov byte [rcx], 0
dec edx
dec rcx
movsxd rax, edx
cmp rax, r8
jae 0x140003f70
jmp 0x140003fb7
mov r8, r14
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x14000be38]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005f30
mov rcx, rax
lea rdx, [0x140006100]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], rdi
mov qword [r13 + 0x18], rdi
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rsi + r8], 0
jne 0x140003fd0
mov rdx, rsi
mov rcx, r13
call fcn.140002060
mov rcx, r12
call fcn.140006700
mov rcx, rsi
call fcn.140006700
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140004034
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000402f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000402f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006700
mov rax, r13
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.1400066e0
mov rbx, qword [rsp + 0x590]
add rsp, 0x540
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret