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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1360]
mov eax, 0x1460
call fcn.1402aa5b0
sub rsp, rax
mov rax, qword [0x140554040]
xor rax, rsp
mov qword [rbp + 0x1350], rax
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], rdx
mov r13, rcx
mov qword [rsp + 0x58], rcx
lea rbx, [rcx + 8]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
lea r15, [rbx + 0x10]
xor esi, esi
mov qword [r15], rsi
mov qword [rbx + 0x18], send
mov byte [rbx], sil
lea r14, [rcx + 0x28]
movups xmmword [r14], xmm0
lea r12, [r14 + 0x10]
mov qword [r12], rsi
mov qword [r14 + 0x18], send
mov byte [r14], sil
cmp r8d, 1
jne 0x140003aa2
inc byte [rcx]
movups xmm1, xmmword [rdx]
mov rax, qword [rbx + 0x18]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rdi, xmm0
cmp rdi, rax
ja 0x14000392d
mov r14, rbx
cmp rax, 0xf
jbe 0x140003913
mov r14, qword [rbx]
mov qword [r15], rdi
mov r8, rdi
movq rdx, xmm1
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
mov byte [r14 + rdi], 0
jmp 0x14000393d
movq r9, xmm1
mov rdx, rdi
mov rcx, rbx
call fcn.14001fdd0
mov r14, qword [rbx + 0x10]
mov rdx, rsi
mov edi, 1
cmp qword [rbx + 0x18], 0xf
jbe 0x140003962
mov rax, qword [rbx]
movzx r12d, byte [rax]
movzx r15d, byte [r14 + rax - 1]
mov rcx, rax
jmp 0x14000396f
movzx r12d, byte [rbx]
movzx r15d, byte [r14 + rbx - 1]
mov rcx, rbx
mov rax, rdi
cmp r14, rdi
cmovb rax, r14
add rcx, rdx
sub r14, rax
mov r8, r14
sub r8, rdx
inc r8
lea rdx, [rcx + rax]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbx + 0x10], r14
mov rax, r14
cmp qword [rbx + 0x18], 0xf
jbe 0x1400039bb
mov rdx, qword [rbx]
sub rdx, rdx
dec rdx
add rdx, r14
sub rax, rdx
cmp rax, 1
cmovb rdi, rax
mov rax, qword [rbx]
jmp 0x1400039d5
mov rdx, r14
sub rdx, rbx
dec rdx
add rdx, rbx
sub rax, rdx
cmp rax, 1
cmovb rdi, rax
mov rax, rbx
lea rcx, [rax + rdx]
sub r14, rdi
mov r8, r14
sub r8, rdx
inc r8
lea rdx, [rcx + rdi]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbx + 0x10], r14
mov ecx, esi
test r14, r14
je 0x140003a2d
mov r8, rsi
nop dword [rax]
test cl, 1
movzx edx, r15b
movzx eax, r12b
cmovne edx, eax
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140003a1b
mov rax, qword [rbx]
xor byte [r8 + rax], dl
inc ecx
inc r8
movsxd rax, ecx
cmp rax, qword [rbx + 0x10]
jb 0x140003a00
mov qword [rbp - 0x50], rsi
lea rdx, [r13 + 8]
lea r8, [rsp + 0x78]
lea rcx, [rsp + 0x68]
call fcn.14001a6a0
nop
lea rdx, [0x14052373c]
lea rcx, [rsp + 0x68]
call fcn.14001a7d0
mov rcx, rax
call fcn.14001a9c0
mov byte [r13 + 1], al
lea rdx, str.message
lea rcx, [rsp + 0x68]
call fcn.14001a7d0
mov rdx, rax
lea rcx, [r13 + 8]
call fcn.14001aaa0
lea rdx, str.session_id
lea rcx, [rsp + 0x68]
call fcn.14001a7d0
mov rdx, rax
lea rcx, [r13 + 0x28]
call fcn.14001aaa0
nop
jmp 0x140003eb9
mov byte [rsp + 0x68], 0
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140019f40
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x30], 5
movsxd rax, dword [rbp + 0x13c0]
mov qword [rsp + 0x38], rax
lea rdx, [0x14052373c]
lea rcx, [rsp + 0x68]
call fcn.14001a7d0
mov r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov byte [rsp + 0x30], dl
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x38]
mov qword [r8 + 8], rcx
mov qword [rsp + 0x38], rax
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140019120
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], 3
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
lea ecx, [rax + 0x20]
call fcn.1400e9cb0
mov rdi, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rdi
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 8]
mov rdx, qword [rax]
mov rcx, rdi
call fcn.140001d60
nop
mov qword [rsp + 0x38], rdi
lea rdx, str.session_id
lea rcx, [rsp + 0x68]
call fcn.14001a7d0
mov r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov byte [rsp + 0x30], dl
mov rax, qword [rax + 8]
mov rdx, qword [rsp + 0x38]
mov qword [r8 + 8], rdx
mov qword [rsp + 0x38], rax
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140019120
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov rdi, qword [rsp + 0x40]
mov rdi, qword [rdi]
xor eax, eax
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], 3
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
lea ecx, [rax + 0x20]
call fcn.1400e9cb0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x80], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdi + r8], 0
jne 0x140003c10
mov rdx, rdi
mov rcx, rax
call fcn.140001d60
nop
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rdx, str.message
lea rcx, [rsp + 0x68]
call fcn.14001a7d0
mov r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov byte [rsp + 0x30], dl
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x38]
mov qword [r8 + 8], rcx
mov qword [rsp + 0x38], rax
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140019120
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x68]
call fcn.1400174c0
mov rdx, rax
mov rcx, rbx
call fcn.140017a90
lea rcx, [rsp + 0x78]
call fcn.140001cd0
cmp qword [r13 + 0x18], 0x200
jbe 0x140003cb6
cmp qword [rbx + 0x18], 0xf
jbe 0x140003cab
mov rbx, qword [rbx]
mov qword [r15], rsi
mov byte [rbx], 0
jmp 0x140003eb9
mov r9, qword [rsp + 0x48]
movups xmm1, xmmword [r9]
mov rax, qword [r14 + 0x18]
mov rdi, qword [r9 + 8]
cmp rdi, rax
ja 0x140003cf0
cmp rax, 0xf
jbe 0x140003cd5
mov r14, qword [r14]
mov qword [r12], rdi
mov r8, rdi
movq rdx, xmm1
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
mov byte [r14 + rdi], 0
jmp 0x140003d00
movq r9, xmm1
mov rdx, rdi
mov rcx, r14
call fcn.14001fdd0
mov eax, dword [rbp + 0x13c0]
mov byte [r13 + 1], al
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x1344], 0xffffffff
mov dword [rbp - 0x3c], eax
mov edi, 1
nop dword [rax]
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edi
mov dword [rbp + rdi*4 - 0x3c], eax
inc rdi
cmp rdi, 0x270
jb 0x140003d30
mov dword [rbp - 0x40], 0x270
lea rcx, [rbp - 0x40]
call fcn.1400280f0
mov edi, eax
shl rdi, 8
shr rdi, 0x20
lea rcx, [rbp - 0x40]
call fcn.1400280f0
mov r15d, eax
shl r15, 8
movzx r14d, dil
movzx eax, dil
cmp r15d, 0x100
cmovb r14d, eax
shr r15, 0x20
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x140003dd0
mov rdx, rsi
nop dword [rax]
test sil, 1
movzx ecx, r15b
movzx eax, r14b
cmovne ecx, eax
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140003dbc
mov rax, qword [rbx]
xor byte [rax + rdx], cl
inc esi
inc rdx
mov r8, qword [rbx + 0x10]
movsxd rax, esi
cmp rax, r8
jb 0x140003da0
mov rcx, qword [rbx + 0x18]
cmp rcx, 0xf
jbe 0x140003de2
mov r9, qword [rbx]
mov rax, r9
jmp 0x140003de8
mov rax, rbx
mov r9, rbx
sub r9, rax
cmp r8, r9
jb 0x140003ef6
mov rax, rcx
sub rax, r8
cmp rax, 1
jb 0x140003e35
lea rax, [r8 + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rcx, 0xf
jbe 0x140003e14
mov rax, qword [rbx]
lea rdi, [rax + r9]
lea rcx, [rdi + 1]
sub r8, r9
inc r8
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
movsx eax, r14b
movzx eax, al
mov byte [rdi], al
jmp 0x140003e42
mov byte [rsp + 0x28], r14b
mov rcx, rbx
call fcn.14001fc30
mov rcx, qword [rbx + 0x18]
mov r8, qword [rbx + 0x10]
cmp rcx, 0xf
jbe 0x140003e5b
mov r9, qword [rbx]
mov rdx, r9
add r9, r8
jmp 0x140003e62
mov rdx, rbx
lea r9, [r8 + rbx]
sub r9, rdx
cmp r8, r9
jb 0x140003ef6
mov rax, rcx
sub rax, r8
cmp rax, 1
jb 0x140003eab
lea rax, [r8 + 1]
mov qword [rbx + 0x10], rax
cmp rcx, 0xf
jbe 0x140003e8b
mov rbx, qword [rbx]
add rbx, r9
lea rcx, [rbx + 1]
sub r8, r9
inc r8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
movsx eax, r15b
movzx eax, al
mov byte [rbx], al
jmp 0x140003eb9
mov byte [rsp + 0x28], r15b
mov rcx, rbx
call fcn.14001fc30
nop
movzx edx, byte [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.140019120
nop
mov rax, r13
mov rcx, qword [rbp + 0x1350]
xor rcx, rsp
call fcn.1400e9c90
mov rbx, qword [rsp + 0x14b0]
add rsp, 0x1460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14001a310
nop
int3