Function at 0x1800a5880
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 0x1800a58c0
mov eax, 0x40000
jmp 0x1800a6060
cmp byte [rcx + 0x40], 0
je 0x1800a58d0
mov eax, 0x50000
jmp 0x1800a6060
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 0x1800a5902
cmp r14d, 4
cmovne eax, ecx
mov dword [rsp + 0x40], eax
mov r8d, 0x104
lea rcx, [rbp + 0x320]
call fcn.1802152c4
mov word [rbp + 0x526], si
cmp word [rbp + 0x320], si
jne 0x1800a592e
mov eax, 0x10000
jmp 0x1800a6050
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 0x1800a5959
mov word [rax], cx
add rax, 2
cmp word [rax], si
jne 0x1800a5950
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x650], r13
mov qword [rsp + 0x640], r15
mov r12d, 8
cmp r14d, 4
jne 0x1800a59ab
lea rcx, [rbp + 0x320]
mov rax, rdi
nop dword [rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1800a5990
cmp word [rbp + rax*2 + 0x31e], 0x2f
je 0x1800a59ab
mov r13b, 1
jmp 0x1800a59c7
xor r13b, r13b
mov r15d, r12d
cmp r14d, 4
je 0x1800a59c7
lea rcx, [rbp + 0x320]
call fcn.1800a68b0
test al, al
je 0x1800a59ca
mov r15d, esi
cmp r14d, 2
jne 0x1800a59df
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1800a8e70
jmp 0x1800a5a25
cmp r14d, 1
jne 0x1800a59f9
mov r8d, dword [rsp + 0x44]
mov rcx, rbx
mov rdx, qword [rsp + 0x48]
call fcn.1800a8f50
jmp 0x1800a5a25
cmp r14d, 3
jne 0x1800a5a13
mov r8d, dword [rsp + 0x44]
mov rcx, rbx
mov rdx, qword [rsp + 0x48]
call fcn.1800a9140
jmp 0x1800a5a25
cmp r14d, 4
jne 0x1800a602b
mov rcx, rbx
call fcn.1800a8d40
test eax, eax
jne 0x1800a6030
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 0x1800a5a74
mov qword [rsp + 0x68], rdi
test r13b, r13b
je 0x1800a5aaa
lea rcx, [rbp + 0xb8]
dec rcx
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x1800a5a91
movzx eax, word [0x18032b370]
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 0x1800a5b07
cmp r14d, 4
je 0x1800a5b07
movzx r12d, cx
mov word [rsp + 0x54], cx
mov word [rbp - 0x74], r12w
mov word [rsp + 0x56], r15w
test r15d, r15d
jne 0x1800a5b2f
mov eax, dword [rbx + 0x88]
test eax, eax
js 0x1800a5b2f
mov r12d, dword [rsp + 0x40]
add eax, r12d
mov dword [rsp + 0x60], eax
jmp 0x1800a5b38
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, [0x1800aa730]
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.1800a9ca0
test eax, eax
je 0x1800a5c5b
mov rcx, rbx
call fcn.1800a8640
mov eax, 0x400
jmp 0x1800a6030
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 0x1800a5c80
mov rcx, rbx
call fcn.1800a8640
mov eax, dword [rbx + 0x24]
jmp 0x1800a6030
mov dword [rbx + 0x44], 0x12345678
lea r9, [0x18032b630]
mov dword [rbx + 0x48], 0x23456789
mov dword [rbx + 0x4c], 0x34567890
mov r8, qword [rbx]
test r8, r8
je 0x1800a5cf4
movzx eax, byte [r8]
test al, al
je 0x1800a5cf4
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 0x1800a5ca4
cmp byte [0x1804b76d8], sil
jne 0x1800a5d15
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.180215338
mov rdi, rsi
call fcn.18021530c
sar eax, 7
mov byte [rbp + rdi + 0x308], al
inc rdi
cmp rdi, 0xc
jl 0x1800a5d18
mov eax, dword [rsp + 0x58]
lea rdi, [0x18032b630]
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 0x1800a5d50
cmp qword [rbx], rsi
je 0x1800a5dfb
cmp r14d, 4
je 0x1800a5df0
mov r8d, recvfrom
lea rdx, [rbp + 0x308]
mov rcx, rbx
call fcn.1800aa740
add dword [rbx + 0x28], 0xc
cmp qword [rbx], rsi
je 0x1800a5dfb
cmp r14d, 4
jne 0x1800a5dfe
mov r13d, esi
mov byte [rbx + 0x41], r13b
cmp r14d, 4
je 0x1800a5e30
cmp r15d, 8
jne 0x1800a5e1f
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1800a86b0
mov esi, eax
jmp 0x1800a5e36
test r15d, r15d
jne 0x1800a5e36
mov rcx, rbx
call fcn.1800a88a0
mov esi, eax
jmp 0x1800a5e36
mov dword [rbx + 0xb8], esi
mov rcx, rbx
mov byte [rbx + 0x41], 0
call fcn.1800a8640
mov ecx, dword [rbx + 0xb8]
add dword [rbx + 0x28], ecx
mov eax, dword [rbx + 0x24]
test eax, eax
jne 0x1800a6030
test esi, esi
jne 0x1800a5c51
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 0x1800a5ef9
cmp qword [rbx], 0
je 0x1800a5e92
cmp r14d, 4
jne 0x1800a5ef9
movzx eax, word [rsp + 0x54]
mov word [rsp + 0x56], r15w
test al, 1
jne 0x1800a5eae
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.1800a92a0
test al, al
je 0x1800a5eef
mov r8, rbx
lea rdx, [0x1800aa730]
lea rcx, [rsp + 0x50]
call fcn.1800a9ca0
test eax, eax
jne 0x1800a5c51
mov edx, dword [rbx + 0x28]
mov rcx, rbx
call fcn.1800a92a0
test al, al
jne 0x1800a5f3d
mov eax, 0x2000000
jmp 0x1800a6030
cmp word [rsp + 0x56], r15w
jne 0x1800a5f0a
test r15d, r15d
jne 0x1800a5f14
test dl, dl
jne 0x1800a5f14
mov eax, 0x4000000
jmp 0x1800a6030
mov r8, rbx
lea rdx, [0x1800aa730]
lea rcx, [rsp + 0x50]
call fcn.1800a9b00
test eax, eax
jne 0x1800a5c51
movzx eax, word [rbp - 0x74]
add dword [rbx + 0x28], 0x10
mov word [rsp + 0x54], ax
mov eax, dword [rbx + 0x24]
test eax, eax
jne 0x1800a6030
mov rcx, qword [rsp + 0x78]
call fcn.1800b7c18
mov r8, qword [rsp + 0x78]
mov rcx, rax
mov rdx, qword [rbp + 0xa8]
mov rdi, rax
call fcn.18020cf10
mov ecx, 0x388
mov qword [rbp + 0xa8], rdi
call fcn.1800b7490
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 0x1800a5f90
mov rax, qword [rax]
mov qword [rcx], rax
mov rcx, qword [rbx + 0x60]
test rcx, rcx
jne 0x1800a5ffa
mov qword [rbx + 0x60], r8
xor eax, eax
jmp 0x1800a6030
lea rax, [rcx + 0x380]
cmp qword [rax], 0
je 0x1800a6020
nop word [rax + rax]
mov rcx, qword [rax]
lea rax, [rcx + 0x380]
cmp qword [rax], 0
jne 0x1800a6010
mov qword [rcx + 0x380], r8
xor eax, eax
jmp 0x1800a6030
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.1800b80c0
add rsp, 0x668
pop rbx
pop rbp
ret