Function at 0x140002840
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 - 0x218]
sub rsp, 0x2f0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14000e008]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r14, rdx
mov rsi, rcx
mov qword [rbp - 0x80], rcx
xor r12d, r12d
mov dword [rsp + 0x28], r12d
mov rax, qword [0x140009768]
mov qword [rsp + 0x20], rax
lea eax, [r12 + 0x1f]
lea r13d, [r12 + 4]
mov r15d, dword [0x14000e018]
cmp byte [0x14000976f], r12b
je 0x1400029f9
mov r8d, r12d
cmp r15d, 2
jl 0x1400029c3
movdqa xmm4, xmmword [0x140009a90]
movd xmm6, r13d
movd xmm5, eax
movdqa xmm2, xmmword [0x140009a00]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140009a20]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140009a50]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140009a80]
movd xmm0, dword [rsp + 0x20]
pxor xmm2, xmm0
movd dword [rsp + 0x20], xmm2
movdqa xmm3, xmmword [0x140009a10]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140009a20]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140009a50]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140009a80]
movd xmm0, dword [rsp + 0x24]
pxor xmm2, xmm0
movd dword [rsp + 0x24], xmm2
jmp 0x1400029f9
lea r9, [rsp + 0x20]
nop dword [rax + rax]
mov eax, 0x51eb851f
mul r8d
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x36
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x1400029d0
lea rax, [rsp + 0x20]
mov rdi, 0xffffffffffffffff
mov rbx, rdi
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], r12b
jne 0x140002a10
call fcn.1400068a8
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140001920
mov dword [rsp + 0x28], 6
mov rbx, rdi
nop dword [rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x140002a50
call fcn.1400068a8
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140001920
mov dword [rsp + 0x28], 0x1e
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call fcn.140006d0c
test eax, eax
jne 0x140003095
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140002af6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002af1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002af1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006df4
movdqa xmm0, xmmword [0x1400099f0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r12w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140002b4f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006df4
movdqa xmm0, xmmword [0x1400099f0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r12w
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x60]
call fcn.140004600
nop
mov rax, qword [0x140009768]
mov qword [rsp + 0x20], rax
cmp byte [0x14000976f], 0
je 0x140002ce9
mov r8d, r12d
cmp r15d, 2
jl 0x140002cae
movdqa xmm4, xmmword [0x140009a90]
movd xmm6, r13d
mov eax, 0x1f
movd xmm5, eax
movdqa xmm2, xmmword [0x140009a00]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140009a20]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140009a50]
packuswb xmm2, xmm2
mov eax, dword [0x140009a80]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x20]
pxor xmm2, xmm1
movd dword [rsp + 0x20], xmm2
movdqa xmm3, xmmword [0x140009a10]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140009a20]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140009a50]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x24]
pxor xmm2, xmm1
movd dword [rsp + 0x24], xmm2
jmp 0x140002ce9
lea r9, [rsp + 0x20]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x51eb851f
mul r8d
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x36
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x140002cc0
mov r8d, 0x21
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x50]
call fcn.140004ac0
xor r8d, r8d
test rax, rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
je 0x140002d1e
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x140002d2c
add rcx, rax
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
mov qword [rbp - 0x68], r12
mov ecx, free
call fcn.140006db0
test rax, rax
je 0x14000308e
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
mov qword [rbp - 0x78], rcx
lea rbx, [rcx + 0xcaf0]
mov qword [rbp - 0x68], rbx
xor edx, edx
mov r8d, 0xcaf0
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x70], rbx
mov r8d, fclose
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x50]
call fcn.140004a40
test rax, rax
jne 0x140002db5
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov eax, dword [0x1400096fc]
mov dword [rsp + 0x20], eax
movzx eax, byte [0x140009700]
mov byte [rsp + 0x20], 0x2e
xor byte [rsp + 0x21], 0x37
xor byte [rsp + 0x22], 0x38
xor byte [rsp + 0x23], 0x39
xor al, 0x3a
mov byte [rsp + 0x24], al
mov edx, 0xa
lea rcx, [rsp + 0x40]
call fcn.140002570
nop
lea rcx, [rsp + 0x20]
inc rdi
cmp byte [rcx + rdi], 0
jne 0x140002df5
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140004d60
mov qword [rsi], r12
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsi + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov dword [rsp + 0x28], 0x3f
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140002e7e
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002e79
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006df4
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp + 0xb0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xb0]
call fcn.140003980
nop
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140002eac
mov rdx, qword [rsi]
mov r8d, 0x28
lea rcx, [rbp + 0xc8]
call fcn.140004ac0
xor r8d, r8d
test rax, rax
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xb0]
je 0x140002ee5
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x140002ef3
add rcx, rax
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.140002570
cmp qword [rax + 0x18], 0x10
jb 0x140002f0c
mov rax, qword [rax]
mov rcx, qword [rbp - 0x78]
add rcx, 0xc9f0
mov edx, 2
nop dword [rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x140002f20
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140002fb2
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002fad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006df4
mov r8, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x78]
sub r8, rdx
lea rcx, [rbp + 0xc0]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp + 0xc8]
call fcn.140004a40
test rax, rax
jne 0x140002ffe
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xb0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp + 0xb0]
call fcn.140003180
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14000304d
mov rdx, qword [rbp - 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000303c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000308e
call fcn.140006df4
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
lea rcx, [rbp - 0x60]
call fcn.1400030b0
mov rax, rsi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140006d90
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov edx, eax
call fcn.140002340
int3