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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1420]
mov eax, 0x1520
call fcn.140272980
sub rsp, rax
movaps xmmword [rsp + 0x1510], xmm6
movaps xmmword [rsp + 0x1500], xmm7
mov rax, qword [0x140294040]
xor rax, rsp
mov qword [rbp + 0x13f0], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea r13, [rbp + 0x1448]
movabs rbx, 0xff00ff00ff00ff00
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r13
mov rax, qword [r13]
xor rax, rbx
mov qword [rsp + 0x38], rax
mov qword [r13], r12
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rbp + 0x12d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov r15d, 1
mov ecx, r15d
nop dword [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x1402283f0
mov dword [rsp + 0x50], 0x270
mov dword [rsp + 0x20], r12d
lea rcx, [rsp + 0x28]
call fcn.140201b40
mov r14, qword [rsp + 0x28]
add r14, 0x5f5e100
lea rcx, [rsp + 0x28]
call fcn.140201b40
cmp qword [rax], r14
jge 0x1402285a4
mov edi, 0x186a0
nop word [rax + rax]
lea rcx, [rsp + 0x50]
call fcn.14025d840
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x63
ja 0x140228488
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
call fcn.14025d840
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x140228470
shr rax, 0x20
lea ebx, [rax + 0x7fffff9c]
xor ebx, 0x80000000
cmove ebx, r15d
lea rcx, [rsp + 0x50]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x1402284cc
lea rcx, [rsp + 0x50]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x1402284b4
shr rcx, 0x20
add ecx, 0x7fffff9c
btc ecx, 0x1f
mov eax, dword [rsp + 0x20]
add eax, ecx
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x50]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x140228518
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140228500
shr rcx, 0x20
add ecx, 0x7fffff9c
btc ecx, 0x1f
mov eax, dword [rsp + 0x20]
imul eax, ecx
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x50]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x140228568
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140228550
shr rcx, 0x20
add ecx, 0x7fffff9c
btc ecx, 0x1f
mov eax, dword [rsp + 0x20]
sub eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
cdq
idiv ebx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
cdq
idiv ebx
mov dword [rsp + 0x20], edx
sub rdi, r15
jne 0x140228450
jmp 0x140228432
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x34], 0x101
lea rdx, [rsp + 0x34]
lea rcx, [rbp + 0x12e0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x140228617
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
lea rax, [rbp + 0x12e0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1402285e2
lea rdx, [rbp + 0x12e0]
mov rcx, rsi
call fcn.14021c020
nop
mov rcx, qword [rsp + 0x38]
movabs rdx, 0xff00ff00ff00ff00
xor rcx, rdx
mov qword [r13], rcx
jmp 0x14022886e
mov rax, qword [0x1402830f0]
mov qword [rsp + 0x20], rax
cmp byte [0x1402830f7], 0
je 0x140228821
mov r9d, r12d
cmp dword [0x140294090], 2
jl 0x1402287c8
movdqa xmm6, xmmword [0x1402843c0]
movdqa xmm7, xmmword [0x1402843a0]
movdqa xmm4, xmmword [0x140284260]
movdqa xmm2, xmm4
punpckldq xmm2, xmm4
movdqa xmm1, xmm4
punpckhdq xmm1, xmm4
movdqa xmm3, xmm2
pmuldq xmm3, xmm6
movdqa xmm0, xmm1
pmuldq xmm0, xmm6
shufps xmm3, xmm0, 0xdd
paddd xmm3, xmm4
psrad xmm3, 6
pmuldq xmm2, xmm7
pmuldq xmm1, xmm7
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm4
psrad xmm2, 6
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x1402843d0]
movdqa xmm1, xmm4
psubd xmm1, xmm0
movdqa xmm5, xmmword [0x140284370]
andps xmm1, xmm5
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movdqa xmm0, xmm3
psrld xmm0, 0x1f
paddd xmm0, xmm3
pmulld xmm0, xmmword [str.ffffiiii]
psubd xmm4, xmm0
andps xmm4, xmm5
packuswb xmm4, xmm4
packuswb xmm4, xmm4
paddb xmm1, xmm4
paddb xmm1, xmmword [0x140284390]
movd xmm0, dword [rsp + 0x20]
xorps xmm1, xmm0
movd dword [rsp + 0x20], xmm1
movdqa xmm4, xmmword [0x140284280]
movdqa xmm2, xmm4
punpckldq xmm2, xmm4
movdqa xmm1, xmm4
punpckhdq xmm1, xmm4
movdqa xmm3, xmm2
pmuldq xmm3, xmm6
movdqa xmm0, xmm1
pmuldq xmm0, xmm6
shufps xmm3, xmm0, 0xdd
paddd xmm3, xmm4
psrad xmm3, 6
pmuldq xmm2, xmm7
pmuldq xmm1, xmm7
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm4
psrad xmm2, 6
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x1402843d0]
movdqa xmm1, xmm4
psubd xmm1, xmm0
andps xmm1, xmm5
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movdqa xmm0, xmm3
psrld xmm0, 0x1f
paddd xmm0, xmm3
pmulld xmm0, xmmword [str.ffffiiii]
psubd xmm4, xmm0
andps xmm4, xmm5
packuswb xmm4, xmm4
packuswb xmm4, xmm4
paddb xmm1, xmm4
paddb xmm1, xmmword [0x140284390]
movd xmm0, dword [rsp + 0x24]
xorps xmm1, xmm0
movd dword [rsp + 0x24], xmm1
jmp 0x140228821
lea r10, [rsp + 0x20]
nop dword [rax]
mov eax, 0x1f7047dd
mul r9d
mov eax, r9d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
movsx eax, al
imul r8d, eax, 0x39
mov eax, 0x5f5f5f5f
imul r9d
sub edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
sub cl, r8b
add cl, 0x23
add cl, r9b
add cl, cl
xor byte [r10], cl
inc r9d
lea r10, [r10 + 1]
cmp r9d, 8
jl 0x1402287d0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140228840
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14021c020
nop
mov rax, qword [rsp + 0x38]
movabs rdx, 0xff00ff00ff00ff00
xor rax, rdx
mov qword [r13], rax
mov rax, rsi
mov rcx, qword [rbp + 0x13f0]
xor rcx, rsp
call fcn.140271640
lea r11, [rsp + 0x1520]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret