Function at 0x140211f30
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.14025eb00
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 [0x140280040]
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 0x140212010
mov dword [rsp + 0x130], 0x270
mov dword [rsp + 0x60], r13d
lea rcx, [rsp + 0x48]
call fcn.1401f3510
mov rsi, qword [rsp + 0x48]
add rsi, 0x5f5e100
nop dword [rax + rax]
lea rcx, [rsp + 0x48]
call fcn.1401f3510
cmp qword [rax], rsi
jge 0x1402121e7
mov edi, 0x186a0
nop dword [rax + rax]
lea rcx, [rsp + 0x130]
call fcn.140249d50
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x63
ja 0x1402120bb
nop dword [rax + rax]
lea rcx, [rsp + 0x130]
call fcn.140249d50
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x1402120a0
shr rax, 0x20
lea ebx, [rax + 0x7fffff9c]
xor ebx, 0x80000000
cmove ebx, r12d
lea rcx, [rsp + 0x130]
call fcn.140249d50
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14021210b
nop word [rax + rax]
lea rcx, [rsp + 0x130]
call fcn.140249d50
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x1402120f0
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.140249d50
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14021215b
nop
lea rcx, [rsp + 0x130]
call fcn.140249d50
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140212140
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.140249d50
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x1402121ab
nop
lea rcx, [rsp + 0x130]
call fcn.140249d50
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140212190
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 0x140212080
jmp 0x140212060
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x60], 0x7e8
movups xmm5, xmmword [str.kOP_649]
movups xmmword [rsp + 0x68], xmm5
movups xmm0, xmmword [0x14026db10]
movups xmmword [rsp + 0x78], xmm0
movq xmm12, qword [0x14026db20]
movq qword [rsp + 0x88], xmm12
mov r9d, r13d
mov r11d, dword [0x140280090]
cmp r11d, 2
jl 0x1402125ee
movdqa xmm6, xmmword [0x1402702f0]
movdqa xmm7, xmmword [0x140270300]
movdqa xmm9, xmmword [str.ffffkkkk]
movdqa xmm10, xmmword [0x140270310]
movdqa xmm11, xmmword [str.________]
movdqa xmm8, xmmword [0x1402701a0]
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
psrad xmm2, 4
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 [0x1402701c0]
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
psrad xmm2, 4
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 + 0x70]
xorps xmm3, xmm0
movq qword [rsp + 0x70], xmm3
movdqa xmm5, xmmword [0x1402701e0]
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
psrad xmm2, 4
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 [0x140270200]
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
psrad xmm2, 4
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 [0x140270220]
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
psrad xmm2, 4
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, xmm12
xorps xmm3, xmm0
movq qword [rsp + 0x88], xmm3
jmp 0x140212681
lea r10, [rsp + 0x68]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x22b63cbf
mul r9d
shr edx, 4
movzx eax, dx
imul r8d, eax, 0x3b
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, r9w
add cx, cx
add cx, 0x3b
xor word [r10], cx
inc r9d
lea r10, [r10 + 2]
cmp r9d, 0x14
jl 0x140212600
movdqa xmm11, xmmword [str.________]
movdqa xmm9, xmmword [str.ffffkkkk]
movdqa xmm10, xmmword [0x140270310]
movdqa xmm7, xmmword [0x140270300]
movdqa xmm6, xmmword [0x1402702f0]
movdqa xmm8, xmmword [0x1402701a0]
movups xmm0, xmmword [0x14026d5d0]
movups xmmword [rsp + 0xb0], xmm0
movups xmm1, xmmword [0x14026d5e0]
movups xmmword [rsp + 0xc0], xmm1
movups xmm0, xmmword [0x14026d5f0]
movups xmmword [rsp + 0xd0], xmm0
movups xmm1, xmmword [0x14026d600]
movups xmmword [rsp + 0xe0], xmm1
movups xmm0, xmmword [0x14026d610]
movups xmmword [rsp + 0xf0], xmm0
movsd xmm0, qword [0x14026d620]
movsd qword [rsp + 0x100], xmm0
mov eax, dword [0x14026d628]
mov dword [rsp + 0x108], eax
movzx eax, word [0x14026d62c]
mov word [rsp + 0x10c], ax
mov r9d, r13d
cmp r11d, 2
jl 0x14021289f
lea rcx, [rsp + 0xb0]
nop
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
psrad xmm2, 4
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
psrad xmm2, 4
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 0x140212710
cmp r9d, 0x2f
jge 0x140212904
movsxd rax, r9d
lea r10, [rsp + 0xb0]
lea r10, [r10 + rax*2]
nop
mov eax, 0x22b63cbf
imul r9d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul r8d, eax, 0x3b
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, r9w
add cx, cx
add cx, 0x3b
xor word [r10], cx
inc r9d
lea r10, [r10 + 2]
cmp r9d, 0x2f
jl 0x1402128b0
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.140236060
nop
lea r9, [rsp + 0x130]
cmp word [rsp + 0x130], 0
je 0x1402129db
nop dword [rax + rax]
add r9, 2
cmp word [r9], 0
jne 0x1402129d0
lea r8, [rsp + 0x130]
mov rdx, r15
lea rcx, [rsp + 0xb0]
call fcn.140238310
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.140238600
lea rcx, [rsp + 0xd0]
call fcn.140238700
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x140212a41
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x140212a41
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 0x140212a86
mov rcx, qword [rsp + 0x14c0]
xor rcx, rsp
call fcn.14025d7c0
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