Function at 0x1400274b0
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 + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x78]
add rcx, 0xa8
call sub.MSVCR100.dll_memset
mov edx, 0x4000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rdi + 0xa8], rax
test rax, rax
je 0x1400277b9
cmp word [rdi + 0x66], 0
je 0x1400275c4
mov edx, 0x78
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rdi + 0xe0], rax
test rax, rax
je 0x1400277b9
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x78]
call sub.MSVCR100.dll_memset
mov r11, qword [rdi + 0xe0]
mov edx, 0x2d00
mov dword [r11 + 8], reloc.WSOCK32.dll_ntohs
mov rax, qword [rdi + 0xe0]
xor ecx, ecx
mov byte [rax + 0x70], 7
mov rax, qword [rdi + 0xe0]
mov byte [rax + 0x6c], 0
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, qword [rdi + 0xe0]
mov qword [rcx + 0x40], rax
test rax, rax
je 0x1400277b9
mov edx, 0x8000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, qword [rdi + 0xe0]
mov qword [rcx + 0x48], rax
test rax, rax
je 0x1400277b9
mov rcx, qword [rdi + 0xe0]
mov rax, qword [rcx + 0x48]
add rax, 0x8000
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 ecx, dword [rdi]
test cl, 8
je 0x1400275ed
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 rax, qword [rsi + 0x30]
mov qword [rdi + 0x92], rax
mov rax, qword [rdi + 0x8a]
movzx edx, word [rdi + 0x64]
mov qword [rdi + 0xf0], rax
mov rax, qword [rdi + 0x92]
mov qword [rdi + 0xf8], rax
test dl, 8
je 0x140027618
movzx eax, byte [rdi + 0x69]
jmp 0x14002761c
movzx eax, byte [rdi + 0x6f]
mov byte [rdi + 0x118], al
test cl, 4
je 0x140027633
mov rax, qword [rdi + 0x9a]
jmp 0x14002776f
test dl, 1
je 0x1400276fe
mov r8, qword [rdi + 0x50]
mov qword [rdi + 0x110], reloc.WSOCK32.dll_ioctlsocket
mov dword [rdi + 0x100], 0x12345678
mov dword [rdi + 0x104], 0x23456789
mov dword [rdi + 0x108], 0x34567890
test r8, r8
je 0x1400276fe
movzx eax, byte [r8]
test al, al
je 0x1400276fe
mov r9d, dword [rdi + 0x100]
mov r11d, dword [rdi + 0x104]
mov r10d, dword [rdi + 0x108]
lea rbx, [0x140118b60]
nop word [rax + rax]
xor rax, r9
inc r8
movzx ecx, al
mov eax, r9d
mov edx, dword [rbx + rcx*4]
shr eax, 8
mov ecx, r10d
xor edx, eax
shr ecx, 8
movzx eax, dl
mov dword [rdi + 0x100], edx
mov r9d, edx
add r11d, eax
movzx edx, r10b
imul r11d, r11d, 0x8088405
inc r11d
mov dword [rdi + 0x104], r11d
movzx eax, byte [rdi + 0x107]
xor rdx, rax
mov eax, dword [rbx + rdx*4]
xor eax, ecx
mov r10d, eax
mov dword [rdi + 0x108], eax
movzx eax, byte [r8]
test al, al
jne 0x1400276a0
test byte [rdi], 1
mov ecx, dword [rdi + 0x34]
mov rax, qword [rdi + 0x9a]
lea r8, [rcx + rax + 0x1c]
jne 0x14002773f
mov edx, dword [rdi + 0x14]
mov rcx, qword [rdi + 8]
xor r9d, r9d
add rdx, r8
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140027743
mov dword [rdi + 0x10], 7
jmp 0x1400277c0
mov qword [rdi + 0x20], r8
lea rdx, [rsp + 0x30]
mov r8d, 2
mov rcx, rdi
call fcn.140026b10
test eax, eax
je 0x140027733
movzx eax, word [rsp + 0x30]
movzx ecx, word [rdi + 0x78]
add ecx, eax
mov eax, dword [rdi + 0x9a]
lea eax, [rcx + rax + 0x1e]
test byte [rdi], 1
jne 0x1400277a5
mov edx, dword [rdi + 0x14]
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x30]
add rdx, rax
xor r9d, r9d
mov qword [rsp + 0x30], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140027733
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov qword [rdi + 0x20], rax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov dword [rdi + 0x10], 2
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.140027420