Function at 0x140228570
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1550
call fcn.14027e170
sub rsp, rax
movaps xmmword [rsp + 0x1540], xmm6
movaps xmmword [rsp + 0x1530], xmm7
movaps xmmword [rsp + 0x1520], xmm8
movaps xmmword [rsp + 0x1510], xmm9
movaps xmmword [rsp + 0x1500], xmm10
movaps xmmword [rsp + 0x14f0], xmm11
mov rax, qword [0x1402bd028]
xor rax, rsp
mov qword [rsp + 0x14e8], rax
mov r15, rcx
mov qword [rsp + 0x80], rcx
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x110], xmm0
lea rdx, [rsp + 0x1578]
movabs rcx, 0xff00ff00ff00ff00
mov qword [rsp + 0x118], rcx
mov qword [rsp + 0x120], rdx
mov rax, qword [rdx]
xor rax, rcx
mov qword [rsp + 0x110], rax
mov qword [rdx], rdi
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x14d4], 0xffffffff
mov dword [rsp + 0x154], eax
mov r13d, 1
mov ecx, r13d
nop dword [rax]
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 + 0x154], edx
inc rcx
cmp rcx, 0x270
jb 0x140228650
mov dword [rsp + 0x150], 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 0x14022869f
imul rax, rax, 0x64
jmp 0x1402286ba
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 0x1402286e5
imul rax, rax, 0x64
jmp 0x140228700
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, r14
jge 0x1402288c3
mov esi, 0x186a0
nop
lea rcx, [rsp + 0x150]
call fcn.140265db0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x63
ja 0x14022874b
nop dword [rax + rax]
lea rcx, [rsp + 0x150]
call fcn.140265db0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x140228730
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 + 0x150]
call fcn.140265db0
mov ecx, eax
imul rax, rcx, 0xc9
mov edi, ebx
cmp eax, 0xc9
jae 0x1402287ab
cmp eax, 0x64
jae 0x1402287ab
nop
lea rcx, [rsp + 0x150]
call fcn.140265db0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x140228790
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 + 0x150]
call fcn.140265db0
mov ecx, eax
imul rax, rcx, 0xc9
mov ebx, edi
cmp eax, 0xc9
jae 0x14022880e
cmp eax, 0x64
jae 0x14022880e
lea rcx, [rsp + 0x150]
call fcn.140265db0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x1402287f3
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 + 0x150]
call fcn.140265db0
mov ecx, eax
imul rax, rcx, 0xc9
mov edi, ebx
cmp eax, 0xc9
jae 0x14022887b
cmp eax, 0x64
jae 0x14022887b
nop word [rax + rax]
lea rcx, [rsp + 0x150]
call fcn.140265db0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x140228860
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 0x140228710
jmp 0x1402286c7
mov eax, dword [rsp + 0x40]
movsd xmm0, qword [str._:6__9_____WqpwwrM]
movsd qword [rsp + 0x70], xmm0
mov eax, dword [0x1402aa4b8]
mov dword [rsp + 0x78], eax
xor edi, edi
cmp byte [0x1402aa4bb], dil
je 0x140228b47
mov r9d, edi
cmp dword [0x1402bd008], 2
jl 0x140228ada
movdqa xmm6, xmmword [0x1402ad190]
mov eax, 6
movd xmm8, eax
movdqa xmm7, xmmword [0x1402ad180]
mov eax, 0x1f
movd xmm10, eax
movdqa xmm5, xmmword [0x1402ad0a0]
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, xmm8
pmuldq xmm2, xmm7
pmuldq xmm1, xmm7
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm5
psrad xmm2, xmm8
movdqa xmm1, xmm2
psrld xmm1, xmm10
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x1402ad1a0]
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
pand xmm3, xmmword [0x1402ad150]
packuswb xmm3, xmm3
movdqa xmm0, xmm4
psrld xmm0, xmm10
paddd xmm0, xmm4
pmulld xmm0, xmmword [0x1402ad0e0]
psubd xmm5, xmm0
pshuflw xmm0, xmm5, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1402ad150]
packuswb xmm2, xmm2
paddb xmm3, xmm2
paddb xmm3, xmmword [str.AAAAAAAAAAAAAAAA]
movd xmm0, dword [str._:6__9_____WqpwwrM]
pxor xmm3, xmm0
movd dword [rsp + 0x70], xmm3
movdqa xmm5, xmmword [0x1402ad0c0]
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, xmm8
pmuldq xmm2, xmm7
pmuldq xmm1, xmm7
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm5
psrad xmm2, xmm8
movdqa xmm1, xmm2
psrld xmm1, xmm10
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x1402ad1a0]
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
pand xmm3, xmmword [0x1402ad150]
packuswb xmm3, xmm3
movdqa xmm0, xmm4
psrld xmm0, xmm10
paddd xmm0, xmm4
pmulld xmm0, xmmword [0x1402ad0e0]
psubd xmm5, xmm0
pshuflw xmm0, xmm5, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1402ad150]
packuswb xmm2, xmm2
paddb xmm3, xmm2
paddb xmm3, xmmword [str.AAAAAAAAAAAAAAAA]
movd xmm0, dword [rsp + 0x74]
pxor xmm3, xmm0
movd dword [rsp + 0x74], xmm3
mov r9d, 8
movsxd rax, r9d
lea r10, [rsp + 0x70]
add r10, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r9d
add edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx r8d, r9b
sub r8b, cl
add r8b, r8b
mov eax, 0x9c09c09d
imul r9d
add edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x69
sub r8b, cl
add r8b, 0x41
xor byte [r10], r8b
inc r9d
lea r10, [r10 + 1]
cmp r9d, 0xc
jl 0x140228af0
xorps xmm0, xmm0
movups xmmword [rsp + 0xb0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xc0], xmm1
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140228b70
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xb0]
call fcn.14021d330
nop
movsd xmm0, qword [0x1402aa668]
movsd qword [rsp + 0x58], xmm0
movzx eax, word [0x1402aa670]
mov word [rsp + 0x60], ax
movsd xmm0, qword [str._717:qb_Q]
movzx eax, byte [0x1402a97e0]
movsd qword [rsp + 0x48], xmm0
cmp byte [0x1402aa671], 0
je 0x140228c00
mov byte [rsp + 0x58], 0x2f
xor byte [rsp + 0x59], 0x43
xor byte [rsp + 0x5a], 0x45
xor byte [rsp + 0x5b], 0x47
xor byte [rsp + 0x5c], 0x49
xor byte [rsp + 0x5d], 0x4b
xor byte [rsp + 0x5e], 0x4d
xor byte [rsp + 0x5f], 0x4f
xor byte [rsp + 0x60], 0x51
xor byte [rsp + 0x61], 0x53
nop word [rax + rax]
mov byte [rsp + 0x48], 0x68
xor byte [rsp + 0x49], 0x43
xor byte [rsp + 0x4a], 0x45
xor byte [rsp + 0x4b], 0x47
xor byte [rsp + 0x4c], 0x49
xor byte [rsp + 0x4d], 0x4b
xor byte [rsp + 0x4e], 0x4d
xor byte [rsp + 0x4f], 0x4f
xor al, 0x51
mov byte [rsp + 0x50], al
lea rax, [rsp + 0x48]
mov rcx, rbx
inc rcx
cmp byte [rax + rcx], 0
jne 0x140228c36
mov rdx, qword [0x1402c0470]
movabs rax, 0x7fffffffffffffff
sub rax, rdx
cmp rax, rcx
jb 0x140228e78
lea rax, [0x1402c0460]
cmp qword [0x1402c0478], 0x10
cmovae rax, qword [0x1402c0460]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x48]
lea rcx, [rsp + 0xd0]
call fcn.14025e2d0
nop
lea rax, [rsp + 0x58]
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140228ca0
mov r8, rbx
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xd0]
call fcn.140257640
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xa0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x90], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xa0], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xf0]
call fcn.14021b5f0
nop
lea r8, [rsp + 0xb0]
mov rdx, rax
lea rcx, [rsp + 0x128]
call fcn.14020c440
nop
lea rcx, [rsp + 0xf0]
call fcn.140259200
nop
lea rcx, [rsp + 0x90]
call fcn.140259200
nop
lea rcx, [rsp + 0xd0]
call fcn.140259200
nop
lea rcx, [rsp + 0xb0]
call fcn.140259200
lea rdx, [rsp + 0x128]
cmp qword [rsp + 0x140], 0x10
cmovae rdx, qword [rsp + 0x128]
mov r8, qword [rsp + 0x138]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140261540
lea rdx, [0x14025b0f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
movups xmm0, xmmword [rsp + 0x128]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rsp + 0x138]
movups xmmword [r15 + 0x10], xmm1
mov qword [rsp + 0x138], rdi
mov qword [rsp + 0x140], 0xf
mov byte [rsp + 0x128], 0
lea rcx, [rsp + 0x128]
call fcn.140259200
nop
mov rdx, qword [rsp + 0x110]
xor rdx, qword [rsp + 0x118]
mov qword [rsp + 0x110], rdx
mov rcx, qword [rsp + 0x120]
mov qword [rcx], rdx
mov rax, r15
jmp 0x140228e2d
mov rcx, qword [rsp + 0x14e8]
xor rcx, rsp
call fcn.14027cdd0
lea r11, [rsp + 0x1550]
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]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.1402029d0
nop
int3