Function at 0x14020f970
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.14025cd40
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 [0x14027e040]
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 rdi, [rsp + 0x1568]
mov qword [rsp + 0x58], rdi
movabs r14, 0xff00ff00ff00ff00
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], rdi
mov rax, qword [rdi]
xor rax, r14
mov qword [rsp + 0x90], rax
mov qword [rdi], 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 0x14020fa50
mov dword [rsp + 0x130], 0x270
mov dword [rsp + 0x60], r13d
lea rcx, [rsp + 0x48]
call fcn.1401f17b0
mov rsi, qword [rsp + 0x48]
add rsi, 0x5f5e100
nop dword [rax + rax]
lea rcx, [rsp + 0x48]
call fcn.1401f17b0
cmp qword [rax], rsi
jge 0x14020fc27
mov edi, 0x186a0
nop dword [rax + rax]
lea rcx, [rsp + 0x130]
call fcn.140247dd0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x63
ja 0x14020fafb
nop dword [rax + rax]
lea rcx, [rsp + 0x130]
call fcn.140247dd0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x14020fae0
shr rax, 0x20
lea ebx, [rax + 0x7fffff9c]
xor ebx, 0x80000000
cmove ebx, r12d
lea rcx, [rsp + 0x130]
call fcn.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14020fb4b
nop word [rax + rax]
lea rcx, [rsp + 0x130]
call fcn.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x14020fb30
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.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14020fb9b
nop
lea rcx, [rsp + 0x130]
call fcn.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x14020fb80
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.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14020fbeb
nop
lea rcx, [rsp + 0x130]
call fcn.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x14020fbd0
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 0x14020fac0
jmp 0x14020faa0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x60], 0x7e8
movups xmm5, xmmword [str.n2__9_]
movups xmmword [rsp + 0x68], xmm5
movups xmm0, xmmword [0x14026aba0]
movups xmmword [rsp + 0x78], xmm0
movq xmm12, qword [0x14026abb0]
movq qword [rsp + 0x88], xmm12
mov r9d, r13d
mov ebx, dword [0x14027e090]
cmp ebx, 2
jl 0x14021001d
movdqa xmm6, xmmword [0x14026e2d0]
movdqa xmm7, xmmword [0x14026e2f0]
movdqa xmm9, xmmword [str.kkkkmmmm]
movdqa xmm10, xmmword [0x14026e300]
movdqa xmm11, xmmword [str.________]
movdqa xmm8, xmmword [0x14026e190]
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
psrad xmm4, 5
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 [0x14026e1b0]
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
psrad xmm4, 5
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 [0x14026e1d0]
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
psrad xmm4, 5
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 [0x14026e1f0]
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
psrad xmm4, 5
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 [0x14026e210]
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
psrad xmm4, 5
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
mov r11d, 0xff8a
jmp 0x1402100b1
lea r10, [rsp + 0x68]
mov r11d, 0xff8a
nop dword [rax + rax]
mov eax, 0x323e34a3
mul r9d
mov eax, r9d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
movzx eax, ax
imul ecx, eax, 0x6b
mov eax, 0x22b63cbf
mul r9d
shr edx, 4
movzx r8d, dx
imul r8d, r11d
sub r8w, cx
lea eax, [r9 + 0x1f]
add ax, ax
add r8w, ax
xor word [r10], r8w
inc r9d
lea r10, [r10 + 2]
cmp r9d, 0x14
jl 0x140210030
movdqa xmm11, xmmword [str.________]
movdqa xmm9, xmmword [str.kkkkmmmm]
movdqa xmm10, xmmword [0x14026e300]
movdqa xmm7, xmmword [0x14026e2f0]
movdqa xmm6, xmmword [0x14026e2d0]
movdqa xmm8, xmmword [0x14026e190]
movups xmm0, xmmword [0x14026abf0]
movups xmmword [rsp + 0xb0], xmm0
movups xmm1, xmmword [0x14026ac00]
movups xmmword [rsp + 0xc0], xmm1
movups xmm0, xmmword [0x14026ac10]
movups xmmword [rsp + 0xd0], xmm0
movups xmm1, xmmword [0x14026ac20]
movups xmmword [rsp + 0xe0], xmm1
movups xmm0, xmmword [0x14026ac30]
movups xmmword [rsp + 0xf0], xmm0
movsd xmm0, qword [0x14026ac40]
movsd qword [rsp + 0x100], xmm0
mov eax, dword [0x14026ac48]
mov dword [rsp + 0x108], eax
movzx eax, word [0x14026ac4c]
mov word [rsp + 0x10c], ax
mov r9d, r13d
cmp ebx, 2
jl 0x1402102c7
lea rcx, [rsp + 0xb0]
nop dword [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
psrad xmm4, 5
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
psrad xmm4, 5
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 0x140210140
cmp r9d, 0x2f
jge 0x140210334
movsxd rax, r9d
lea r10, [rsp + 0xb0]
lea r10, [r10 + rax*2]
nop word [rax + rax]
mov eax, 0x4c8f8d29
imul r9d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul r8d, eax, 0x6b
mov eax, 0x22b63cbf
imul r9d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, r11w
movzx ecx, dx
imul ecx, eax
sub cx, r8w
lea eax, [r9 + 0x1f]
add ax, ax
add cx, ax
xor word [r10], cx
inc r9d
lea r10, [r10 + 2]
cmp r9d, 0x2f
jl 0x1402102e0
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.1402340d0
nop
lea r9, [rsp + 0x130]
cmp word [rsp + 0x130], 0
je 0x14021040b
nop dword [rax + rax]
add r9, 2
cmp word [r9], 0
jne 0x140210400
lea r8, [rsp + 0x130]
mov rdx, r15
lea rcx, [rsp + 0xb0]
call fcn.140236380
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.140236670
lea rcx, [rsp + 0xd0]
call fcn.140236770
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x140210471
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x140210471
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 0x1402104b6
mov rcx, qword [rsp + 0x14c0]
xor rcx, rsp
call fcn.14025ba00
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