Function at 0x140162510
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x48
mov rax, qword [0x140342fc0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0x90]
mov rbx, r9
mov r15, rdx
mov r14, rcx
cmp r8d, 0xc
jge 0x140162548
xor eax, eax
jmp 0x140162afd
mov eax, dword [0x14035afc0]
inc eax
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x40], rdi
mov dword [0x14035afc0], eax
cmp eax, 1
jne 0x14016257b
xor ecx, ecx
call fcn.1402823d8
xor eax, 0xbb40e64e
mov ecx, eax
call fcn.1402885c0
mov r8, rsi
mov rdx, rbx
mov rcx, r14
call fcn.140162b20
lea rdi, [rsp + 0x20]
mov ebp, 0xa
call fcn.140288594
mov r9d, dword [rbx + 8]
lea rdi, [rdi + 1]
mov r8d, dword [rbx]
mov r11d, eax
sar r11d, 7
mov edx, r8d
mov r10d, r9d
shr r8d, 8
mov ecx, r11d
and r10d, 0xfffd
xor rdx, rcx
or r10d, 2
movzx ecx, dl
xor r8d, dword [rsi + rcx*4]
movzx eax, r8b
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
mov dword [rbx], r8d
inc ecx
mov dword [rbx + 4], ecx
shr rcx, 0x18
xor rcx, r9
shr r9d, 8
movzx eax, cl
xor r9d, dword [rsi + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 8], r9d
imul eax, r10d
shr eax, 8
xor al, r11b
mov byte [rdi - 1], al
sub rbp, 1
jne 0x140162593
mov rdi, qword [rsp + 0x40]
mov r8, rsi
mov rbp, qword [rsp + 0x80]
mov rdx, rbx
mov rcx, r14
call fcn.140162b20
mov r9d, dword [rbx + 8]
mov r10d, r9d
mov edx, dword [rbx]
and r10d, 0xfffd
movzx r8d, byte [rsp + 0x20]
mov ecx, edx
xor rcx, r8
shr edx, 8
movzx eax, cl
or r10d, 2
xor edx, dword [rsi + rax*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr rcx, 0x18
xor rcx, r9
shr r9d, 8
movzx eax, cl
xor r9d, dword [rsi + rax*4]
mov eax, r10d
mov dword [rbx + 8], r9d
xor eax, 1
imul eax, r10d
shr eax, 8
xor al, r8b
movzx r8d, byte [rsp + 0x21]
mov byte [r15], al
mov r9d, dword [rbx + 8]
mov r10d, r9d
mov edx, dword [rbx]
and r10d, 0xfffd
mov ecx, edx
or r10d, 2
xor rcx, r8
shr edx, 8
movzx eax, cl
xor edx, dword [rsi + rax*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr rcx, 0x18
xor rcx, r9
shr r9d, 8
movzx eax, cl
xor r9d, dword [rsi + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 8], r9d
movzx r9d, byte [rsp + 0x22]
imul eax, r10d
shr eax, 8
xor al, r8b
mov byte [r15 + 1], al
mov eax, r9d
mov edx, dword [rbx]
xor rax, rdx
mov r8d, dword [rbx + 8]
mov r10d, r8d
movzx ecx, al
and r10d, 0xfffd
shr edx, 8
or r10d, 2
xor edx, dword [rsi + rcx*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr rcx, 0x18
xor rcx, r8
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 8], r8d
imul eax, r10d
shr eax, 8
xor al, r9b
movzx r9d, byte [rsp + 0x23]
mov byte [r15 + 2], al
mov eax, r9d
mov edx, dword [rbx]
xor rax, rdx
mov r8d, dword [rbx + 8]
mov r10d, r8d
movzx ecx, al
and r10d, 0xfffd
shr edx, 8
or r10d, 2
xor edx, dword [rsi + rcx*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr rcx, 0x18
xor rcx, r8
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 8], r8d
imul eax, r10d
shr eax, 8
xor al, r9b
movzx r9d, byte [rsp + 0x24]
mov byte [r15 + 3], al
mov eax, r9d
mov edx, dword [rbx]
xor rax, rdx
mov r8d, dword [rbx + 8]
mov r10d, r8d
movzx ecx, al
and r10d, 0xfffd
or r10d, 2
shr edx, 8
xor edx, dword [rsi + rcx*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr rcx, 0x18
xor rcx, r8
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 8], r8d
imul eax, r10d
shr eax, 8
xor al, r9b
movzx r9d, byte [rsp + 0x25]
mov byte [r15 + 4], al
mov eax, r9d
mov edx, dword [rbx]
xor rax, rdx
mov r8d, dword [rbx + 8]
mov r10d, r8d
and r10d, 0xfffd
movzx ecx, al
or r10d, 2
shr edx, 8
xor edx, dword [rsi + rcx*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr rcx, 0x18
xor rcx, r8
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 8], r8d
imul eax, r10d
shr eax, 8
xor al, r9b
movzx r9d, byte [rsp + 0x26]
mov byte [r15 + 5], al
mov eax, r9d
mov r8d, dword [rbx + 8]
mov r10d, r8d
mov edx, dword [rbx]
and r10d, 0xfffd
xor rax, rdx
or r10d, 2
movzx ecx, al
shr edx, 8
xor edx, dword [rsi + rcx*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr rcx, 0x18
xor rcx, r8
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 8], r8d
imul eax, r10d
shr eax, 8
xor al, r9b
movzx r9d, byte [rsp + 0x27]
mov byte [r15 + 6], al
mov eax, r9d
mov r8d, dword [rbx + 8]
mov r10d, r8d
mov edx, dword [rbx]
and r10d, 0xfffd
xor rax, rdx
or r10d, 2
movzx ecx, al
shr edx, 8
xor edx, dword [rsi + rcx*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr rcx, 0x18
xor rcx, r8
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 8], r8d
imul eax, r10d
shr eax, 8
xor al, r9b
mov byte [r15 + 7], al
mov r8d, dword [rbx + 8]
mov r10d, r8d
mov edx, dword [rbx]
and r10d, 0xfffd
or r10d, 2
movzx r9d, byte [rsp + 0x28]
mov r11d, dword [rsp + 0x98]
mov eax, r9d
xor rax, rdx
shr edx, 8
movzx ecx, al
xor edx, dword [rsi + rcx*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr rcx, 0x18
xor rcx, r8
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 8], r8d
imul eax, r10d
shr eax, 8
xor al, r9b
movzx r9d, byte [rsp + 0x29]
mov byte [r15 + 8], al
mov eax, r9d
mov r8d, dword [rbx + 8]
mov r10d, r8d
mov edx, dword [rbx]
and r10d, 0xfffd
xor rax, rdx
or r10d, 2
movzx ecx, al
shr edx, 8
xor edx, dword [rsi + rcx*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr rcx, 0x18
xor rcx, r8
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 8], r8d
imul eax, r10d
mov r8d, r11d
shr r8d, 0x10
shr eax, 8
xor al, r9b
mov byte [r15 + 9], al
mov eax, r8d
mov r9d, dword [rbx + 8]
mov r10d, r9d
mov edx, dword [rbx]
and r10d, 0xfffd
xor rax, rdx
or r10d, 2
movzx ecx, al
shr edx, 8
xor edx, dword [rsi + rcx*4]
movzx eax, dl
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
mov dword [rbx], edx
inc ecx
mov dword [rbx + 4], ecx
shr rcx, 0x18
xor rcx, r9
shr r9d, 8
movzx eax, cl
xor r9d, dword [rsi + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 8], r9d
imul eax, r10d
shr eax, 8
xor al, r8b
shr r11d, 0x18
mov byte [r15 + 0xa], al
mov r8d, r11d
mov r9d, dword [rbx + 8]
mov r10d, r9d
mov edx, dword [rbx]
and r10d, 0xfffd
xor r8, rdx
or r10d, 2
movzx ecx, r8b
shr edx, 8
xor edx, dword [rsi + rcx*4]
movzx eax, dl
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
mov dword [rbx], edx
inc ecx
mov dword [rbx + 4], ecx
shr rcx, 0x18
xor rcx, r9
shr r9d, 8
movzx eax, cl
xor r9d, dword [rsi + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 8], r9d
imul eax, r10d
shr eax, 8
xor al, r11b
mov byte [r15 + 0xb], al
mov eax, recv
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14025e750
add rsp, 0x48
pop r15
pop r14
pop rsi
pop rbx
ret