Function at 0x1800a5900
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x568]
sub rsp, 0x668
mov rax, qword [0x1804a20e0]
xor rax, rsp
mov qword [rbp + 0x530], rax
cmp dword [rcx + 0x24], 0
mov rbx, rcx
mov dword [rsp + 0x44], r9d
mov qword [rsp + 0x48], r8
je 0x1800a5940
mov eax, 0x40000
jmp 0x1800a60e0
cmp byte [rcx + 0x40], 0
je 0x1800a5950
mov eax, 0x50000
jmp 0x1800a60e0
mov qword [rsp + 0x698], rsi
xor esi, esi
mov eax, esi
mov qword [rsp + 0x648], r14
mov r14d, dword [rbp + 0x5a0]
mov dword [rsp + 0x40], eax
lea ecx, [rsi + 0xc]
cmp qword [rbx], rax
je 0x1800a5982
cmp r14d, 4
cmovne eax, ecx
mov dword [rsp + 0x40], eax
mov r8d, 0x104
lea rcx, [rbp + 0x320]
call fcn.180217d8c
mov word [rbp + 0x526], si
cmp word [rbp + 0x320], si
jne 0x1800a59ae
mov eax, 0x10000
jmp 0x1800a60d0
mov qword [rsp + 0x660], rdi
lea rax, [rbp + 0x320]
mov qword [rsp + 0x658], r12
mov ecx, Ordinal_50
nop word [rax + rax]
cmp word [rax], 0x5c
jne 0x1800a59d9
mov word [rax], cx
add rax, 2
cmp word [rax], si
jne 0x1800a59d0
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x650], r13
mov qword [rsp + 0x640], r15
mov r12d, 8
cmp r14d, 4
jne 0x1800a5a2b
lea rcx, [rbp + 0x320]
mov rax, rdi
nop dword [rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1800a5a10
cmp word [rbp + rax*2 + 0x31e], 0x2f
je 0x1800a5a2b
mov r13b, 1
jmp 0x1800a5a47
xor r13b, r13b
mov r15d, r12d
cmp r14d, 4
je 0x1800a5a47
lea rcx, [rbp + 0x320]
call fcn.1800a6930
test al, al
je 0x1800a5a4a
mov r15d, esi
cmp r14d, 2
jne 0x1800a5a5f
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1800a8ef0
jmp 0x1800a5aa5
cmp r14d, 1
jne 0x1800a5a79
mov r8d, dword [rsp + 0x44]
mov rcx, rbx
mov rdx, qword [rsp + 0x48]
call fcn.1800a8fd0
jmp 0x1800a5aa5
cmp r14d, 3
jne 0x1800a5a93
mov r8d, dword [rsp + 0x44]
mov rcx, rbx
mov rdx, qword [rsp + 0x48]
call fcn.1800a91c0
jmp 0x1800a5aa5
cmp r14d, 4
jne 0x1800a60ab
mov rcx, rbx
call fcn.1800a8dc0
test eax, eax
jne 0x1800a60b0
mov qword [rsp + 0x38], rsi
lea rax, [rbp + 0xb8]
mov qword [rsp + 0x30], rsi
lea r8, [rbp + 0x320]
mov dword [rsp + 0x28], 0x104
mov r9d, edi
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
mov qword [rbp + 0x2d0], rsi
mov byte [rbp - 0x68], sil
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rax, [rbp + 0xb8]
inc rdi
cmp byte [rax + rdi], sil
jne 0x1800a5af4
mov qword [rsp + 0x68], rdi
test r13b, r13b
je 0x1800a5b2a
lea rcx, [rbp + 0xb8]
dec rcx
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x1800a5b11
movzx eax, word [0x18032e3a8]
mov word [rcx], ax
inc qword [rsp + 0x68]
mov r13d, 1
mov eax, dword [rbx + 0x80]
mov byte [rbp + 0x1bc], sil
mov qword [rbp + 0xb0], rsi
mov qword [rbp - 0x80], rsi
lea ecx, [r13 + 8]
mov dword [rbp + 0x2c0], r13d
mov dword [rbp + 0x2c8], esi
mov word [rbp - 0x76], si
mov dword [rsp + 0x50], 0x140b17
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], esi
mov word [rsp + 0x54], r12w
cmp qword [rbx], rsi
je 0x1800a5b87
cmp r14d, 4
je 0x1800a5b87
movzx r12d, cx
mov word [rsp + 0x54], cx
mov word [rbp - 0x74], r12w
mov word [rsp + 0x56], r15w
test r15d, r15d
jne 0x1800a5baf
mov eax, dword [rbx + 0x88]
test eax, eax
js 0x1800a5baf
mov r12d, dword [rsp + 0x40]
add eax, r12d
mov dword [rsp + 0x60], eax
jmp 0x1800a5bb8
mov r12d, dword [rsp + 0x40]
mov dword [rsp + 0x60], esi
mov edx, dword [rbx + 0x78]
mov r8, rbx
mov eax, dword [rbx + 0x88]
mov dword [rsp + 0x64], eax
mov eax, dword [rbx + 0x70]
mov dword [rbp - 0x70], eax
mov eax, dword [rbx + 0x28]
add eax, dword [rbx + 0x20]
mov dword [rbp - 0x6c], eax
lea rax, [rbp + 0x2e0]
mov qword [rbp + 0xa0], rax
lea rax, [rbp + 0x2f8]
mov qword [rbp + 0xa8], rax
movzx eax, byte [rbx + 0x78]
mov byte [rbp + 0x2e5], al
mov eax, edx
sar eax, 8
mov byte [rbp + 0x2e6], al
mov eax, edx
sar eax, 0x10
mov byte [rbp + 0x2e7], al
movzx eax, byte [rbx + 0x74]
mov byte [rbp + 0x2e9], al
mov qword [rsp + 0x78], rcx
mov ecx, dword [rbx + 0x74]
mov eax, ecx
sar eax, 8
mov byte [rbp + 0x2ea], al
mov eax, ecx
sar eax, 0x10
mov byte [rbp + 0x2eb], al
movzx eax, byte [rbx + 0x7c]
sar ecx, 0x18
mov byte [rbp + 0x2ed], al
mov byte [rbp + 0x2ec], cl
mov ecx, dword [rbx + 0x7c]
mov eax, ecx
sar eax, 8
sar edx, 0x18
mov byte [rbp + 0x2ee], al
mov eax, ecx
sar ecx, 0x18
mov dword [rbp + 0x2e0], 0xd5455
mov byte [rbp + 0x2e4], 7
movsd xmm0, qword [rbp + 0x2e0]
mov byte [rbp + 0x2f0], cl
lea rcx, [rsp + 0x50]
mov byte [rbp + 0x2e8], dl
sar eax, 0x10
mov byte [rbp + 0x300], dl
lea rdx, [0x1800aa7b0]
movsd qword [rbp + 0x2f8], xmm0
mov word [rbp - 0x78], si
mov qword [rsp + 0x70], reloc.WS2_32.dll_recvfrom
mov byte [rbp + 0x2ef], al
mov byte [rbp + 0x2fa], 5
call fcn.1800a9d20
test eax, eax
je 0x1800a5cdb
mov rcx, rbx
call fcn.1800a86c0
mov eax, 0x400
jmp 0x1800a60b0
mov ecx, dword [rsp + 0x68]
mov eax, dword [rsp + 0x70]
add ecx, 0x1e
add ecx, eax
add dword [rbx + 0x28], ecx
cmp dword [rbx + 0x24], esi
je 0x1800a5d00
mov rcx, rbx
call fcn.1800a86c0
mov eax, dword [rbx + 0x24]
jmp 0x1800a60b0
mov dword [rbx + 0x44], 0x12345678
lea r9, [0x18032e650]
mov dword [rbx + 0x48], 0x23456789
mov dword [rbx + 0x4c], 0x34567890
mov r8, qword [rbx]
test r8, r8
je 0x1800a5d74
movzx eax, byte [r8]
test al, al
je 0x1800a5d74
movsx rcx, al
mov eax, dword [rbx + 0x44]
xor rcx, rax
movzx edx, cl
shr eax, 8
mov ecx, dword [r9 + rdx*4]
mov edx, dword [rbx + 0x4c]
xor ecx, eax
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 [r9 + rcx*4]
xor eax, edx
mov dword [rbx + 0x4c], eax
add r8, r13
jne 0x1800a5d24
cmp byte [0x1804bd050], sil
jne 0x1800a5d95
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.180217e00
mov rdi, rsi
call fcn.180217dd4
sar eax, 7
mov byte [rbp + rdi + 0x308], al
inc rdi
cmp rdi, 0xc
jl 0x1800a5d98
mov eax, dword [rsp + 0x58]
lea rdi, [0x18032e650]
shr eax, 8
mov r11, rsi
mov byte [rbp + 0x313], al
nop word [rax + rax]
movsx r10, byte [rbp + r11 + 0x308]
mov r8d, dword [rbx + 0x4c]
mov eax, dword [rbx + 0x44]
mov r9d, r8d
mov ecx, dword [rbx + 0x44]
and r9d, 0xfffd
shr eax, 8
xor rcx, r10
movzx edx, cl
or r9d, 2
mov ecx, dword [rdi + rdx*4]
xor ecx, eax
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, r8b
xor rcx, rax
shr r8d, 8
mov eax, dword [rdi + rcx*4]
xor eax, r8d
mov dword [rbx + 0x4c], eax
mov eax, r9d
xor eax, r13d
imul eax, r9d
shr eax, 8
xor al, r10b
mov byte [rbp + r11 + 0x308], al
inc r11
cmp r11, 0xc
jl 0x1800a5dd0
cmp qword [rbx], rsi
je 0x1800a5e7b
cmp r14d, 4
je 0x1800a5e70
mov r8d, recvfrom
lea rdx, [rbp + 0x308]
mov rcx, rbx
call fcn.1800aa7c0
add dword [rbx + 0x28], 0xc
cmp qword [rbx], rsi
je 0x1800a5e7b
cmp r14d, 4
jne 0x1800a5e7e
mov r13d, esi
mov byte [rbx + 0x41], r13b
cmp r14d, 4
je 0x1800a5eb0
cmp r15d, 8
jne 0x1800a5e9f
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1800a8730
mov esi, eax
jmp 0x1800a5eb6
test r15d, r15d
jne 0x1800a5eb6
mov rcx, rbx
call fcn.1800a8920
mov esi, eax
jmp 0x1800a5eb6
mov dword [rbx + 0xb8], esi
mov rcx, rbx
mov byte [rbx + 0x41], 0
call fcn.1800a86c0
mov ecx, dword [rbx + 0xb8]
add dword [rbx + 0x28], ecx
mov eax, dword [rbx + 0x24]
test eax, eax
jne 0x1800a60b0
test esi, esi
jne 0x1800a5cd1
mov eax, dword [rbx + 0x90]
add ecx, r12d
cmp dword [rsp + 0x60], ecx
mov dword [rsp + 0x5c], eax
mov eax, dword [rbx + 0x88]
sete dl
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x64], eax
cmp byte [rbx + 0x2c], sil
je 0x1800a5f79
cmp qword [rbx], 0
je 0x1800a5f12
cmp r14d, 4
jne 0x1800a5f79
movzx eax, word [rsp + 0x54]
mov word [rsp + 0x56], r15w
test al, 1
jne 0x1800a5f2e
mov ecx, 0xfff7
and ax, cx
mov word [rsp + 0x54], ax
mov edx, dword [rbp - 0x6c]
mov rcx, rbx
sub edx, dword [rbx + 0x20]
mov word [rbp - 0x74], ax
call fcn.1800a9320
test al, al
je 0x1800a5f6f
mov r8, rbx
lea rdx, [0x1800aa7b0]
lea rcx, [rsp + 0x50]
call fcn.1800a9d20
test eax, eax
jne 0x1800a5cd1
mov edx, dword [rbx + 0x28]
mov rcx, rbx
call fcn.1800a9320
test al, al
jne 0x1800a5fbd
mov eax, 0x2000000
jmp 0x1800a60b0
cmp word [rsp + 0x56], r15w
jne 0x1800a5f8a
test r15d, r15d
jne 0x1800a5f94
test dl, dl
jne 0x1800a5f94
mov eax, 0x4000000
jmp 0x1800a60b0
mov r8, rbx
lea rdx, [0x1800aa7b0]
lea rcx, [rsp + 0x50]
call fcn.1800a9b80
test eax, eax
jne 0x1800a5cd1
movzx eax, word [rbp - 0x74]
add dword [rbx + 0x28], 0x10
mov word [rsp + 0x54], ax
mov eax, dword [rbx + 0x24]
test eax, eax
jne 0x1800a60b0
mov rcx, qword [rsp + 0x78]
call fcn.1800b7c98
mov r8, qword [rsp + 0x78]
mov rcx, rax
mov rdx, qword [rbp + 0xa8]
mov rdi, rax
call fcn.18020f990
mov ecx, 0x388
mov qword [rbp + 0xa8], rdi
call fcn.1800b7518
mov r8, rax
mov rcx, rax
lea rax, [rsp + 0x50]
mov edx, 7
nop word [rax + rax]
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 0x1800a6010
mov rax, qword [rax]
mov qword [rcx], rax
mov rcx, qword [rbx + 0x60]
test rcx, rcx
jne 0x1800a607a
mov qword [rbx + 0x60], r8
xor eax, eax
jmp 0x1800a60b0
lea rax, [rcx + 0x380]
cmp qword [rax], 0
je 0x1800a60a0
nop word [rax + rax]
mov rcx, qword [rax]
lea rax, [rcx + 0x380]
cmp qword [rax], 0
jne 0x1800a6090
mov qword [rcx + 0x380], r8
xor eax, eax
jmp 0x1800a60b0
mov eax, 0x10000
mov r13, qword [rsp + 0x650]
mov r15, qword [rsp + 0x640]
mov r12, qword [rsp + 0x658]
mov rdi, qword [rsp + 0x660]
mov rsi, qword [rsp + 0x698]
mov r14, qword [rsp + 0x648]
mov rcx, qword [rbp + 0x530]
xor rcx, rsp
call fcn.1800b8140
add rsp, 0x668
pop rbx
pop rbp
ret