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

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x550]
sub rsp, 0x650
mov rax, qword [0x1400ab2b8]
xor rax, rsp
mov qword [rbp + 0x520], rax
cmp dword [rcx + 0x24], 0
mov rdi, r8
mov rbx, rcx
je 0x14001defa
mov eax, 0x40000
jmp 0x14001e600
cmp byte [rcx + 0x40], 0
je 0x14001df0a
mov eax, 0x50000
jmp 0x14001e600
mov qword [rsp + 0x648], r12
mov eax, recv
xor r12d, r12d
mov qword [rsp + 0x630], r15
cmp qword [rcx], r12
mov r15d, r12d
lea rcx, [rbp + 0x310]
cmovne r15d, eax
sub rcx, rdx
nop word [rax + rax]
movzx eax, word [rdx]
mov word [rcx + rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x14001df40
cmp word [rbp + 0x310], r12w
jne 0x14001df64
mov eax, 0x10000
jmp 0x14001e5f0
mov qword [rsp + 0x678], rsi
lea rax, [rbp + 0x310]
mov qword [rsp + 0x638], r14
mov ecx, 0x2f
cmp word [rax], 0x5c
jne 0x14001df89
mov word [rax], cx
add rax, 2
cmp word [rax], r12w
jne 0x14001df80
lea rcx, [rbp + 0x310]
mov r14d, 8
call fcn.14001d140
test al, al
mov esi, r14d
mov rdx, rdi
mov rcx, rbx
cmovne esi, r12d
call fcn.14001d8f0
test eax, eax
jne 0x14001e5e0
mov qword [rsp + 0x640], r13
mov rcx, r12
lea r13, [0x140000000]
mov qword [rbp + 0x2c0], r12
nop word [rax + rax]
movzx eax, byte [rcx + r13 + 0x93e7a]
mov byte [rbp + rcx - 0x78], al
lea rcx, [rcx + 1]
test al, al
jne 0x14001dfe0
mov qword [rsp + 0x38], r12
lea rax, [rbp + 0xa8]
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x104
lea r8, [rbp + 0x310]
mov r9d, edi
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rax, [rbp + 0xa8]
inc rdi
cmp byte [rax + rdi], r12b
jne 0x14001e035
mov qword [rsp + 0x58], rdi
mov rcx, r12
nop word [rax + rax]
movzx eax, byte [rcx + r13 + 0x93e7a]
mov byte [rbp + rcx + 0x1ac], al
lea rcx, [rcx + 1]
test al, al
jne 0x14001e050
mov ecx, 9
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x48], eax
mov qword [rbp + 0xa0], r12
mov qword [rsp + 0x70], r12
mov dword [rbp + 0x2b0], 1
mov dword [rbp + 0x2b8], r12d
mov word [rsp + 0x7a], r12w
mov dword [rsp + 0x40], 0x140b17
mov dword [rsp + 0x4c], r12d
mov word [rsp + 0x44], r14w
cmp qword [rbx], r12
je 0x14001e0bb
movzx r14d, cx
mov word [rsp + 0x44], cx
mov word [rsp + 0x7c], r14w
mov word [rsp + 0x46], si
test esi, esi
jne 0x14001e0dd
mov eax, dword [rbx + 0x98]
test eax, eax
js 0x14001e0dd
add eax, r15d
mov dword [rsp + 0x50], eax
jmp 0x14001e0e2
mov dword [rsp + 0x50], r12d
mov eax, dword [rbx + 0x98]
mov r8, rbx
mov rdx, qword [rbx + 0x80]
mov dword [rsp + 0x54], eax
mov eax, dword [rbx + 0x70]
mov dword [rbp - 0x80], eax
mov eax, dword [rbx + 0x20]
add eax, dword [rbx + 0x28]
mov dword [rbp - 0x7c], eax
lea rax, [rbp + 0x2d0]
mov qword [rbp + 0x90], rax
lea rax, [rbp + 0x2e8]
mov qword [rbp + 0x98], rax
movzx eax, byte [rbx + 0x80]
mov byte [rbp + 0x2d5], al
mov rax, rdx
sar rax, 8
mov byte [rbp + 0x2d6], al
mov rax, rdx
sar rax, 0x10
mov byte [rbp + 0x2d7], al
movzx eax, byte [rbx + 0x78]
mov byte [rbp + 0x2d9], al
mov qword [rsp + 0x68], rcx
mov rcx, qword [rbx + 0x78]
mov rax, rcx
sar rdx, 0x18
sar rax, 8
mov byte [rbp + 0x2da], al
mov rax, rcx
sar rax, 0x10
mov byte [rbp + 0x2db], al
movzx eax, byte [rbx + 0x88]
sar rcx, 0x18
mov byte [rbp + 0x2dd], al
mov byte [rbp + 0x2dc], cl
mov rcx, qword [rbx + 0x88]
mov rax, rcx
mov dword [rbp + 0x2d0], 0xd5455
sar rax, 8
mov byte [rbp + 0x2de], al
mov rax, rcx
sar rcx, 0x18
mov byte [rbp + 0x2d4], 7
movsd xmm0, qword [rbp + 0x2d0]
mov byte [rbp + 0x2e0], cl
lea rcx, [rsp + 0x40]
sar rax, 0x10
movsd qword [rbp + 0x2e8], xmm0
mov word [rsp + 0x78], r12w
mov qword [rsp + 0x60], sendto
mov byte [rbp + 0x2d8], dl
mov byte [rbp + 0x2df], al
mov byte [rbp + 0x2f0], dl
mov byte [rbp + 0x2ea], 5
call fcn.14001c330
test eax, eax
je 0x14001e21e
mov rcx, rbx
call fcn.14001dc70
mov eax, 0x400
jmp 0x14001e5d8
mov ecx, dword [rsp + 0x58]
mov eax, dword [rsp + 0x60]
add ecx, 0x1e
add ecx, eax
add dword [rbx + 0x28], ecx
cmp dword [rbx + 0x24], r12d
je 0x14001e244
mov rcx, rbx
call fcn.14001dc70
mov eax, dword [rbx + 0x24]
jmp 0x14001e5d8
mov dword [rbx + 0x44], 0x12345678
mov dword [rbx + 0x48], 0x23456789
mov dword [rbx + 0x4c], 0x34567890
mov r8, qword [rbx]
test r8, r8
je 0x14001e2b8
movzx eax, byte [r8]
test al, al
je 0x14001e2b8
mov edx, dword [rbx + 0x44]
mov ecx, edx
xor rcx, rax
shr edx, 8
movzx eax, cl
mov ecx, dword [r13 + rax*4 + 0x95740]
xor ecx, edx
mov edx, dword [rbx + 0x4c]
movzx eax, cl
add eax, dword [rbx + 0x48]
mov dword [rbx + 0x44], ecx
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 0x48], ecx
movzx eax, byte [rbx + 0x4b]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov eax, dword [r13 + rcx*4 + 0x95740]
xor eax, edx
mov dword [rbx + 0x4c], eax
add r8, 1
jne 0x14001e261
cmp byte [0x1400b19b1], r12b
jne 0x14001e2d9
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
mov ecx, edi
call fcn.14005da54
mov rdi, r12
nop dword [rax]
call fcn.14005da28
sar eax, 7
mov byte [rbp + rdi + 0x2f8], al
inc rdi
cmp rdi, 0xc
jl 0x14001e2e0
mov eax, dword [rsp + 0x48]
mov r11, r12
shr eax, 8
mov byte [rbp + 0x303], al
nop dword [rax + rax]
movsx r10, byte [rbp + r11 + 0x2f8]
mov r8d, dword [rbx + 0x4c]
mov rax, r10
mov edx, dword [rbx + 0x44]
mov r9d, r8d
xor rax, rdx
and r9d, 0xfffd
movzx ecx, al
or r9d, 2
shr edx, 8
mov eax, dword [r13 + rcx*4 + 0x95740]
xor eax, edx
mov dword [rbx + 0x44], eax
movzx eax, al
add eax, dword [rbx + 0x48]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 0x48], ecx
movzx eax, byte [rbx + 0x4b]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
mov eax, dword [r13 + rcx*4 + 0x95740]
xor eax, r8d
mov dword [rbx + 0x4c], eax
mov eax, r9d
xor eax, 1
imul eax, r9d
shr eax, 8
xor al, r10b
mov byte [rbp + r11 + 0x2f8], al
inc r11
cmp r11, 0xc
jl 0x14001e310
cmp qword [rbx], r12
je 0x14001e3b8
mov r8d, recv
lea rdx, [rbp + 0x2f8]
mov rcx, rbx
call fcn.14001d640
add dword [rbx + 0x28], 0xc
mov edi, r12d
cmp qword [rbx], rdi
setne al
mov byte [rbx + 0x41], al
cmp esi, 8
jne 0x14001e3d8
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14001dce0
jmp 0x14001e3e4
test esi, esi
jne 0x14001e3e6
mov rcx, rbx
call fcn.14001de30
mov edi, eax
mov byte [rbx + 0x41], r12b
cmp byte [rbx + 0xb0], r12b
je 0x14001e405
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
je 0x14001e405
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rbx + 0xc8]
add dword [rbx + 0x28], ecx
mov eax, dword [rbx + 0x24]
mov edx, dword [rbx + 0x9c]
mov qword [rbx + 0xa8], r12
mov dword [rbx + 0x98], edx
test eax, eax
jne 0x14001e5d8
test edi, edi
jne 0x14001e214
mov eax, dword [rbx + 0xa0]
add ecx, r15d
cmp dword [rsp + 0x50], ecx
mov dword [rsp + 0x4c], eax
sete r8b
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x54], edx
cmp byte [rbx + 0x2c], r12b
je 0x14001e4bc
cmp qword [rbx], r12
jne 0x14001e4bc
movzx eax, word [rsp + 0x44]
mov word [rsp + 0x46], si
test al, 1
jne 0x14001e477
mov ecx, 0xfff7
and ax, cx
mov word [rsp + 0x44], ax
mov edx, dword [rbp - 0x7c]
mov rcx, rbx
sub edx, dword [rbx + 0x20]
mov word [rsp + 0x7c], ax
call fcn.14001d7f0
test al, al
je 0x14001e4b2
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.14001c330
test eax, eax
jne 0x14001e214
mov edx, dword [rbx + 0x28]
mov rcx, rbx
call fcn.14001d7f0
test al, al
jne 0x14001e4f9
mov eax, 0x2000000
jmp 0x14001e5d8
cmp word [rsp + 0x46], si
jne 0x14001e4cc
test esi, esi
jne 0x14001e4d6
test r8b, r8b
jne 0x14001e4d6
mov eax, 0x4000000
jmp 0x14001e5d8
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.14001c6b0
test eax, eax
jne 0x14001e214
movzx eax, word [rsp + 0x7c]
add dword [rbx + 0x28], 0x10
mov word [rsp + 0x44], ax
mov eax, dword [rbx + 0x24]
test eax, eax
jne 0x14001e5d8
mov rcx, qword [rsp + 0x68]
call fcn.1400348c0
mov r8, qword [rsp + 0x68]
mov rcx, rax
mov rdx, qword [rbp + 0x98]
mov rdi, rax
call fcn.1400531c0
mov ecx, 0x388
mov qword [rbp + 0x98], rdi
call fcn.140034598
mov r8, rax
mov rcx, rax
lea rax, [rsp + 0x40]
mov edx, 7
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x14001e546
mov rax, qword [rax]
mov qword [rcx], rax
mov rcx, qword [rbx + 0x60]
test rcx, rcx
jne 0x14001e5ae
mov qword [rbx + 0x60], r8
jmp 0x14001e5d6
lea rax, [rcx + 0x380]
cmp qword [rax], r12
je 0x14001e5cf
nop word [rax + rax]
mov rcx, qword [rax]
lea rax, [rcx + 0x380]
cmp qword [rax], r12
jne 0x14001e5c0
mov qword [rcx + 0x380], r8
xor eax, eax
mov r13, qword [rsp + 0x640]
mov r14, qword [rsp + 0x638]
mov rsi, qword [rsp + 0x678]
mov r12, qword [rsp + 0x648]
mov r15, qword [rsp + 0x630]
mov rcx, qword [rbp + 0x520]
xor rcx, rsp
call fcn.140034240
add rsp, 0x650
pop rdi
pop rbx
pop rbp
ret