Function at 0x140022630
Capabilities:
Create thread
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x10], edx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xe0
mov rax, qword [0x140065040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov dword [rbp - 0x59], r9d
mov rsi, r8
mov r15, rcx
xor r14d, r14d
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
mov qword [rbp - 1], r14
mov eax, 1
xchg byte [0x1400650a0], al
mov r12d, r14d
test r9d, r9d
jle 0x140022ac5
mov r13d, dword [rbp + 0x67]
nop word [rax + rax]
mov dword [rsp + 0x30], 0x4a5a4c
mov byte [rbp - 0x7d], 1
mov rcx, r14
nop
lea eax, [rcx + 0x18]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 3
jb 0x1400226b0
mov byte [rbp - 0x7d], 0
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400226d0
mov rbx, qword [rsi + 0x10]
mov rcx, rsi
mov rdi, qword [rsi + 0x18]
cmp rdi, 0xf
jbe 0x1400226ed
mov rcx, qword [rsi]
cmp rbx, rax
jne 0x1400227a4
mov r8, rbx
lea rdx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400227a4
lea rdx, [0x140057a58]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140024a90
lea rdx, [0x140024f90]
mov rcx, rax
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]
mov qword [rbp - 0x51], r15
mov rbx, qword [rbp - 9]
cmp rbx, qword [rbp - 1]
je 0x140022794
mov ecx, 0x18
call fcn.1400312bc
mov dword [rax], r13d
mov qword [rax + 8], r15
lea rcx, [0x140021250]
mov qword [rax + 0x10], rcx
mov qword [rbp + 7], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140027dd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140022b05
add qword [rbp - 9], 0x10
jmp 0x140022ab8
lea r9, [rbp - 0x51]
lea r8, [0x140021250]
jmp 0x140022aa3
mov dword [rbp - 0x79], 0x4a5d4d
mov byte [rbp - 0x75], 1
mov rcx, r14
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x18]
xor byte [rbp + rcx - 0x79], al
inc rcx
cmp rcx, 3
jb 0x1400227c0
mov byte [rbp - 0x75], 0
lea rcx, [rbp - 0x79]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1400227e0
mov rcx, rsi
cmp rdi, 0xf
jbe 0x1400227f5
mov rcx, qword [rsi]
cmp rbx, rax
jne 0x1400228ab
mov r8, rbx
lea rdx, [rbp - 0x79]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400228ab
lea rdx, [0x140057a5c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140024a90
lea rdx, [0x140024f90]
mov rcx, rax
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]
mov qword [rbp - 0x49], r15
mov rbx, qword [rbp - 9]
cmp rbx, qword [rbp - 1]
je 0x14002289b
mov ecx, 0x18
call fcn.1400312bc
mov dword [rax], r13d
mov qword [rax + 8], r15
lea rcx, [0x1400217e0]
mov qword [rax + 0x10], rcx
mov qword [rbp + 0xf], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140027dd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140022b14
add qword [rbp - 9], 0x10
jmp 0x140022ab8
lea r9, [rbp - 0x49]
lea r8, [0x1400217e0]
jmp 0x140022aa3
mov dword [rbp - 0x71], 0x54404b
mov byte [rbp - 0x6d], 1
mov rcx, r14
nop dword [rax]
lea eax, [rcx + 0x18]
xor byte [rbp + rcx - 0x71], al
inc rcx
cmp rcx, 3
jb 0x1400228c0
mov byte [rbp - 0x6d], 0
lea rcx, [rbp - 0x71]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1400228e0
mov r8, rbx
mov rcx, rsi
cmp rdi, 0xf
jbe 0x1400228f8
mov rcx, qword [rsi]
cmp r8, rax
jne 0x1400229ab
lea rdx, [rbp - 0x71]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400229ab
lea rdx, [0x140057a60]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140024a90
lea rdx, [0x140024f90]
mov rcx, rax
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]
mov qword [rbp - 0x41], r15
mov rbx, qword [rbp - 9]
cmp rbx, qword [rbp - 1]
je 0x14002299b
mov ecx, 0x18
call fcn.1400312bc
mov dword [rax], r13d
mov qword [rax + 8], r15
lea rcx, [0x140021c90]
mov qword [rax + 0x10], rcx
mov qword [rbp + 0x17], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140027dd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140022b23
add qword [rbp - 9], 0x10
jmp 0x140022ab8
lea r9, [rbp - 0x41]
lea r8, [0x140021c90]
jmp 0x140022aa3
mov dword [rbp - 0x69], 0x49575c
mov byte [rbp - 0x65], 1
mov rax, r14
nop dword [rax]
lea ecx, [rax + 0x18]
xor byte [rbp + rax - 0x69], cl
inc rax
cmp rax, 3
jb 0x1400229c0
mov byte [rbp - 0x65], 0
lea rcx, [rbp - 0x69]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1400229e0
mov r8, rbx
mov rcx, rsi
cmp rdi, 0xf
jbe 0x1400229f8
mov rcx, qword [rsi]
cmp r8, rax
jne 0x140022ab8
lea rdx, [rbp - 0x69]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140022ab8
lea rdx, [0x140057a64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140024a90
lea rdx, [0x140024f90]
mov rcx, rax
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]
mov qword [rbp - 0x39], r15
mov rbx, qword [rbp - 9]
cmp rbx, qword [rbp - 1]
je 0x140022a98
mov ecx, 0x18
call fcn.1400312bc
mov dword [rax], r13d
mov qword [rax + 8], r15
lea rcx, [0x1400222b0]
mov qword [rax + 0x10], rcx
mov qword [rbp + 0x1f], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140027dd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140022b32
add qword [rbp - 9], 0x10
jmp 0x140022ab8
lea r9, [rbp - 0x39]
lea r8, [0x1400222b0]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.140026460
inc r12d
cmp r12d, dword [rbp - 0x59]
jl 0x1400226a0
movsxd rbx, dword [rbp + 0x7f]
lea rcx, [rbp - 0x31]
call fcn.14001b030
mov rax, qword [rbp - 0x31]
mov qword [rbp - 0x61], rax
test rbx, rbx
jle 0x140022b45
imul rdx, rbx, 0x3b9aca00
movabs r8, 0x7fffffffffffffff
mov rcx, r8
sub rcx, rdx
cmp rax, rcx
jge 0x140022b41
lea rcx, [rdx + rax]
mov qword [rbp - 0x61], rcx
jmp 0x140022b45
mov dword [rdi], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rdi], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rdi], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rdi], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov qword [rbp - 0x61], r8
lea rcx, [rbp - 0x61]
call fcn.140026340
xchg byte [0x1400650a0], r14b
mov rbx, qword [rbp - 0x11]
mov rdi, qword [rbp - 9]
cmp rbx, rdi
je 0x140022ba5
cmp dword [rbx + 8], 0
je 0x140022b94
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x140022c00
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x21], xmm0
xor edx, edx
lea rcx, [rbp - 0x21]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140022bf4
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x140022b62
mov rdi, qword [rbp - 9]
mov rbx, qword [rbp - 0x11]
test rbx, rbx
je 0x140022c1b
mov rax, rbx
cmp rbx, rdi
je 0x140022bc1
cmp dword [rax + 8], 0
jne 0x140022c0c
add rax, 0x10
cmp rax, rdi
jne 0x140022bb2
mov rdx, qword [rbp - 1]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140022c13
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022c13
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rcx, rbx
call fcn.1400312f8
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140031000
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret