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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27a8]
mov eax, 0x28a8
call fcn.180082f50
sub rsp, rax
xor edi, edi
mov eax, edi
mov dword [rbp + 0x27f0], eax
mov dword [rbp + 0x27f8], eax
lea rcx, [rbp + 0x2800]
call fcn.180002b30
movabs r8, 0x7fffffff4d2fa1ff
mov rax, qword [rbp + 0x2800]
cmp rax, r8
je 0x180080346
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x180080346
mov ecx, 0xb2d05e00
add rcx, rax
mov qword [rbp + 0x2800], rcx
jmp 0x180080357
movabs rax, 0x7fffffffffffffff
mov qword [rbp + 0x2800], rax
lea rcx, [rbp + 0x2800]
call fcn.1800029f0
mov dword [rbp + 0x2800], 1
lea rax, [rbp + 0x1410]
mov qword [rbp + 0x10], rax
movzx r15d, byte [rbp + 0x27f0]
movzx ebx, byte [rbp + 0x27f0]
movzx r13d, byte [rbp + 0x27f0]
movzx r14d, byte [rbp + 0x27f0]
movzx r12d, byte [rbp + 0x27f0]
movzx esi, byte [rbp + 0x27f0]
nop word [rax + rax]
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], 0xf
mov byte [rbp + 0x20], 0
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x58], 0xf
mov byte [rbp + 0x40], 0
mov qword [rbp + 0x60], rdi
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [rbp + 0x2794], 0xffffffff
mov dword [rbp + 0x1414], eax
mov edx, 1
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 + 0x1414], eax
inc rdx
cmp rdx, 0x270
jb 0x180080400
mov dword [rbp + 0x1410], 0x270
lea rcx, [rbp + 0x10]
call fcn.18006d4a0
mov ecx, eax
lea rax, [rcx + rcx*8]
add rax, rax
cmp eax, 3
ja 0x18008045a
lea rcx, [rbp + 0x10]
call fcn.18006d4a0
mov ecx, eax
lea rax, [rcx + rcx*8]
add rax, rax
cmp eax, 4
jb 0x180080443
shr rax, 0x20
lea edi, [rax + 3]
mov qword [rbp - 0x20], rdi
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [rbp + 0x1404], 0xffffffff
mov dword [rbp + 0x84], eax
mov edx, 1
nop
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 + 0x84], eax
inc rdx
cmp rdx, 0x270
jb 0x180080480
mov dword [rbp + 0x80], 0x270
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor eax, eax
mov qword [rbp + 0x2808], rax
mov qword [rsp + 0x40], rax
mov eax, 0xf
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x30], 0
mov ecx, dword [rbp + 0x27f0]
or ecx, 1
mov dword [rbp + 0x27f0], ecx
mov dword [rbp + 0x27f8], ecx
cmp rdi, rax
jbe 0x18008050e
movzx r8d, r15b
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.180047640
xor ecx, ecx
mov eax, ecx
mov qword [rbp + 0x2808], rcx
mov qword [rsp + 0x40], rcx
jmp 0x180080517
test rdi, rdi
je 0x1800805ae
lea rax, [rbp + 0x80]
mov qword [rbp - 0x18], rax
mov r15, qword [rbp + 0x2808]
mov r12, qword [rbp - 0x20]
nop dword [rax]
dec r12
mov rdi, qword [str.cthhatabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov edx, 0x3a
lea rcx, [rbp - 0x18]
call fcn.1800659f0
movzx r9d, byte [rdi + rax]
mov rsi, qword [rsp + 0x48]
cmp r15, rsi
jae 0x18008057b
lea rax, [r15 + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rsi, 0xf
cmova rax, qword [rsp + 0x30]
mov byte [rax + r15], r9b
mov byte [rax + r15 + 1], 0
jmp 0x18008058e
movzx r8d, bl
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.180002d30
test r12, r12
je 0x18008059a
mov r15, qword [rsp + 0x40]
jmp 0x180080530
movzx esi, byte [rbp + 0x27f0]
movzx r12d, byte [rbp + 0x27f0]
mov rax, qword [rsp + 0x48]
lea rdx, [rsp + 0x30]
cmp rax, 0xf
cmova rdx, qword [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1800805c4
lea rcx, [rbp + 0x20]
call fcn.180058cf0
mov eax, dword [rbp + 0x27f0]
and eax, 0xfffffffe
mov dword [rbp + 0x27f0], eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x180080629
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008061e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180080d73
call fcn.180082be4
mov eax, dword [rbp + 0x27f0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xor edi, edi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], di
or eax, 4
mov dword [rbp + 0x27f0], eax
mov dword [rbp + 0x27f8], eax
mov word [rsp + 0x20], di
mov r9d, 0x105
movzx r8d, r13b
mov edx, r9d
lea rcx, [rsp + 0x78]
call fcn.18005d2b0
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rcx, qword [rsp + 0x78]
call fcn.180084480
mov qword [rbp + 0x2808], rax
mov ecx, eax
mov r8, qword [rbp - 0x78]
cmp rcx, r8
ja 0x1800806b0
mov qword [rbp - 0x78], rcx
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rax, qword [rsp + 0x78]
mov word [rax + rcx*2], di
jmp 0x180080711
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbp - 0x70]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x1800806f9
mov qword [rbp - 0x78], rcx
lea r9, [rsp + 0x78]
cmp rdi, 7
cmova r9, qword [rsp + 0x78]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x1800806ec
xor eax, eax
movzx eax, ax
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
xor ecx, ecx
mov word [r9 + rax*2], cx
jmp 0x180080711
xor eax, eax
mov word [rsp + 0x20], ax
mov r9, rdx
movzx r8d, r14b
lea rcx, [rsp + 0x78]
call fcn.18005d2b0
mov eax, dword [rbp + 0x280c]
cmp eax, 0xffffffff
jne 0x180080739
mov dword [rbp + 0x70], 0x14
lea rax, [0x1803920f0]
mov qword [rbp + 0x78], rax
movaps xmm0, xmmword [rbp + 0x70]
mov eax, 0x14
jmp 0x18008074b
mov dword [rbp - 0x40], eax
lea rcx, [0x180392100]
mov qword [rbp - 0x38], rcx
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp], xmm0
mov ecx, dword [rbp + 0x27f0]
and ecx, 0xfffffffb
or ecx, 2
mov dword [rbp + 0x27f0], ecx
mov dword [rbp + 0x27f8], ecx
test eax, eax
jne 0x180080da1
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rax, qword [rsp + 0x78]
mov qword [rbp - 0x20], rax
mov rdi, qword [rbp - 0x78]
mov qword [rbp], rdi
call fcn.180083dcc
mov dword [rbp + 0x2808], eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xor ecx, ecx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], cl
mov edx, dword [rbp + 0x27f0]
or edx, 0x40
mov dword [rbp + 0x27f0], edx
mov dword [rbp + 0x27f8], edx
test rdi, rdi
je 0x1800808c8
cmp rdi, 0x7fffffff
ja 0x180080d96
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8d, edi
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call fcn.180083e3c
mov rdi, rax
mov qword [rbp - 0x10], rax
shr rax, 0x20
test eax, eax
jne 0x180080dc3
movsxd rdx, edi
mov r8, qword [rbp - 0x58]
cmp rdx, r8
ja 0x180080826
mov qword [rbp - 0x58], rdx
lea rax, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rax, qword [rbp - 0x68]
mov byte [rax + rdx], 0
jmp 0x18008088a
mov rcx, rdx
sub rcx, r8
mov qword [rbp - 0x10], rcx
mov r9, qword [rbp - 0x50]
mov rax, r9
sub rax, r8
cmp rcx, rax
ja 0x180080872
mov qword [rbp - 0x58], rdx
lea rax, [rbp - 0x68]
cmp r9, 0xf
cmova rax, qword [rbp - 0x68]
add rax, r8
mov qword [rbp - 0x18], rax
mov r8, rcx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
mov byte [rcx + rax], 0
jmp 0x18008088a
mov byte [rsp + 0x20], 0
mov r9, rcx
movzx r8d, r12b
mov rdx, rcx
lea rcx, [rbp - 0x68]
call fcn.1800474b0
lea r9, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova r9, qword [rbp - 0x68]
mov dword [rsp + 0x20], edi
mov r8d, dword [rbp]
mov rdx, qword [rbp - 0x20]
mov ecx, dword [rbp + 0x2808]
call fcn.180083e3c
mov qword [rbp + 0x2808], rax
shr rax, 0x20
test eax, eax
jne 0x180080db7
mov edx, dword [rbp + 0x27f0]
and edx, 0xffffffbf
or edx, 0x38
mov dword [rbp + 0x27f0], edx
mov dword [rbp + 0x27f8], edx
mov qword [rbp + 0x2808], 0x63
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [rbp + 0x1404], 0xffffffff
mov dword [rbp + 0x84], eax
mov edx, 1
nop
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 + 0x84], eax
inc rdx
cmp rdx, 0x270
jb 0x180080900
mov dword [rbp + 0x80], 0x270
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor edi, edi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], dil
mov eax, dword [rbp + 0x27f0]
bts eax, 7
mov dword [rbp + 0x27f0], eax
mov dword [rbp + 0x27f8], eax
lea ecx, [rdi + 0x70]
call fcn.180082c18
mov r13, rax
mov r15d, 0x6f
mov qword [rsp + 0x48], r15
mov byte [rax], dil
mov qword [rsp + 0x30], rax
mov ebx, edi
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x80]
mov qword [rbp], rax
mov r14, qword [rbp + 0x2808]
nop word [rax + rax]
dec r14
mov rdi, qword [str.cthhatabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov edx, 0x3a
lea rcx, [rbp]
call fcn.1800659f0
movzx r9d, byte [rax + rdi]
cmp rbx, r15
jae 0x1800809e3
lea rax, [rbx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp r15, 0xf
cmova rax, r13
mov byte [rax + rbx], r9b
mov byte [rax + rbx + 1], 0
jmp 0x1800809f6
movzx r8d, sil
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.180002d30
test r14, r14
je 0x180080a0c
mov rbx, qword [rsp + 0x40]
mov r13, qword [rsp + 0x30]
mov r15, qword [rsp + 0x48]
jmp 0x1800809a0
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.18006eb40
lea rcx, [rbp + 0x40]
cmp rcx, rax
movzx ebx, byte [rbp + 0x27f0]
movzx r14d, byte [rbp + 0x27f0]
movzx r15d, byte [rbp + 0x27f0]
movzx r13d, byte [rbp + 0x27f0]
je 0x180080a6d
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x180080a61
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.180058cf0
mov edi, dword [rbp + 0x27f0]
btr edi, 7
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x180080ab5
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180080aaf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180080d7a
call fcn.180082be4
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x180080af0
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180080aeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180080d81
call fcn.180082be4
mov qword [rbp - 0x58], 0
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], 0
and edi, 0xfffffffd
mov dword [rbp + 0x27f0], edi
mov dword [rbp + 0x27f8], edi
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x180080b54
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180080b4f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180080d88
call fcn.180082be4
mov rdi, qword [0x180391f98]
mov qword [rbp + 0x2808], rdi
cmp rdi, qword [0x180391fa0]
je 0x180080bb2
mov qword [rbp], rdi
lea rdx, [rbp + 0x20]
mov rcx, rdi
call fcn.180002c10
nop
lea rcx, [rdi + 0x20]
lea rdx, [rbp + 0x40]
call fcn.180002c10
nop
mov rdi, qword [rbp + 0x60]
mov rax, qword [rbp + 0x2808]
mov qword [rax + 0x40], rdi
test rdi, rdi
je 0x180080ba8
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
add qword [0x180391f98], 0x48
jmp 0x180080bc9
lea r8, [rbp + 0x20]
mov rdx, rdi
lea rcx, [0x180391f90]
call fcn.18005bc60
mov rdi, qword [rbp + 0x60]
test rdi, rdi
je 0x180080bd8
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x180080c13
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180080c0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180080d8f
call fcn.180082be4
mov rdx, qword [rbp + 0x38]
cmp rdx, 0xf
jbe 0x180080c4e
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180080c49
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180080d8f
call fcn.180082be4
mov eax, dword [rbp + 0x2800]
inc eax
mov dword [rbp + 0x2800], eax
xor edi, edi
cmp eax, 0x22b
jle 0x1800803b0
movdqa xmm0, xmmword [0x180105240]
movdqu xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], 0xa7bdfda8
mov dword [rbp - 0x2c], 0xbab1fab2
mov word [rbp - 0x28], 0xbb
mov byte [rbp - 0x26], 1
mov ecx, edi
lea eax, [rcx - 0x41]
xor byte [rbp + rcx - 0x40], al
inc rcx
cmp rcx, 0x19
jb 0x180080c90
mov byte [rbp - 0x26], dil
lea rcx, [rbp - 0x40]
call fcn.180069cf0
add rax, 0x99ae0
mov qword [0x180394308], rax
movdqa xmm0, xmmword [0x1801054e0]
movdqu xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x180105450]
movdqu xmmword [rsp + 0x40], xmm1
movdqa xmm0, xmmword [0x180105530]
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x180105540]
movdqu xmmword [rsp + 0x60], xmm1
mov dword [rsp + 0x70], 0x4040bf
mov byte [rsp + 0x74], 1
nop
lea eax, [rdi - 0x41]
xor byte [rsp + rdi + 0x30], al
inc rdi
cmp rdi, 0x43
jb 0x180080d00
mov byte [rsp + 0x74], 0
lea rcx, str.citizen_resources_core.dll
call fcn.18006a050
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.180069910
lea rcx, vtable.._AV___Func_impl_no_alloc_V_lambda_1___6____Connect_V_lambda_1___1__starthook__YAXXZ____fwEvent_PEAVResource_fx____QEAA_A_PV1_1__starthook__YAXXZ_H_Z__NPEAVResource_fx___std__.0
mov qword [rsp + 0x30], rcx
movzx ecx, byte [rbp + 0x27f0]
mov byte [rsp + 0x38], cl
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x68], rcx
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.180067350
add rsp, 0x28a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 0x16
call fcn.18006e7b0
nop
lea r8, [rsp + 0x78]
lea rdx, [rbp]
lea rcx, str.temp_directory_path
call fcn.18006e680
nop
mov ecx, dword [rbp + 0x280c]
call fcn.18006e7f0
int3
mov ecx, dword [rbp - 0xc]
call fcn.18006e7f0
int3