Function at 0x1800a5960
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 [0x18049d0e0]
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 0x1800a59a0
mov eax, 0x40000
jmp 0x1800a6140
cmp byte [rcx + 0x40], 0
je 0x1800a59b0
mov eax, 0x50000
jmp 0x1800a6140
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 0x1800a59e2
cmp r14d, 4
cmovne eax, ecx
mov dword [rsp + 0x40], eax
mov r8d, 0x104
lea rcx, [rbp + 0x320]
call fcn.1802151c4
mov word [rbp + 0x526], si
cmp word [rbp + 0x320], si
jne 0x1800a5a0e
mov eax, 0x10000
jmp 0x1800a6130
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 0x1800a5a39
mov word [rax], cx
add rax, 2
cmp word [rax], si
jne 0x1800a5a30
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x650], r13
mov qword [rsp + 0x640], r15
mov r12d, 8
cmp r14d, 4
jne 0x1800a5a8b
lea rcx, [rbp + 0x320]
mov rax, rdi
nop dword [rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1800a5a70
cmp word [rbp + rax*2 + 0x31e], 0x2f
je 0x1800a5a8b
mov r13b, 1
jmp 0x1800a5aa7
xor r13b, r13b
mov r15d, r12d
cmp r14d, 4
je 0x1800a5aa7
lea rcx, [rbp + 0x320]
call fcn.1800a6990
test al, al
je 0x1800a5aaa
mov r15d, esi
cmp r14d, 2
jne 0x1800a5abf
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1800a8f50
jmp 0x1800a5b05
cmp r14d, 1
jne 0x1800a5ad9
mov r8d, dword [rsp + 0x44]
mov rcx, rbx
mov rdx, qword [rsp + 0x48]
call fcn.1800a9030
jmp 0x1800a5b05
cmp r14d, 3
jne 0x1800a5af3
mov r8d, dword [rsp + 0x44]
mov rcx, rbx
mov rdx, qword [rsp + 0x48]
call fcn.1800a9220
jmp 0x1800a5b05
cmp r14d, 4
jne 0x1800a610b
mov rcx, rbx
call fcn.1800a8e20
test eax, eax
jne 0x1800a6110
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 0x1800a5b54
mov qword [rsp + 0x68], rdi
test r13b, r13b
je 0x1800a5b8a
lea rcx, [rbp + 0xb8]
dec rcx
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x1800a5b71
movzx eax, word [0x18032b330]
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 0x1800a5be7
cmp r14d, 4
je 0x1800a5be7
movzx r12d, cx
mov word [rsp + 0x54], cx
mov word [rbp - 0x74], r12w
mov word [rsp + 0x56], r15w
test r15d, r15d
jne 0x1800a5c0f
mov eax, dword [rbx + 0x88]
test eax, eax
js 0x1800a5c0f
mov r12d, dword [rsp + 0x40]
add eax, r12d
mov dword [rsp + 0x60], eax
jmp 0x1800a5c18
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, [0x1800aa810]
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.1800a9d80
test eax, eax
je 0x1800a5d3b
mov rcx, rbx
call fcn.1800a8720
mov eax, 0x400
jmp 0x1800a6110
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 0x1800a5d60
mov rcx, rbx
call fcn.1800a8720
mov eax, dword [rbx + 0x24]
jmp 0x1800a6110
mov dword [rbx + 0x44], 0x12345678
lea r9, [0x18032b5e0]
mov dword [rbx + 0x48], 0x23456789
mov dword [rbx + 0x4c], 0x34567890
mov r8, qword [rbx]
test r8, r8
je 0x1800a5dd4
movzx eax, byte [r8]
test al, al
je 0x1800a5dd4
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 0x1800a5d84
cmp byte [0x1804b76c8], sil
jne 0x1800a5df5
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.180215238
mov rdi, rsi
call fcn.18021520c
sar eax, 7
mov byte [rbp + rdi + 0x308], al
inc rdi
cmp rdi, 0xc
jl 0x1800a5df8
mov eax, dword [rsp + 0x58]
lea rdi, [0x18032b5e0]
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 0x1800a5e30
cmp qword [rbx], rsi
je 0x1800a5edb
cmp r14d, 4
je 0x1800a5ed0
mov r8d, listen
lea rdx, [rbp + 0x308]
mov rcx, rbx
call fcn.1800aa820
add dword [rbx + 0x28], 0xc
cmp qword [rbx], rsi
je 0x1800a5edb
cmp r14d, 4
jne 0x1800a5ede
mov r13d, esi
mov byte [rbx + 0x41], r13b
cmp r14d, 4
je 0x1800a5f10
cmp r15d, 8
jne 0x1800a5eff
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1800a8790
mov esi, eax
jmp 0x1800a5f16
test r15d, r15d
jne 0x1800a5f16
mov rcx, rbx
call fcn.1800a8980
mov esi, eax
jmp 0x1800a5f16
mov dword [rbx + 0xb8], esi
mov rcx, rbx
mov byte [rbx + 0x41], 0
call fcn.1800a8720
mov ecx, dword [rbx + 0xb8]
add dword [rbx + 0x28], ecx
mov eax, dword [rbx + 0x24]
test eax, eax
jne 0x1800a6110
test esi, esi
jne 0x1800a5d31
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 0x1800a5fd9
cmp qword [rbx], 0
je 0x1800a5f72
cmp r14d, 4
jne 0x1800a5fd9
movzx eax, word [rsp + 0x54]
mov word [rsp + 0x56], r15w
test al, 1
jne 0x1800a5f8e
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.1800a9380
test al, al
je 0x1800a5fcf
mov r8, rbx
lea rdx, [0x1800aa810]
lea rcx, [rsp + 0x50]
call fcn.1800a9d80
test eax, eax
jne 0x1800a5d31
mov edx, dword [rbx + 0x28]
mov rcx, rbx
call fcn.1800a9380
test al, al
jne 0x1800a601d
mov eax, 0x2000000
jmp 0x1800a6110
cmp word [rsp + 0x56], r15w
jne 0x1800a5fea
test r15d, r15d
jne 0x1800a5ff4
test dl, dl
jne 0x1800a5ff4
mov eax, 0x4000000
jmp 0x1800a6110
mov r8, rbx
lea rdx, [0x1800aa810]
lea rcx, [rsp + 0x50]
call fcn.1800a9be0
test eax, eax
jne 0x1800a5d31
movzx eax, word [rbp - 0x74]
add dword [rbx + 0x28], 0x10
mov word [rsp + 0x54], ax
mov eax, dword [rbx + 0x24]
test eax, eax
jne 0x1800a6110
mov rcx, qword [rsp + 0x78]
call fcn.1800b787c
mov r8, qword [rsp + 0x78]
mov rcx, rax
mov rdx, qword [rbp + 0xa8]
mov rdi, rax
call fcn.18020cd80
mov ecx, 0x388
mov qword [rbp + 0xa8], rdi
call fcn.1800b70fc
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 0x1800a6070
mov rax, qword [rax]
mov qword [rcx], rax
mov rcx, qword [rbx + 0x60]
test rcx, rcx
jne 0x1800a60da
mov qword [rbx + 0x60], r8
xor eax, eax
jmp 0x1800a6110
lea rax, [rcx + 0x380]
cmp qword [rax], 0
je 0x1800a6100
nop word [rax + rax]
mov rcx, qword [rax]
lea rax, [rcx + 0x380]
cmp qword [rax], 0
jne 0x1800a60f0
mov qword [rcx + 0x380], r8
xor eax, eax
jmp 0x1800a6110
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.1800b7d20
add rsp, 0x668
pop rbx
pop rbp
ret