Function at 0x140225a90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1540
call fcn.140272980
sub rsp, rax
movaps xmmword [rsp + 0x1530], xmm6
movaps xmmword [rsp + 0x1520], xmm7
movaps xmmword [rsp + 0x1510], xmm8
movaps xmmword [rsp + 0x1500], xmm9
movaps xmmword [rsp + 0x14f0], xmm10
movaps xmmword [rsp + 0x14e0], xmm11
movaps xmmword [rsp + 0x14d0], xmm12
mov rax, qword [0x140294040]
xor rax, rsp
mov qword [rsp + 0x14c0], rax
mov r15, rcx
mov qword [rsp + 0x40], rcx
xor r13d, r13d
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rbx, [rsp + 0x1568]
mov qword [rsp + 0x58], rbx
movabs r14, 0xff00ff00ff00ff00
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], rbx
mov rax, qword [rbx]
xor rax, r14
mov qword [rsp + 0x90], rax
mov qword [rbx], r13
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x14b4], 0xffffffff
mov dword [rsp + 0x134], eax
mov r12d, 1
mov ecx, r12d
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x134], edx
inc rcx
cmp rcx, 0x270
jb 0x140225b70
mov dword [rsp + 0x130], 0x270
mov dword [rsp + 0x60], r13d
lea rcx, [rsp + 0x48]
call fcn.140201b40
mov rsi, qword [rsp + 0x48]
add rsi, 0x5f5e100
nop dword [rax + rax]
lea rcx, [rsp + 0x48]
call fcn.140201b40
cmp qword [rax], rsi
jge 0x140225d47
mov edi, 0x186a0
nop dword [rax + rax]
lea rcx, [rsp + 0x130]
call fcn.14025d840
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x63
ja 0x140225c1b
nop dword [rax + rax]
lea rcx, [rsp + 0x130]
call fcn.14025d840
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x140225c00
shr rax, 0x20
lea ebx, [rax + 0x7fffff9c]
xor ebx, 0x80000000
cmove ebx, r12d
lea rcx, [rsp + 0x130]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x140225c6b
nop word [rax + rax]
lea rcx, [rsp + 0x130]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140225c50
shr rcx, 0x20
add ecx, 0x7fffff9c
btc ecx, 0x1f
mov eax, dword [rsp + 0x60]
add eax, ecx
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x130]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x140225cbb
nop
lea rcx, [rsp + 0x130]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140225ca0
shr rcx, 0x20
add ecx, 0x7fffff9c
btc ecx, 0x1f
mov eax, dword [rsp + 0x60]
imul eax, ecx
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x130]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x140225d0b
nop
lea rcx, [rsp + 0x130]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140225cf0
shr rcx, 0x20
add ecx, 0x7fffff9c
btc ecx, 0x1f
mov eax, dword [rsp + 0x60]
sub eax, ecx
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
cdq
idiv ebx
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
cdq
idiv ebx
mov dword [rsp + 0x60], edx
sub rdi, r12
jne 0x140225be0
jmp 0x140225bc0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x60], 0x7e8
movups xmm5, xmmword [0x1402833f0]
movups xmmword [rsp + 0x68], xmm5
movups xmm0, xmmword [0x140283400]
movups xmmword [rsp + 0x78], xmm0
movq xmm12, qword [0x140283410]
movq qword [rsp + 0x88], xmm12
mov r9d, r13d
mov r11d, dword [0x140294090]
cmp r11d, 2
jl 0x140226163
movdqa xmm6, xmmword [0x1402843c0]
movdqa xmm7, xmmword [0x1402843a0]
movdqa xmm9, xmmword [str.ffffiiii]
movdqa xmm10, xmmword [0x1402843d0]
movdqa xmm11, xmmword [str.FFFFFFFF]
movdqa xmm8, xmmword [0x140284260]
movdqa xmm2, xmm8
punpckldq xmm2, xmm8
movdqa xmm1, xmm8
punpckhdq xmm1, xmm8
movdqa xmm4, xmm2
pmuldq xmm4, xmm6
movdqa xmm0, xmm1
pmuldq xmm0, xmm6
shufps xmm4, xmm0, 0xdd
paddd xmm4, xmm8
psrad xmm4, 6
pmuldq xmm2, xmm7
pmuldq xmm1, xmm7
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm8
psrad xmm2, 6
movdqa xmm1, xmm2
psrld xmm1, 0x1f
paddd xmm1, xmm2
pmulld xmm1, xmm10
movdqa xmm0, xmm8
psubd xmm0, xmm1
pshufhw xmm0, xmm0, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm2, xmm4
psrld xmm2, 0x1f
paddd xmm2, xmm4
pmulld xmm2, xmm9
movdqa xmm0, xmm8
psubd xmm0, xmm2
pshufhw xmm0, xmm0, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
paddw xmm3, xmm11
movq xmm1, xmm5
xorps xmm3, xmm1
movq qword [rsp + 0x68], xmm3
movdqa xmm5, xmmword [0x140284280]
movdqa xmm4, xmm5
punpckldq xmm4, xmm5
movdqa xmm1, xmm5
punpckhdq xmm1, xmm5
movdqa xmm2, xmm4
pmuldq xmm2, xmm6
movdqa xmm0, xmm1
pmuldq xmm0, xmm6
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm5
psrad xmm2, 6
pmuldq xmm4, xmm7
pmuldq xmm1, xmm7
shufps xmm4, xmm1, 0xdd
psubd xmm4, xmm5
psrad xmm4, 6
movdqa xmm1, xmm2
psrld xmm1, 0x1f
paddd xmm1, xmm2
pmulld xmm1, xmm9
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshufhw xmm0, xmm0, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm0, xmm4
psrld xmm0, 0x1f
paddd xmm0, xmm4
pmulld xmm0, xmm10
psubd xmm5, xmm0
pshufhw xmm0, xmm5, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
paddw xmm3, xmm11
movq xmm0, qword [rsp + 0x70]
xorps xmm3, xmm0
movq qword [rsp + 0x70], xmm3
movdqa xmm5, xmmword [0x1402842a0]
movdqa xmm2, xmm5
punpckldq xmm2, xmm5
movdqa xmm1, xmm5
punpckhdq xmm1, xmm5
movdqa xmm4, xmm2
pmuldq xmm4, xmm6
movdqa xmm0, xmm1
pmuldq xmm0, xmm6
shufps xmm4, xmm0, 0xdd
paddd xmm4, xmm5
psrad xmm4, 6
pmuldq xmm2, xmm7
pmuldq xmm1, xmm7
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm5
psrad xmm2, 6
movdqa xmm1, xmm2
psrld xmm1, 0x1f
paddd xmm1, xmm2
pmulld xmm1, xmm10
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshufhw xmm0, xmm0, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm0, xmm4
psrld xmm0, 0x1f
paddd xmm0, xmm4
pmulld xmm0, xmm9
psubd xmm5, xmm0
pshufhw xmm0, xmm5, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
paddw xmm3, xmm11
movq xmm0, qword [rsp + 0x78]
xorps xmm3, xmm0
movq qword [rsp + 0x78], xmm3
movdqa xmm5, xmmword [0x1402842c0]
movdqa xmm2, xmm5
punpckldq xmm2, xmm5
movdqa xmm1, xmm5
punpckhdq xmm1, xmm5
movdqa xmm4, xmm2
pmuldq xmm4, xmm6
movdqa xmm0, xmm1
pmuldq xmm0, xmm6
shufps xmm4, xmm0, 0xdd
paddd xmm4, xmm5
psrad xmm4, 6
pmuldq xmm2, xmm7
pmuldq xmm1, xmm7
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm5
psrad xmm2, 6
movdqa xmm1, xmm2
psrld xmm1, 0x1f
paddd xmm1, xmm2
pmulld xmm1, xmm10
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshufhw xmm0, xmm0, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm0, xmm4
psrld xmm0, 0x1f
paddd xmm0, xmm4
pmulld xmm0, xmm9
psubd xmm5, xmm0
pshufhw xmm0, xmm5, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
paddw xmm3, xmm11
movq xmm0, qword [rsp + 0x80]
xorps xmm3, xmm0
movq qword [rsp + 0x80], xmm3
movdqa xmm5, xmmword [0x1402842e0]
movdqa xmm4, xmm5
punpckldq xmm4, xmm5
movdqa xmm1, xmm5
punpckhdq xmm1, xmm5
movdqa xmm2, xmm4
pmuldq xmm2, xmm6
movdqa xmm0, xmm1
pmuldq xmm0, xmm6
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm5
psrad xmm2, 6
pmuldq xmm4, xmm7
pmuldq xmm1, xmm7
shufps xmm4, xmm1, 0xdd
psubd xmm4, xmm5
psrad xmm4, 6
movdqa xmm1, xmm2
psrld xmm1, 0x1f
paddd xmm1, xmm2
pmulld xmm1, xmm9
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshufhw xmm0, xmm0, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm0, xmm4
psrld xmm0, 0x1f
paddd xmm0, xmm4
pmulld xmm0, xmm10
psubd xmm5, xmm0
pshufhw xmm0, xmm5, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
paddw xmm3, xmm11
movq xmm0, xmm12
xorps xmm3, xmm0
movq qword [rsp + 0x88], xmm3
jmp 0x1402261fa
lea r10, [rsp + 0x68]
nop dword [rax + rax]
mov eax, 0x1f7047dd
mul r9d
mov eax, r9d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
movzx eax, ax
imul r8d, eax, 0x39
mov eax, 0x5f5f5f5f
imul r9d
sub edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x33
sub cx, r8w
add cx, 0x23
add cx, r9w
add cx, cx
xor word [r10], cx
inc r9d
lea r10, [r10 + 2]
cmp r9d, 0x14
jl 0x140226170
movdqa xmm11, xmmword [str.FFFFFFFF]
movdqa xmm9, xmmword [str.ffffiiii]
movdqa xmm10, xmmword [0x1402843d0]
movdqa xmm7, xmmword [0x1402843a0]
movdqa xmm6, xmmword [0x1402843c0]
movdqa xmm8, xmmword [0x140284260]
movups xmm0, xmmword [0x140281790]
movups xmmword [rsp + 0xb0], xmm0
movups xmm1, xmmword [0x1402817a0]
movups xmmword [rsp + 0xc0], xmm1
movups xmm0, xmmword [0x1402817b0]
movups xmmword [rsp + 0xd0], xmm0
movups xmm1, xmmword [0x1402817c0]
movups xmmword [rsp + 0xe0], xmm1
movups xmm0, xmmword [0x1402817d0]
movups xmmword [rsp + 0xf0], xmm0
movsd xmm0, qword [0x1402817e0]
movsd qword [rsp + 0x100], xmm0
mov eax, dword [0x1402817e8]
mov dword [rsp + 0x108], eax
movzx eax, word [0x1402817ec]
mov word [rsp + 0x10c], ax
mov r9d, r13d
cmp r11d, 2
jl 0x140226427
lea rcx, [rsp + 0xb0]
nop word [rax + rax]
movd xmm5, r9d
pshufd xmm5, xmm5, 0
paddd xmm5, xmm8
movdqa xmm2, xmm5
punpckldq xmm2, xmm5
movdqa xmm1, xmm5
punpckhdq xmm1, xmm5
movdqa xmm4, xmm2
pmuldq xmm4, xmm6
movdqa xmm0, xmm1
pmuldq xmm0, xmm6
shufps xmm4, xmm0, 0xdd
paddd xmm4, xmm5
psrad xmm4, 6
pmuldq xmm2, xmm7
pmuldq xmm1, xmm7
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm5
psrad xmm2, 6
movdqa xmm1, xmm2
psrld xmm1, 0x1f
paddd xmm1, xmm2
pmulld xmm1, xmm10
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshufhw xmm0, xmm0, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm0, xmm4
psrld xmm0, 0x1f
paddd xmm0, xmm4
pmulld xmm0, xmm9
psubd xmm5, xmm0
pshufhw xmm0, xmm5, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
movq xmm0, xmm11
paddw xmm3, xmm0
movq xmm0, qword [rcx]
xorps xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [r9 + 4]
movd xmm5, eax
pshufd xmm5, xmm5, 0
paddd xmm5, xmm8
movdqa xmm2, xmm5
punpckldq xmm2, xmm5
movdqa xmm1, xmm5
punpckhdq xmm1, xmm5
movdqa xmm4, xmm2
pmuldq xmm4, xmm6
movdqa xmm0, xmm1
pmuldq xmm0, xmm6
shufps xmm4, xmm0, 0xdd
paddd xmm4, xmm5
psrad xmm4, 6
pmuldq xmm2, xmm7
pmuldq xmm1, xmm7
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm5
psrad xmm2, 6
movdqa xmm1, xmm2
psrld xmm1, 0x1f
paddd xmm1, xmm2
pmulld xmm1, xmm10
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshufhw xmm0, xmm0, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm0, xmm4
psrld xmm0, 0x1f
paddd xmm0, xmm4
pmulld xmm0, xmm9
psubd xmm5, xmm0
pshufhw xmm0, xmm5, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
movq xmm0, xmm11
paddw xmm3, xmm0
movq xmm0, qword [rcx + 8]
xorps xmm3, xmm0
movq qword [rcx + 8], xmm3
add r9d, 8
lea rcx, [rcx + 0x10]
cmp r9d, 0x28
jl 0x140226290
cmp r9d, 0x2f
jge 0x140226497
movsxd rax, r9d
lea r10, [rsp + 0xb0]
lea r10, [r10 + rax*2]
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r9d
add edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul r8d, eax, 0x39
mov eax, 0x5f5f5f5f
imul r9d
sub edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x33
sub cx, r8w
add cx, 0x23
add cx, r9w
add cx, cx
xor word [r10], cx
inc r9d
lea r10, [r10 + 2]
cmp r9d, 0x2f
jl 0x140226440
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 2
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0xb0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
lea rcx, [rsp + 0x1568]
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], rcx
mov rax, qword [rcx]
xor rax, r14
mov qword [rsp + 0x68], rax
mov qword [rcx], r13
xor eax, eax
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0xf0], xmm0
movups xmmword [rsp + 0x100], xmm0
movups xmmword [rsp + 0x110], xmm0
mov qword [rsp + 0x120], rax
lea rcx, [rsp + 0xb0]
call fcn.140249bc0
nop
lea r9, [rsp + 0x130]
cmp word [rsp + 0x130], 0
je 0x14022656b
nop
add r9, 2
cmp word [r9], 0
jne 0x140226560
lea r8, [rsp + 0x130]
mov rdx, r15
lea rcx, [rsp + 0xb0]
call fcn.14024be70
nop
lea rax, vtable.std::wstring_convert_class_std::codecvt_utf8_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.0
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0xf0]
call fcn.14024c160
lea rcx, [rsp + 0xd0]
call fcn.14024c260
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x1402265d1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x1402265d1
mov rax, qword [rax]
mov edx, r12d
call qword [rax]
nop
mov rcx, qword [rsp + 0x90]
xor rcx, r14
mov qword [rsp + 0x90], rcx
lea rax, [rsp + 0x1568]
mov qword [rax], rcx
mov rax, r15
jmp 0x140226616
mov rcx, qword [rsp + 0x14c0]
xor rcx, rsp
call fcn.140271640
lea r11, [rsp + 0x1540]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret