Function at 0x10015c40
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0xc
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
jge 0x10015c81
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10033c30]
inc eax
mov dword [0x10033c30], eax
cmp eax, 1
jne 0x10015ca8
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
xor eax, 0xbb40e64e
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 8
push ebx
push esi
push edi
call fcn.10016200
add esp, 0xc
mov dword [ebp - 0x20], 0
nop word [eax + eax]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov edx, dword [esi]
mov ecx, edx
sar eax, 7
xor ecx, eax
mov dword [ebp - 0x24], eax
mov edi, dword [esi + 8]
mov ebx, edi
movzx eax, cl
and ebx, 0xfffd
mov ecx, dword [ebp - 0x14]
or ebx, 2
shr edx, 8
mov eax, dword [ecx + eax*4]
xor eax, edx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ecx + eax*4]
mov eax, ebx
mov ecx, dword [ebp - 0x20]
xor eax, 1
imul eax, ebx
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0x24]
mov byte [ebp + ecx - 0x10], al
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 0xa
jl 0x10015cc0
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x18]
call fcn.10016200
mov edi, dword [esi + 8]
add esp, 0xc
mov ecx, dword [esi]
mov ebx, edi
movzx eax, byte [ebp - 0x10]
and ebx, 0xfffd
xor eax, ecx
or ebx, 2
movzx eax, al
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x14]
shr ecx, 8
mov eax, dword [ebx + eax*4]
xor eax, ecx
mov ecx, ebx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ecx + eax*4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
xor eax, 1
imul eax, dword [ebp - 0x18]
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0x10]
mov byte [ecx], al
mov edi, dword [esi + 8]
mov ebx, edi
mov ecx, dword [esi]
and ebx, 0xfffd
movzx eax, byte [ebp - 0xf]
or ebx, 2
xor eax, ecx
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x14]
movzx eax, al
shr ecx, 8
mov eax, dword [ebx + eax*4]
xor eax, ecx
mov ecx, ebx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ecx + eax*4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
xor eax, 1
imul eax, dword [ebp - 0x18]
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0xf]
mov byte [ecx + 1], al
mov edi, dword [esi + 8]
mov ebx, edi
mov ecx, dword [esi]
and ebx, 0xfffd
movzx eax, byte [ebp - 0xe]
or ebx, 2
xor eax, ecx
mov dword [ebp - 0x18], ebx
movzx eax, al
shr ecx, 8
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + eax*4]
xor eax, ecx
mov ecx, ebx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ecx + eax*4]
mov eax, dword [ebp - 0x18]
xor eax, 1
mov ecx, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x18]
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0xe]
mov byte [ecx + 2], al
mov edi, dword [esi + 8]
mov ebx, edi
mov ecx, dword [esi]
and ebx, 0xfffd
movzx eax, byte [ebp - 0xd]
or ebx, 2
xor eax, ecx
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x14]
movzx eax, al
shr ecx, 8
mov eax, dword [ebx + eax*4]
xor eax, ecx
mov ecx, ebx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ecx + eax*4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
xor eax, 1
imul eax, dword [ebp - 0x18]
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0xd]
mov byte [ecx + 3], al
mov edi, dword [esi + 8]
mov ebx, edi
mov ecx, dword [esi]
and ebx, 0xfffd
movzx eax, byte [ebp - 0xc]
or ebx, 2
xor eax, ecx
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x14]
movzx eax, al
shr ecx, 8
mov eax, dword [ebx + eax*4]
xor eax, ecx
mov ecx, ebx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ecx + eax*4]
mov eax, dword [ebp - 0x18]
xor eax, 1
mov ecx, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x18]
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0xc]
mov byte [ecx + 4], al
mov edi, dword [esi + 8]
mov ebx, edi
mov ecx, dword [esi]
and ebx, 0xfffd
movzx eax, byte [ebp - 0xb]
or ebx, 2
xor eax, ecx
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x14]
movzx eax, al
shr ecx, 8
mov eax, dword [ebx + eax*4]
xor eax, ecx
mov ecx, ebx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ecx + eax*4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
xor eax, 1
imul eax, dword [ebp - 0x18]
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0xb]
mov byte [ecx + 5], al
mov edi, dword [esi + 8]
mov ebx, edi
mov ecx, dword [esi]
and ebx, 0xfffd
movzx eax, byte [ebp - 0xa]
or ebx, 2
xor eax, ecx
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x14]
movzx eax, al
shr ecx, 8
mov eax, dword [ebx + eax*4]
xor eax, ecx
mov ecx, ebx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ecx + eax*4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
xor eax, 1
imul eax, dword [ebp - 0x18]
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0xa]
mov byte [ecx + 6], al
mov edi, dword [esi + 8]
mov ebx, edi
mov ecx, dword [esi]
and ebx, 0xfffd
movzx eax, byte [ebp - 9]
or ebx, 2
mov dword [ebp - 0x18], ebx
xor eax, ecx
mov ebx, dword [ebp - 0x14]
movzx eax, al
shr ecx, 8
mov eax, dword [ebx + eax*4]
xor eax, ecx
mov ecx, ebx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ecx + eax*4]
mov eax, dword [ebp - 0x18]
xor eax, 1
mov ecx, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x18]
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 9]
mov byte [ecx + 7], al
mov edi, dword [esi + 8]
mov ebx, edi
mov ecx, dword [esi]
and ebx, 0xfffd
movzx eax, byte [ebp - 8]
or ebx, 2
xor eax, ecx
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x14]
movzx eax, al
shr ecx, 8
mov eax, dword [ebx + eax*4]
xor eax, ecx
mov ecx, ebx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ecx + eax*4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
xor eax, 1
imul eax, dword [ebp - 0x18]
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 8]
mov byte [ecx + 8], al
mov edi, dword [esi + 8]
mov ebx, edi
mov ecx, dword [esi]
and ebx, 0xfffd
movzx eax, byte [ebp - 7]
or ebx, 2
xor eax, ecx
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x14]
movzx eax, al
shr ecx, 8
mov eax, dword [ebx + eax*4]
xor eax, ecx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
movzx eax, al
mov edx, dword [ebp + 0x1c]
mov ecx, ebx
shr edi, 8
shr edx, 0x10
xor edi, dword [ecx + eax*4]
mov eax, dword [ebp - 0x18]
xor eax, 1
mov ecx, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x18]
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 7]
mov byte [ecx + 9], al
mov eax, edx
mov edi, dword [esi + 8]
mov ebx, edi
mov ecx, dword [esi]
and ebx, 0xfffd
xor eax, ecx
or ebx, 2
movzx eax, al
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x14]
shr ecx, 8
mov eax, dword [ebx + eax*4]
xor eax, ecx
mov ecx, ebx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov ebx, dword [ebp + 0x1c]
shr ebx, 0x18
mov dword [ebp + 0x1c], ebx
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ecx + eax*4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
xor eax, 1
imul eax, dword [ebp - 0x18]
mov dword [esi + 8], edi
shr eax, 8
xor al, dl
mov byte [ecx + 0xa], al
mov eax, ebx
mov ecx, dword [esi]
xor eax, ecx
mov ebx, dword [ebp - 0x14]
movzx eax, al
mov edx, dword [esi + 8]
mov edi, edx
shr ecx, 8
and edi, 0xfffd
or edi, 2
mov eax, dword [ebx + eax*4]
xor eax, ecx
mov ecx, ebx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov ebx, dword [ebp + 0x1c]
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [ecx + eax*4]
mov eax, edi
mov ecx, dword [ebp - 0x1c]
xor eax, 1
imul eax, edi
mov dword [esi + 8], edx
shr eax, 8
xor al, bl
mov byte [ecx + 0xb], al
mov eax, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100127b8
mov esp, ebp
pop ebp
ret