Function at 0x140226700
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, 0x1d30
call fcn.14027e170
sub rsp, rax
movaps xmmword [rsp + 0x1d20], xmm6
movaps xmmword [rsp + 0x1d10], xmm7
movaps xmmword [rsp + 0x1d00], xmm8
movaps xmmword [rsp + 0x1cf0], xmm9
movaps xmmword [rsp + 0x1ce0], xmm10
movaps xmmword [rsp + 0x1cd0], xmm11
movaps xmmword [rsp + 0x1cc0], xmm12
movaps xmmword [rsp + 0x1cb0], xmm13
mov rax, qword [0x1402bd028]
xor rax, rsp
mov qword [rsp + 0x1ca0], rax
mov r15, rcx
mov qword [rsp + 0x50], rcx
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x1d58]
movabs rdx, 0xff00ff00ff00ff00
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rcx
mov rax, qword [rcx]
xor rax, rdx
mov qword [rsp + 0x60], rax
mov qword [rcx], rdi
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x14a4], 0xffffffff
mov dword [rsp + 0x124], eax
mov r13d, 1
mov ecx, r13d
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x124], edx
inc rcx
cmp rcx, 0x270
jb 0x1402267e0
mov dword [rsp + 0x120], 0x270
mov dword [rsp + 0x40], edi
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x14022682f
imul rax, rax, 0x64
jmp 0x14022684a
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
lea r14, [rax + 0x5f5e100]
mov r12d, 0x80000000
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140226875
imul rax, rax, 0x64
jmp 0x140226890
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, r14
jge 0x140226a53
mov esi, 0x186a0
nop
lea rcx, [rsp + 0x120]
call fcn.140265db0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x63
ja 0x1402268db
nop dword [rax + rax]
lea rcx, [rsp + 0x120]
call fcn.140265db0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x1402268c0
shr rax, 0x20
lea ecx, [rax + 0x7fffff9c]
lea eax, [rcx + r12]
lea ebx, [rcx - 0x80000000]
cmp ecx, r12d
cmovae ebx, eax
test ebx, ebx
cmove ebx, r13d
lea rcx, [rsp + 0x120]
call fcn.140265db0
mov ecx, eax
imul rax, rcx, 0xc9
mov edi, ebx
cmp eax, 0xc9
jae 0x14022693b
cmp eax, 0x64
jae 0x14022693b
nop
lea rcx, [rsp + 0x120]
call fcn.140265db0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x140226920
shr rax, 0x20
lea ecx, [rax + 0x7fffff9c]
lea eax, [rcx + r12]
lea edx, [rcx - 0x80000000]
cmp ecx, r12d
cmovae edx, eax
mov eax, dword [rsp + 0x40]
add edx, eax
mov dword [rsp + 0x40], edx
lea rcx, [rsp + 0x120]
call fcn.140265db0
mov ecx, eax
imul rax, rcx, 0xc9
mov ebx, edi
cmp eax, 0xc9
jae 0x14022699e
cmp eax, 0x64
jae 0x14022699e
lea rcx, [rsp + 0x120]
call fcn.140265db0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x140226983
shr rax, 0x20
lea ecx, [rax + 0x7fffff9c]
lea eax, [rcx + r12]
lea edx, [rcx - 0x80000000]
cmp ecx, r12d
cmovae edx, eax
mov eax, dword [rsp + 0x40]
imul edx, eax
mov dword [rsp + 0x40], edx
lea rcx, [rsp + 0x120]
call fcn.140265db0
mov ecx, eax
imul rax, rcx, 0xc9
mov edi, ebx
cmp eax, 0xc9
jae 0x140226a0b
cmp eax, 0x64
jae 0x140226a0b
nop word [rax + rax]
lea rcx, [rsp + 0x120]
call fcn.140265db0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x1402269f0
shr rax, 0x20
lea edx, [rax + 0x7fffff9c]
lea eax, [rdx + r12]
lea ecx, [rdx - 0x80000000]
cmp edx, r12d
cmovae ecx, eax
mov eax, dword [rsp + 0x40]
sub eax, ecx
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
cdq
idiv edi
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
cdq
idiv edi
mov dword [rsp + 0x40], edx
sub rsi, r13
jne 0x1402268a0
jmp 0x140226857
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x5c], 0x7e8
movups xmm0, xmmword [0x1402aa158]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [0x1402aa168]
movups xmmword [rsp + 0x88], xmm1
movsd xmm0, qword [0x1402aa178]
movsd qword [rsp + 0x98], xmm0
xor edi, edi
mov r9d, edi
mov esi, dword [0x1402bd008]
lea ebx, [rdi + 6]
lea edi, [rbx + 0x19]
cmp esi, 2
jl 0x140226c91
movdqa xmm10, xmmword [0x1402ad0a0]
movdqa xmm6, xmmword [0x1402ad190]
movd xmm7, ebx
movdqa xmm8, xmmword [0x1402ad180]
movdqa xmm11, xmmword [0x1402ad0e0]
movd xmm9, edi
movdqa xmm12, xmmword [0x1402ad1a0]
movdqa xmm13, xmmword [str.AAAAAAAA]
lea rcx, [rsp + 0x78]
nop dword [rax + rax]
movd xmm5, r9d
pshufd xmm5, xmm5, 0
paddd xmm5, xmm10
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, xmm7
pmuldq xmm2, xmm8
pmuldq xmm1, xmm8
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm5
psrad xmm2, xmm7
movdqa xmm1, xmm2
psrld xmm1, xmm9
paddd xmm1, xmm2
pmulld xmm1, xmm12
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm2, xmm4
psrld xmm2, xmm9
paddd xmm2, xmm4
pmulld xmm2, xmm11
psubd xmm5, xmm2
pshuflw xmm0, xmm5, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
movq xmm0, xmm13
paddw xmm3, xmm0
movq xmm0, qword [rcx]
pxor xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [r9 + 4]
movd xmm5, eax
pshufd xmm5, xmm5, 0
paddd xmm5, xmm10
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, xmm7
pmuldq xmm2, xmm8
pmuldq xmm1, xmm8
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm5
psrad xmm2, xmm7
movdqa xmm1, xmm2
psrld xmm1, xmm9
paddd xmm1, xmm2
pmulld xmm1, xmm12
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm2, xmm4
psrld xmm2, xmm9
paddd xmm2, xmm4
pmulld xmm2, xmm11
psubd xmm5, xmm2
pshuflw xmm0, xmm5, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
movq xmm0, xmm13
paddw xmm3, xmm0
movq xmm0, qword [rcx + 8]
pxor xmm3, xmm0
movq qword [rcx + 8], xmm3
add r9d, 8
lea rcx, [rcx + 0x10]
cmp r9d, 0x10
jl 0x140226af0
cmp r9d, 0x14
jl 0x140226c91
mov r11d, 0xff8e
jmp 0x140226d0b
movsxd rax, r9d
lea r10, [rsp + 0x78]
lea r10, [r10 + rax*2]
mov r11d, 0xff8e
nop dword [rax]
nop word [rax + rax]
mov eax, 0x9c09c09d
imul r9d
add edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul r8d, eax, 0x69
mov eax, 0x8fb823ef
imul r9d
add edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx ecx, dx
imul ecx, r11d
sub cx, r8w
movzx eax, r9w
add ax, ax
add cx, 0x41
add cx, ax
xor word [r10], cx
inc r9d
lea r10, [r10 + 2]
cmp r9d, 0x14
jl 0x140226cb0
movups xmm0, xmmword [0x1402aaf60]
movups xmmword [rsp + 0xa0], xmm0
movups xmm1, xmmword [0x1402aaf70]
movups xmmword [rsp + 0xb0], xmm1
movups xmm0, xmmword [str.5_58]
movups xmmword [rsp + 0xc0], xmm0
movups xmm1, xmmword [0x1402aaf90]
movups xmmword [rsp + 0xd0], xmm1
movups xmm0, xmmword [0x1402aafa0]
movups xmmword [rsp + 0xe0], xmm0
movsd xmm0, qword [0x1402aafb0]
movsd qword [rsp + 0xf0], xmm0
mov eax, dword [0x1402aafb8]
mov dword [rsp + 0xf8], eax
movzx eax, word [0x1402aafbc]
mov word [rsp + 0xfc], ax
xor r14d, r14d
mov r9d, r14d
cmp esi, 2
jl 0x140226f79
movdqa xmm10, xmmword [0x1402ad0a0]
movdqa xmm6, xmmword [0x1402ad190]
movd xmm7, ebx
movdqa xmm8, xmmword [0x1402ad180]
movdqa xmm11, xmmword [0x1402ad0e0]
movd xmm9, edi
movdqa xmm12, xmmword [0x1402ad1a0]
movdqa xmm13, xmmword [str.AAAAAAAA]
lea rcx, [rsp + 0xa0]
nop dword [rax + rax]
movd xmm5, r9d
pshufd xmm5, xmm5, 0
paddd xmm5, xmm10
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, xmm7
pmuldq xmm4, xmm8
pmuldq xmm1, xmm8
shufps xmm4, xmm1, 0xdd
psubd xmm4, xmm5
psrad xmm4, xmm7
movdqa xmm1, xmm2
psrld xmm1, xmm9
paddd xmm1, xmm2
pmulld xmm1, xmm11
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm2, xmm4
psrld xmm2, xmm9
paddd xmm2, xmm4
pmulld xmm2, xmm12
psubd xmm5, xmm2
pshuflw xmm0, xmm5, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
movq xmm0, xmm13
paddw xmm3, xmm0
movq xmm0, qword [rcx]
pxor xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [r9 + 4]
movd xmm5, eax
pshufd xmm5, xmm5, 0
paddd xmm5, xmm10
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, xmm7
pmuldq xmm2, xmm8
pmuldq xmm1, xmm8
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm5
psrad xmm2, xmm7
movdqa xmm1, xmm2
psrld xmm1, xmm9
paddd xmm1, xmm2
pmulld xmm1, xmm12
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm2, xmm4
psrld xmm2, xmm9
paddd xmm2, xmm4
pmulld xmm2, xmm11
psubd xmm5, xmm2
pshuflw xmm0, xmm5, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
movq xmm0, xmm13
paddw xmm3, xmm0
movq xmm0, qword [rcx + 8]
pxor xmm3, xmm0
movq qword [rcx + 8], xmm3
add r9d, 8
lea rcx, [rcx + 0x10]
cmp r9d, 0x28
jl 0x140226de0
cmp r9d, 0x2f
jge 0x140226fee
movsxd rax, r9d
lea r10, [rsp + 0xa0]
lea r10, [r10 + rax*2]
nop dword [rax + rax]
mov eax, 0x9c09c09d
imul r9d
add edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul r8d, eax, 0x69
mov eax, 0x8fb823ef
imul r9d
add edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, r11w
movzx ecx, dx
imul ecx, eax
sub cx, r8w
movzx eax, r9w
add ax, ax
add cx, 0x41
add cx, ax
xor word [r10], cx
inc r9d
lea r10, [r10 + 2]
cmp r9d, 0x2f
jl 0x140226f90
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x14b0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov r9d, 2
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0xa0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
lea rdi, [rsp + 0x1d58]
movabs rsi, 0xff00ff00ff00ff00
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rdi
mov rbx, qword [rdi]
xor rbx, rsi
mov qword [rsp + 0x78], rbx
mov qword [rdi], r14
xor eax, eax
movups xmmword [rsp + 0xa0], xmm0
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
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0xa0]
call fcn.140255ff0
nop
lea r9, [rsp + 0x14b0]
cmp word [rsp + 0x14b0], 0
je 0x1402270d0
add r9, 2
cmp word [r9], 0
jne 0x1402270c5
lea r8, [rsp + 0x14b0]
mov rdx, r15
lea rcx, [rsp + 0xa0]
call fcn.140258cb0
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 + 0xa0], rax
lea rcx, [rsp + 0xe0]
call fcn.140258f70
lea rcx, [rsp + 0xc0]
call fcn.140259200
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x140227136
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x140227136
mov rax, qword [rax]
mov edx, r13d
call qword [rax]
nop
xor rbx, rsi
mov qword [rdi], rbx
mov rdx, qword [rsp + 0x60]
xor rdx, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdx
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rdx
mov rax, r15
jmp 0x14022716f
mov rcx, qword [rsp + 0x1ca0]
xor rcx, rsp
call fcn.14027cdd0
lea r11, [rsp + 0x1d30]
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]
movaps xmm13, xmmword [r11 - 0x80]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret