Function at 0x140002fb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
mov eax, 0x1dc0
call fcn.140007790
sub rsp, rax
movaps xmmword [rsp + 0x1db0], xmm6
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x1da8], rax
xor esi, esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0xf0], 0x101
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x1b90]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x158], xmm0
mov qword [rsp + 0x168], rsi
mov qword [rsp + 0x170], rsi
lea r8d, [rsi + 3]
lea rdx, [0x1400087a0]
lea rcx, [rsp + 0x158]
call fcn.140005750
nop
lea rdx, [rsp + 0x158]
cmp qword [rsp + 0x170], 7
cmova rdx, qword [rsp + 0x158]
xorps xmm0, xmm0
movups xmmword [rsp + 0xf8], xmm0
mov qword [rsp + 0x108], rsi
mov qword [rsp + 0x110], rsi
mov r8, qword [rsp + 0x168]
lea rcx, [rsp + 0xf8]
call fcn.140005750
mov r14d, 0x300
mov dword [rsp + 0x30], r14d
xorps xmm6, xmm6
movdqa xmmword [rsp + 0xd0], xmm6
xor r8d, r8d
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x2b0]
call fcn.140002b00
nop
cmp byte [rsp + 0x528], sil
je 0x140003139
lea ecx, [rsi + 0x58]
call fcn.140006960
mov rdi, rax
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_struct_std::filesystem::_Dir_enum_impl_.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
lea rdx, [rsp + 0x2b0]
mov rcx, rbx
call fcn.140002e10
nop
mov r14d, 0x700
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xd8], rdi
movdqa xmm6, xmmword [rsp + 0xd0]
jmp 0x14000314a
xorps xmm0, xmm0
psrldq xmm0, 8
movq qword [rsp + 0xd8], xmm0
mov ebx, dword [rsp + 0x52c]
mov rcx, qword [rsp + 0x2d0]
call fcn.14000682c
mov rdx, qword [rsp + 0x2c8]
cmp rdx, 7
jbe 0x1400031a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x2b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400031a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400031a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006b50
mov qword [rsp + 0x2c0], rsi
mov qword [rsp + 0x2c8], 7
mov word [rsp + 0x2b0], si
test ebx, ebx
jne 0x140003bb5
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x188], xmm1
movups xmmword [rsp + 0xe0], xmm0
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x140003203
lock inc dword [rcx + 8]
movdqa xmm6, xmmword [rsp + 0xd0]
mov r14d, dword [rsp + 0x30]
movdqa xmmword [rsp + 0xe0], xmm6
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x140003222
lock inc dword [rcx + 8]
mov r14d, dword [rsp + 0x30]
movups xmmword [rsp + 0x178], xmm0
mov qword [rsp + 0x178], rsi
mov r13, rsi
mov qword [rsp + 0x180], rsi
mov rcx, qword [rsp + 0xd8]
mov r15d, 0xffffffff
test rcx, rcx
je 0x14000328d
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140003288
mov rbx, qword [rsp + 0xd8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140003288
mov rcx, qword [rsp + 0xd8]
mov rax, qword [rcx]
call qword [rax + 8]
mov r14d, dword [rsp + 0x30]
lea r12, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov rdi, qword [rsp + 0xe0]
nop dword [rax]
cmp rdi, r13
je 0x140003a3f
movaps xmm0, xmmword [str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
movaps xmmword [rsp + 0x1b10], xmm0
movaps xmm1, xmmword [0x140008730]
movaps xmmword [rsp + 0x1b20], xmm1
movaps xmm0, xmmword [0x140008740]
movaps xmmword [rsp + 0x1b30], xmm0
movaps xmm1, xmmword [0x140008750]
movaps xmmword [rsp + 0x1b40], xmm1
movaps xmm0, xmmword [0x140008760]
movaps xmmword [rsp + 0x1b50], xmm0
movaps xmm1, xmmword [0x140008770]
movaps xmmword [rsp + 0x1b60], xmm1
movaps xmm0, xmmword [0x140008780]
movaps xmmword [rsp + 0x1b70], xmm0
movsd xmm0, qword [0x140008790]
movsd qword [rsp + 0x1b80], xmm0
mov eax, dword [0x140008798]
mov dword [rsp + 0x1b88], eax
movzx eax, word [0x14000879c]
mov word [rsp + 0x1b8c], ax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x1b04], 0xffffffff
mov dword [rsp + 0x784], eax
mov edx, 1
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x784], eax
inc rdx
cmp rdx, 0x270
jb 0x140003360
mov dword [rsp + 0x780], 0x270
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov edx, 7
mov qword [rsp + 0x58], rdx
mov word [rsp + 0x40], si
or r14d, 1
mov dword [rsp + 0x30], r14d
mov rbx, rsi
cmp rbx, 0x1f
jae 0x140003435
lea rax, [rsp + 0x780]
mov qword [rsp + 0x80], rax
mov edx, 0x3f
lea rcx, [rsp + 0x80]
call fcn.140006270
movzx r9d, word [rsp + rax*2 + 0x1b10]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
cmp rcx, rdx
jae 0x140003421
lea rax, [rcx + 1]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
cmp rdx, 7
cmova rax, qword [rsp + 0x40]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], si
inc rbx
mov rdx, qword [rsp + 0x58]
jmp 0x1400033b5
lea rcx, [rsp + 0x40]
call fcn.140005250
inc rbx
mov rdx, qword [rsp + 0x58]
jmp 0x1400033b5
mov r8, qword [rsp + 0x50]
mov rax, rdx
sub rax, r8
lea rcx, [rsp + 0x40]
cmp rax, 4
jb 0x140003476
lea rax, [r8 + 4]
mov qword [rsp + 0x50], rax
cmp rdx, 7
cmova rcx, qword [rsp + 0x40]
mov rax, qword [str..enc]
mov qword [rcx + r8*2], rax
mov word [rcx + r8*2 + 8], si
lea rax, [rsp + 0x40]
jmp 0x140003490
mov qword [rsp + 0x20], 4
lea r9, str..enc
mov edx, 4
call fcn.140005570
xorps xmm0, xmm0
movups xmmword [rsp + 0x118], xmm0
mov qword [rsp + 0x128], rsi
mov qword [rsp + 0x130], rsi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x118], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x128], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
or r14d, 2
and r14d, 0xfffffffe
mov dword [rsp + 0x30], r14d
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140003523
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000351e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000351e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006b50
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], si
lea rdx, [rsp + 0x118]
cmp qword [rsp + 0x130], 7
cmova rdx, qword [rsp + 0x118]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov r8, qword [rsp + 0x128]
lea rcx, [rsp + 0x60]
call fcn.140005750
or r14d, 0xc
mov dword [rsp + 0x30], r14d
lea rbx, [rdi + 0x20]
mov r10, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14000358e
mov r10, qword [rbx]
mov rax, qword [rbx + 0x10]
lea rdx, [r10 + rax*2]
mov rcx, r10
call fcn.140001920
cmp rax, rdx
je 0x14000360c
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x1400035b2
cmp cx, 0x2f
jne 0x1400035bb
add rax, 2
cmp rax, rdx
jne 0x1400035a3
cmp rax, rdx
je 0x14000360c
lea r8, [rdx - 2]
movzx ecx, word [r8]
cmp cx, 0x5c
je 0x1400035de
cmp cx, 0x2f
je 0x1400035de
mov rdx, r8
cmp rax, r8
jne 0x1400035c0
jmp 0x14000360c
cmp rax, rdx
je 0x14000360c
nop dword [rax]
nop word [rax + rax]
lea r8, [rdx - 2]
movzx ecx, word [r8]
cmp cx, 0x5c
je 0x140003604
cmp cx, 0x2f
jne 0x14000360c
mov rdx, r8
cmp rax, r8
jne 0x1400035f0
sub rdx, r10
sar rdx, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rsi
mov r8, rdx
mov rdx, r10
lea rcx, [rsp + 0x90]
call fcn.140005750
or r14d, 0x70
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x138]
call fcn.140001cc0
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, 7
jbe 0x1400036b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400036aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400036aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006b50
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x1400036f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400036f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400036f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006b50
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], si
lea rdx, [rsp + 0x138]
cmp qword [rsp + 0x150], 7
cmova rdx, qword [rsp + 0x138]
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14000372f
mov rcx, qword [rbx]
call fcn.1400068c0
test eax, eax
jne 0x140003bc5
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x1a0]
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x18], 7
jbe 0x14000375b
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x1a0]
call fcn.140006000
mov rax, qword [rsp + 0x1a0]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x1a0], r12
mov rax, qword [rsp + 0x1a0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x19c], edx
lea rdx, str._:D
lea rcx, [rsp + 0x1a0]
call fcn.140004f30
lea rcx, [rsp + 0x1a8]
call fcn.140004c80
test rax, rax
jne 0x1400037e3
mov rax, qword [rsp + 0x1a0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x1a0]
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
mov rax, qword [rsp + 0x1a0]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x1a0], r12
mov rax, qword [rsp + 0x1a0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x19c], edx
lea rbx, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x1a8], rbx
cmp qword [rsp + 0x228], 0
je 0x140003869
mov rax, qword [rsp + 0x1c0]
lea rcx, [rsp + 0x218]
cmp qword [rax], rcx
jne 0x140003869
mov rdx, qword [rsp + 0x238]
mov rcx, qword [rsp + 0x230]
mov qword [rax], rcx
mov rax, qword [rsp + 0x1e0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rsp + 0x1f8]
mov dword [rax], edx
cmp byte [rsp + 0x224], 0
je 0x140003880
lea rcx, [rsp + 0x1a8]
call fcn.140004c80
lea rcx, [rsp + 0x1a8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x248]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rsp + 0x150]
cmp rdx, 7
jbe 0x1400038f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x138]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400038f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400038f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006b50
mov qword [rsp + 0x148], rsi
mov qword [rsp + 0x150], 7
mov word [rsp + 0x138], si
mov rdx, qword [rsp + 0x130]
cmp rdx, 7
jbe 0x14000395f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x118]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003959
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003959
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006b50
nop
jmp 0x140003980
lea rdx, [rsp + 0x530]
mov rcx, qword [rdi + 0x40]
call fcn.14000680c
cmp eax, 0x12
je 0x1400039dc
test eax, eax
jne 0x140003bd8
cmp word [rsp + 0x55c], 0x2e
jne 0x1400039c7
movzx eax, word [rsp + 0x55e]
test ax, ax
je 0x140003980
cmp ax, 0x2e
jne 0x1400039c7
cmp word [rsp + 0x560], 0
je 0x140003980
lea rdx, [rsp + 0x530]
mov rcx, rdi
call fcn.140002ca0
jmp 0x1400032a0
mov rdi, rsi
mov qword [rsp + 0xe0], rsi
mov rbx, qword [rsp + 0xe8]
mov qword [rsp + 0xe8], rsi
test rbx, rbx
je 0x1400032a0
mov eax, r15d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140003a22
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
je 0x140003a2c
mov r14d, dword [rsp + 0x30]
jmp 0x140003294
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov r14d, dword [rsp + 0x30]
jmp 0x140003294
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x140003a85
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140003a85
mov rbx, qword [rsp + 0xe8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140003a85
mov rcx, qword [rsp + 0xe8]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x140003aca
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140003aca
mov rbx, qword [rsp + 0xd8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r15d
cmp r15d, 1
jne 0x140003aca
mov rcx, qword [rsp + 0xd8]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x110]
cmp rdx, 7
jbe 0x140003b15
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xf8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b10
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003b10
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006b50
mov qword [rsp + 0x108], rsi
mov qword [rsp + 0x110], 7
mov word [rsp + 0xf8], si
mov rdx, qword [rsp + 0x170]
cmp rdx, 7
jbe 0x140003b7c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b77
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003b77
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006b50
xor eax, eax
mov rcx, qword [rsp + 0x1da8]
xor rcx, rsp
call fcn.140006940
lea r11, [rsp + 0x1dc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
ret
lea r8, [rsp + 0xf8]
mov edx, ebx
call fcn.140002a10
nop
lea r9, [rsp + 0x138]
mov r8, rbx
mov edx, eax
call fcn.140002a80
nop
mov edx, eax
call fcn.140002920
int3