Function at 0x140001370
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x3d8
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
call fcn.140001700
test eax, eax
jne 0x1400013af
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140001c30
add rsp, 0x3d8
ret
mov qword [rsp + 0x3e0], rbx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x3e8], rsi
lea rdx, str.1111111WzkU5
mov qword [rsp + 0x3d0], rdi
mov edi, 7
mov eax, edi
mov dword [rsp + 0x20], 0x67696163
mov dword [rsp + 0x24], 0x3131756f
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x1400013f0
mov eax, dword [rdx]
mov r8d, 0x37e
mov dword [rcx], eax
movzx eax, byte [rdx + 4]
lea rdx, [rsp + 0x37]
mov byte [rcx + 4], al
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memmove
mov ecx, 0x408
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movdqa xmm2, xmmword [0x1400037c0]
xor ebx, ebx
mov rsi, rax
mov ecx, 8
mov qword [rax], rbx
lea rdx, [rax + 0x28]
nop word [rax + rax]
lea eax, [rcx - 8]
movd xmm0, eax
lea rdx, [rdx + 0x40]
pshufd xmm0, xmm0, 0
lea eax, [rcx - 4]
paddd xmm0, xmm2
movd xmm1, eax
movdqu xmmword [rdx - 0x60], xmm0
lea eax, [rcx + 4]
pshufd xmm1, xmm1, 0
paddd xmm1, xmm2
movd xmm0, ecx
movdqu xmmword [rdx - 0x50], xmm1
add ecx, 0x10
movd xmm1, eax
pshufd xmm0, xmm0, 0
pshufd xmm1, xmm1, 0
paddd xmm0, xmm2
movdqu xmmword [rdx - 0x40], xmm0
lea eax, [rcx - 8]
paddd xmm1, xmm2
movdqu xmmword [rdx - 0x30], xmm1
cmp eax, 0x100
jl 0x140001490
mov r8d, ebx
mov r10, rbx
mov r9, rbx
nop dword [rax + rax]
add r8b, byte [rsp + r9 + 0x20]
mov edx, dword [rsi + r10*4 + 8]
add r8b, dl
movzx r8d, r8b
mov eax, dword [rsi + r8*4 + 8]
lea rcx, [rsi + r8*4]
mov dword [rsi + r10*4 + 8], eax
lea rax, [r9 + 1]
inc r10
mov dword [rcx + 8], edx
cmp rax, rdi
mov r9, rbx
cmovl r9, rax
cmp r10, 0x100
jl 0x140001500
mov r9d, dword [rsi]
mov r10, rbx
mov r11d, dword [rsi + 4]
nop word [rax + rax]
inc r9b
movzx r9d, r9b
mov r8d, dword [rsi + r9*4 + 8]
lea rdx, [rsi + r9*4]
lea eax, [r11 + r8]
movzx r11d, al
mov ecx, dword [rsi + r11*4 + 8]
mov dword [rdx + 8], ecx
mov dword [rsi + r11*4 + 8], r8d
add r8b, cl
movzx eax, r8b
movzx ecx, byte [rsi + rax*4 + 8]
xor byte [rsp + r10 + 0x30], cl
inc r10
cmp r10, 0x384
jl 0x140001550
mov rcx, rsi
mov dword [rsi], r9d
mov dword [rsi + 4], r11d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movdqa xmm2, xmmword [0x1400037d0]
lea rax, [rsp + 0x40]
mov rsi, qword [rsp + 0x3e8]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
lea rax, [rax + 0x40]
add ebx, 0x40
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x40]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x30], xmm0
movdqu xmm0, xmmword [rax - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp ebx, 0x380
jb 0x1400015c0
movsxd rax, ebx
cmp rax, 0x385
jae 0x140001631
lea rax, [rsp + rax + 0x30]
nop
xor byte [rax], 0xcb
lea rax, [rax + 1]
inc ebx
cmp ebx, 0x385
jb 0x140001620
call fcn.140001070
mov rcx, rax
call fcn.1400011f0
xor ecx, ecx
mov edx, 0x385
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call rax
mov rbx, qword [rsp + 0x3e0]
lea rcx, [rsp + 0x30]
mov r8, rax
mov rdx, rax
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rdi, 1
jne 0x140001670
mov eax, dword [rcx]
mov rdi, qword [rsp + 0x3d0]
mov dword [rdx], eax
movzx eax, byte [rcx + 4]
mov byte [rdx + 4], al
call r8
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140001c30
add rsp, 0x3d8
ret