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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
lea rbx, [rcx + 0xa8]
mov rsi, rdx
mov rdi, rcx
mov r14d, 0x78
mov r8d, r14d
mov rcx, rbx
xor edx, edx
call fcn.180056d30
mov edx, 0x4000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor ebp, ebp
mov qword [rbx], rax
test rax, rax
je 0x18000b7e7
lea ebx, [rbp + 7]
cmp word [rdi + 0x66], bp
je 0x18000b673
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rdi + 0xe0], rax
test rax, rax
je 0x18000b7e7
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.180056d30
mov rax, qword [rdi + 0xe0]
mov edx, 0x2d00
xor ecx, ecx
mov dword [rax + 8], reloc.WS2_32.dll_ntohs
mov rax, qword [rdi + 0xe0]
mov byte [rax + 0x70], bl
mov rax, qword [rdi + 0xe0]
mov byte [rax + 0x6c], bpl
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, qword [rdi + 0xe0]
mov qword [rcx + 0x40], rax
test rax, rax
je 0x18000b7e7
mov r14d, 0x8000
xor ecx, ecx
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, qword [rdi + 0xe0]
mov qword [rcx + 0x48], rax
test rax, rax
je 0x18000b7e7
mov rcx, qword [rdi + 0xe0]
mov rax, qword [rcx + 0x48]
add rax, r14
mov qword [rcx + 0x50], rax
mov rcx, qword [rdi + 0xe0]
mov rax, qword [rcx + 0x48]
mov qword [rcx + 0x60], rax
mov rcx, qword [rdi + 0xe0]
mov rax, qword [rcx + 0x60]
mov qword [rcx + 0x58], rax
mov edx, dword [rdi]
test dl, 8
je 0x18000b69e
mov eax, dword [rsi + 0x28]
mov dword [rdi + 0x70], eax
mov eax, dword [rsi + 0x30]
mov dword [rdi + 0x74], eax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x8a], rax
mov rcx, qword [rsi + 0x30]
mov qword [rdi + 0x92], rcx
jmp 0x18000b6ac
mov rax, qword [rdi + 0x8a]
mov rcx, qword [rdi + 0x92]
mov qword [rdi + 0xf8], rcx
movzx ecx, word [rdi + 0x64]
mov qword [rdi + 0xf0], rax
test cl, 8
je 0x18000b6c8
mov al, byte [rdi + 0x69]
jmp 0x18000b6cb
mov al, byte [rdi + 0x6f]
mov byte [rdi + 0x118], al
test dl, 4
je 0x18000b6e2
mov rdx, qword [rdi + 0x9a]
jmp 0x18000b7d6
test cl, 1
je 0x18000b787
mov r8, qword [rdi + 0x50]
mov qword [rdi + 0x110], shutdown
mov dword [rdi + 0x100], 0x12345678
mov dword [rdi + 0x104], 0x23456789
mov dword [rdi + 0x108], 0x34567890
test r8, r8
je 0x18000b787
mov al, byte [r8]
test al, al
je 0x18000b787
lea r9, [0x1800a1b70]
mov edx, dword [rdi + 0x100]
inc r8
mov ecx, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
xor edx, dword [r9 + rax*4]
movzx eax, dl
add eax, dword [rdi + 0x104]
imul ecx, eax, 0x8088405
mov dword [rdi + 0x100], edx
mov edx, dword [rdi + 0x108]
inc ecx
mov dword [rdi + 0x104], ecx
movzx eax, byte [rdi + 0x107]
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [r9 + rcx*4]
mov dword [rdi + 0x108], edx
mov al, byte [r8]
test al, al
jne 0x18000b72b
mov ecx, dword [rdi + 0x34]
xor r8d, r8d
mov rdx, qword [rdi + 0x9a]
add rcx, 0x1c
add rdx, rcx
mov rcx, rdi
call fcn.18000c9c4
test eax, eax
jne 0x18000b7ec
lea r8d, [rax + 2]
mov rcx, rdi
lea rdx, [rsp + 0x40]
call fcn.18000c69c
test eax, eax
je 0x18000b7ec
movzx ecx, word [rdi + 0x78]
movzx eax, word [rsp + 0x40]
mov rdx, qword [rdi + 0x9a]
add rcx, rax
add rdx, 0x1e
add rdx, rcx
xor r8d, r8d
mov rcx, rdi
call fcn.18000c9c4
test eax, eax
je 0x18000b7f7
jmp 0x18000b7ec
mov ebx, 2
mov rcx, rdi
mov dword [rdi + 0x10], ebx
call fcn.180007690
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret