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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
movaps xmmword [rax - 0x48], xmm6
xorps xmm0, xmm0
mov rbp, rdx
mov rsi, rcx
movups xmmword [rax - 0x58], xmm0
mov dword [rax - 0x4c], 1
mov dword [rax - 0x54], 1
cmp r8d, 1
jb 0x140005fce
movsd xmm6, qword [0x1400241d8]
xor r13d, r13d
lea rcx, str._n...
lea rbx, str.out_of_memory
lea r14, [0x140028454]
call fcn.140010bb0
lea rdi, [0x1400240a0]
mov dword [rsp + 0x118], r13d
mov qword [rsp + 0x98], rdi
mov r12d, r13d
nop dword [rax]
mov dword [0x140027a94], 0x9f73f7fc
lea rdx, [0x140027a98]
mov dword [0x140027a90], 0x270
mov r8d, 1
mov ecx, dword [rdx - 4]
shr ecx, 0x1e
xor ecx, dword [rdx - 4]
imul eax, ecx, 0x6c078965
add eax, r8d
inc r8d
mov dword [rdx], eax
add rdx, 4
cmp rdx, r14
jl 0x140005be1
mov r14, qword [rsi + 0x1d0]
mov qword [rsp + 0x40], r14
test r14, r14
je 0x140005c1f
mov rax, qword [r14 + 0x10]
mov qword [rsi + 0x1d0], rax
jmp 0x140005c84
mov rcx, qword [rsi + 0x78]
mov edx, 1
lea r8d, [rdx + 0x17]
call qword [rsi + 0x68]
mov qword [rsp + 0x40], rax
mov r14, rax
test rax, rax
jne 0x140005c4a
mov qword [rsi + 0x38], rbx
mov r14, r13
mov qword [rsp + 0x40], r13
jmp 0x140005c8c
mov rcx, qword [rsi + 0x78]
mov edx, 0x4000
mov r8d, 1
call qword [rsi + 0x68]
test rax, rax
jne 0x140005c79
mov rcx, qword [rsi + 0x78]
mov rdx, r14
mov qword [rsi + 0x38], rbx
call qword [rsi + 0x70]
mov r14, r13
mov qword [rsp + 0x40], r13
jmp 0x140005c8c
mov qword [r14], rax
mov dword [r14 + 0xc], 0x4000
mov dword [r14 + 8], r13d
mov qword [r14 + 0x10], r13
mov r15, qword [rsi + 0x1d0]
mov qword [rsp + 0x48], r15
test r15, r15
je 0x140005caa
mov rax, qword [r15 + 0x10]
mov qword [rsi + 0x1d0], rax
jmp 0x140005d1e
mov rcx, qword [rsi + 0x78]
mov edx, 1
lea r8d, [rdx + 0x17]
call qword [rsi + 0x68]
mov qword [rsp + 0x48], rax
mov r15, rax
test rax, rax
jne 0x140005cd5
mov qword [rsi + 0x38], rbx
mov r15, r13
mov qword [rsp + 0x48], r13
jmp 0x140005d26
test r15, r15
jne 0x140005ce4
mov r15, r13
mov qword [rsp + 0x48], r13
jmp 0x140005d26
mov rcx, qword [rsi + 0x78]
mov edx, 0x4000
mov r8d, 1
call qword [rsi + 0x68]
test rax, rax
jne 0x140005d13
mov rcx, qword [rsi + 0x78]
mov rdx, r15
mov qword [rsi + 0x38], rbx
call qword [rsi + 0x70]
mov r15, r13
mov qword [rsp + 0x48], r13
jmp 0x140005d26
mov qword [r15], rax
mov dword [r15 + 0xc], 0x4000
mov dword [r15 + 8], r13d
mov qword [r15 + 0x10], r13
mov rcx, rsi
call qword [rbp + 0x18]
mov qword [rsp + 0x70], r13
mov rbx, rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], r13
test r14, r14
je 0x140005ebd
test r15, r15
je 0x140005ebd
test rax, rax
je 0x140005ebd
mov rdx, r14
mov rcx, rsi
call qword [rdi]
mov edi, eax
test eax, eax
jne 0x140005ec2
lea r8d, [rax + 1]
mov rdx, rbx
mov rcx, rsi
call qword [rbp + 0x28]
mov edi, eax
test eax, eax
jne 0x140005ec2
lea rax, [rsp + 0xa0]
mov r9, r15
mov r8, r14
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rsi
call qword [rbp + 0x38]
mov edi, eax
test eax, eax
je 0x140005dd0
mov r8, qword [rsi + 0x38]
lea rcx, str.xdelta3:_test__u:_encode:__s
mov edx, r12d
call fcn.140010bb0
mov rax, qword [rbp + 0x20]
mov rdx, rbx
mov rcx, rsi
call rax
jmp 0x140005ed0
mov rax, r14
add r13d, dword [rax + 8]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140005dd3
mov rax, r15
xor r12d, r12d
nop word [rax + rax]
add r12d, dword [rax + 8]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140005df0
xorps xmm1, xmm1
mov eax, r12d
xorps xmm0, xmm0
lea rcx, str._.3f
cvtsi2sd xmm1, rax
mov eax, r13d
cvtsi2sd xmm0, rax
mulsd xmm1, xmm6
divsd xmm1, xmm0
movq rdx, xmm1
call fcn.140010bb0
mov rcx, qword [rsi + 0x78]
mov r8d, 1
mov edx, r12d
call qword [rsi + 0x68]
mov qword [rsp + 0x88], rax
mov rbp, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140005eaa
mov rcx, qword [rsi + 0x78]
mov r8d, 1
mov edx, r13d
mov qword [rsp + 0x70], rax
mov ebx, r13d
call qword [rsi + 0x68]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140005ea5
mov rcx, qword [rsi + 0x78]
mov r8d, 1
mov edx, ebx
mov qword [rsp + 0x78], rax
call qword [rsi + 0x68]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x140005ff3
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x108]
lea rax, str.out_of_memory
mov qword [rsi + 0x38], rax
mov edi, 0xc
mov rdx, rbx
mov rcx, rsi
call qword [rbp + 0x20]
test r14, r14
je 0x140005ef5
mov rdx, qword [r14]
mov rbx, qword [r14 + 0x10]
test rdx, rdx
je 0x140005ee3
mov rcx, qword [rsi + 0x78]
call qword [rsi + 0x70]
mov rcx, qword [rsi + 0x78]
mov rdx, r14
call qword [rsi + 0x70]
mov r14, rbx
test rbx, rbx
jne 0x140005ed0
test r15, r15
je 0x140005f25
nop word [rax + rax]
mov rdx, qword [r15]
mov rbx, qword [r15 + 0x10]
test rdx, rdx
je 0x140005f13
mov rcx, qword [rsi + 0x78]
call qword [rsi + 0x70]
mov rcx, qword [rsi + 0x78]
mov rdx, r15
call qword [rsi + 0x70]
mov r15, rbx
test rbx, rbx
jne 0x140005f00
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140005f39
mov rcx, qword [rsi + 0x78]
mov rdx, rax
call qword [rsi + 0x70]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x140005f4d
mov rcx, qword [rsi + 0x78]
mov rdx, rax
call qword [rsi + 0x70]
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x140005f64
mov rcx, qword [rsi + 0x78]
mov rdx, rax
call qword [rsi + 0x70]
test edi, edi
jne 0x1400061c2
mov r12d, dword [rsp + 0x118]
lea rbx, str.out_of_memory
mov rdi, qword [rsp + 0x98]
lea r14, [0x140028454]
inc r12d
add rdi, 8
mov dword [rsp + 0x118], r12d
mov r13d, 0
mov qword [rsp + 0x98], rdi
cmp r12d, 0xb
jb 0x140005bc0
mov eax, dword [rsp + 0xa4]
inc eax
mov dword [rsp + 0xa4], eax
cmp eax, dword [rsp + 0x110]
jbe 0x140005b85
xor eax, eax
mov rbx, qword [rsp + 0x100]
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x80], rax
xor edi, edi
mov rbx, r15
mov r8d, dword [rbx + 8]
mov rdx, qword [rbx]
mov ecx, edi
add rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
add edi, dword [rbx + 8]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140006000
cmp edi, r12d
jne 0x1400061af
mov rbp, qword [rsp + 0x68]
xor edi, edi
mov rbx, r14
mov r8d, dword [rbx + 8]
mov rdx, qword [rbx]
mov ecx, edi
add rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
add edi, dword [rbx + 8]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140006030
mov rbp, qword [rsp + 0x88]
cmp edi, r13d
jne 0x14000619c
mov rax, qword [rsp + 0x90]
mov r9d, r12d
mov qword [rsp + 0x30], rax
mov r8d, r13d
mov rax, qword [rsp + 0x68]
mov rcx, rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
mov rbp, qword [rsp + 0x108]
mov rdx, rbp
call fcn.1400061d0
mov edi, eax
test eax, eax
je 0x1400060c3
mov r8, qword [rsi + 0x38]
lea rcx, str.xdelta3:_test__u:_decode:__s
mov edx, dword [rsp + 0x118]
call fcn.140010bb0
mov rax, qword [rbp + 0x20]
mov rcx, rsi
mov rdx, qword [rsp + 0x50]
call rax
jmp 0x140005ed0
mov eax, 0xa
cmp r12d, eax
cmovb eax, r12d
xor ebp, ebp
lea ecx, [rax*8]
test ecx, ecx
jle 0x14000617f
mov r15, qword [rsp + 0x88]
add eax, eax
mov dword [rsp + 0x5c], eax
mov r14d, ecx
dec eax
mov dword [rsp + 0x60], eax
nop word [rax + rax]
mov rdx, qword [rsp + 0x108]
mov ebx, ebp
mov edi, ebp
and ebx, 7
shr rdi, 3
mov r9d, r12d
mov r8d, r13d
mov rcx, rsi
movzx eax, byte [rdi + r15]
btc eax, ebx
mov byte [rdi + r15], al
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
call fcn.1400061d0
movzx eax, byte [rdi + r15]
btc eax, ebx
mov byte [rdi + r15], al
mov eax, ebp
cdq
idiv dword [rsp + 0x5c]
cmp edx, dword [rsp + 0x60]
jne 0x14000616e
lea rcx, [0x140022d78]
call fcn.140010bb0
inc ebp
cmp ebp, r14d
jl 0x140006100
mov r14, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x108]
xor edi, edi
mov rdx, qword [rsp + 0x50]
mov rcx, rsi
mov rax, qword [rbp + 0x20]
call rax
jmp 0x140005ed0
lea rcx, str.xdelta3:_check_failure:_p_off__input_size
call fcn.140010bb0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
lea rcx, str.xdelta3:_check_failure:_p_off__compress_size
call fcn.140010bb0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov eax, edi
jmp 0x140005fd0