Function at 0x1000bf70
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4dc
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x14], 0
je 0x1000bf95
mov eax, 0x40000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebx + 0x2c], 0
je 0x1000bfa9
mov eax, 0x50000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebx]
lea edx, [esp + 0x3e0]
mov ecx, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 0xc
sub edx, ecx
mov dword [esp + 0x38], eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x1000bfc2
mov cl, byte [esp + 0x3e0]
test cl, cl
je 0x1000c910
lea eax, [esp + 0x3e0]
cmp cl, 0x5c
jne 0x1000bfed
mov byte [eax], 0x2f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1000bfe5
lea ecx, [esp + 0x3e0]
mov esi, 8
call fcn.1000b6f0
xor ecx, ecx
mov dword [ebx + 0x8c], 0
test al, al
mov dword [ebx + 0x7c], ecx
mov eax, dword [ebp + 0xc]
cmovne esi, ecx
mov byte [ebx + 0x80], cl
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x90], ecx
mov dword [ebx + 0x74], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x88], ecx
test eax, eax
je 0x1000c910
test ecx, ecx
je 0x1000c910
lea eax, [esp + 0x70]
mov dword [ebx + 0x4c], 0x80000000
push eax
mov dword [ebx + 0x70], ecx
mov byte [ebx + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x56]
and eax, 0xf
push 0
lea ecx, [ecx - 0x3c]
shl ecx, 4
or ecx, eax
mov eax, dword [esp + 0x5e]
and eax, 0x1f
shl ecx, 5
or ecx, eax
mov eax, dword [esp + 0x62]
movzx edi, cx
and eax, 0x3f
mov ecx, dword [esp + 0x60]
shl ecx, 6
or ecx, eax
mov eax, dword [esp + 0x64]
add eax, eax
shl ecx, 5
and eax, 0x1f
or ecx, eax
mov eax, dword [esp + 0x38]
movzx esi, cx
mov ecx, dword [esp + 0x34]
sub ecx, 0xd53e8000
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.1003b430
mov ecx, edx
shl edi, 0x10
or edi, esi
mov dword [esp + 0x14], eax
mov dword [ebx + 0x50], eax
xor edx, edx
mov dword [ebx + 0x54], ecx
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], ecx
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], ecx
mov dword [ebx + 0x68], edi
mov al, byte [0x1004cc18]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3dc], 0
mov byte [esp + 0xb8], al
nop dword [eax]
mov cl, byte [esp + edx + 0x3e0]
lea edx, [edx + 1]
mov byte [esp + edx + 0x1c7], cl
test cl, cl
jne 0x1000c140
lea edx, [esp + 0x1c8]
lea esi, [edx + 1]
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x1000c160
mov byte [esp + 0x2cc], al
sub edx, esi
xor eax, eax
mov dword [esp + 0x98], edx
cmp dword [ebx], 0
mov word [esp + 0xaa], ax
mov dword [esp + 0x8c], eax
mov eax, 8
mov dword [esp + 0x1c4], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0x3d0], 1
mov dword [esp + 0x3d8], 0
mov dword [esp + 0x80], 0x140b17
mov dword [esp + 0x88], edi
mov word [esp + 0x84], ax
je 0x1000c1e5
mov eax, 9
mov word [esp + 0x84], ax
mov word [esp + 0xac], ax
mov eax, dword [esp + 0x18]
movzx ecx, ax
mov dword [esp + 0x3c], ecx
mov word [esp + 0x86], cx
test eax, eax
jne 0x1000c21a
mov ecx, dword [ebx + 0x70]
test ecx, ecx
js 0x1000c21a
mov eax, dword [esp + 0x38]
add eax, ecx
mov dword [esp + 0x90], eax
jmp 0x1000c228
mov ecx, dword [ebx + 0x70]
mov dword [esp + 0x90], 0
xor eax, eax
mov edx, dword [ebx + 0x5c]
mov word [esp + 0xa8], ax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0xb0], eax
mov eax, dword [ebx + 0x18]
add eax, dword [ebx + 0x10]
mov dword [esp + 0xb4], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1bc], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x1c0], eax
mov al, byte [ebx + 0x58]
mov byte [esp + 0x21], al
mov eax, edx
mov esi, dword [esp + 0x40]
mov dword [esp + 0x94], ecx
mov ecx, dword [ebx + 0x58]
shrd ecx, eax, 8
mov dword [esp + 0x1c], 0xd5455
mov byte [esp + 0x22], cl
mov ecx, dword [ebx + 0x58]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x58]
shrd eax, edx, 0x18
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov byte [esp + 0x24], al
mov al, byte [ebx + 0x50]
mov byte [esp + 0x23], cl
mov ecx, edx
mov byte [esp + 0x25], al
mov eax, esi
shrd ecx, eax, 8
mov byte [esp + 0x20], 7
movq xmm0, qword [esp + 0x1c]
mov byte [esp + 0x26], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov al, byte [ebx + 0x60]
shrd edx, esi, 0x18
mov byte [esp + 0x29], al
mov byte [esp + 0x27], cl
mov ecx, dword [ebx + 0x60]
mov byte [esp + 0x28], dl
mov edx, dword [ebx + 0x64]
mov eax, edx
shrd ecx, eax, 8
movq qword [esp + 0x48], xmm0
mov byte [esp + 0x2a], cl
mov ecx, dword [ebx + 0x60]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x60]
shrd eax, edx, 0x18
mov byte [esp + 0x2b], cl
lea ecx, [esp + 0x80]
mov byte [esp + 0x2c], al
mov eax, dword [esp + 0x30]
push ebx
mov dword [esp + 0xa0], 0x11
mov dword [esp + 0xa4], 9
mov byte [esp + 0x54], al
mov byte [esp + 0x4e], 5
call fcn.1000ada0
add esp, 4
test eax, eax
je 0x1000c373
cmp byte [ebx + 0x80], 0
je 0x1000c358
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x1000c358
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x74]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x70], eax
mov eax, 0x400
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x9c]
add eax, 0x1e
add eax, dword [esp + 0x98]
add dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x1000c3be
cmp byte [ebx + 0x80], 0
je 0x1000c3a8
mov ecx, dword [ebx + 0x7c]
test ecx, ecx
je 0x1000c3a8
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x74]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x70], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebx + 0x30], 0x12345678
mov dword [ebx + 0x34], 0x23456789
mov dword [ebx + 0x38], 0x34567890
mov edx, dword [ebx]
test edx, edx
je 0x1000c42d
nop dword [eax]
mov al, byte [edx]
test al, al
je 0x1000c42d
mov ecx, dword [ebx + 0x30]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x1004c600]
xor eax, ecx
mov ecx, dword [ebx + 0x38]
mov dword [ebx + 0x30], eax
movzx eax, al
add eax, dword [ebx + 0x34]
imul eax, eax, 0x8088405
inc eax
mov dword [ebx + 0x34], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1004c600]
mov dword [ebx + 0x38], ecx
add edx, 1
jne 0x1000c3e0
cmp byte [0x10053ebc], 0
jne 0x1000c44f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
push esi
call fcn.1002878f
add esp, 4
xor esi, esi
call fcn.1002876e
sar eax, 7
mov byte [esp + esi + 0x64], al
inc esi
cmp esi, 0xc
jl 0x1000c451
mov eax, dword [esp + 0x88]
shr eax, 8
xor edi, edi
mov byte [esp + 0x6f], al
mov al, byte [esp + edi + 0x64]
mov ecx, dword [ebx + 0x30]
mov byte [esp + 0xc], al
movsx eax, al
xor eax, ecx
mov edx, dword [ebx + 0x38]
movzx eax, al
mov esi, edx
shr ecx, 8
and esi, 0xfffd
or esi, 2
mov eax, dword [eax*4 + 0x1004c600]
xor eax, ecx
mov dword [ebx + 0x30], eax
movzx eax, al
add eax, dword [ebx + 0x34]
imul eax, eax, 0x8088405
inc eax
mov dword [ebx + 0x34], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x1004c600]
mov eax, esi
xor eax, 1
mov dword [ebx + 0x38], edx
imul eax, esi
shr eax, 8
xor al, byte [esp + 0xc]
mov byte [esp + edi + 0x64], al
inc edi
cmp edi, 0xc
jl 0x1000c473
mov eax, dword [ebx]
test eax, eax
je 0x1000c4fb
push 0xc
lea eax, [esp + 0x68]
mov ecx, ebx
push eax
call fcn.1000b9a0
add dword [ebx + 0x18], 0xc
mov eax, dword [ebx]
mov edi, dword [esp + 0x18]
xor esi, esi
test eax, eax
setne al
mov byte [ebx + 0x2d], al
cmp edi, 8
jne 0x1000c521
lea eax, [esp + 0x80]
mov ecx, ebx
push eax
call fcn.1000bc40
mov esi, eax
jmp 0x1000c57f
test edi, edi
jne 0x1000c57f
mov dword [esp + 0x14], edi
mov ecx, ebx
push 0x4000
lea edi, [ebx + 0x94]
push edi
call fcn.1000bb80
mov esi, eax
test esi, esi
je 0x1000c56f
cmp esi, 0xffffffff
je 0x1000c56f
push esi
push edi
mov ecx, ebx
call fcn.1000b9a0
cmp eax, esi
jne 0x1000c67b
add dword [esp + 0x14], esi
mov ecx, ebx
push 0x4000
push edi
call fcn.1000bb80
mov esi, eax
test esi, esi
jne 0x1000c542
mov eax, dword [esp + 0x14]
xor esi, esi
mov dword [ebx + 0x90], eax
mov edi, dword [esp + 0x18]
cmp byte [ebx + 0x80], 0
mov byte [ebx + 0x2d], 0
je 0x1000c59a
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x1000c59a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x90]
add dword [ebx + 0x18], ecx
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x74]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x70], edx
test eax, eax
jne 0x1000c915
test esi, esi
jne 0x1000c365
add ecx, dword [esp + 0x38]
cmp dword [esp + 0x90], ecx
mov eax, dword [ebx + 0x78]
sete byte [esp + 0xc]
mov dword [esp + 0x8c], eax
cmp byte [ebx + 0x1c], 0
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
je 0x1000c685
cmp dword [ebx], esi
jne 0x1000c685
mov eax, dword [esp + 0x3c]
mov word [esp + 0x86], ax
mov ax, word [esp + 0x84]
test al, 1
jne 0x1000c625
mov ecx, 0xfff7
and ax, cx
mov word [esp + 0x84], ax
mov word [esp + 0xac], ax
mov ecx, ebx
mov eax, dword [esp + 0xb4]
sub eax, dword [ebx + 0x10]
push eax
call fcn.1000baf0
test al, al
je 0x1000c66d
push ebx
lea ecx, [esp + 0x84]
call fcn.1000ada0
add esp, 4
test eax, eax
jne 0x1000c365
push dword [ebx + 0x18]
mov ecx, ebx
call fcn.1000baf0
test al, al
jne 0x1000c86d
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, 0x60000
jmp 0x1000c57b
mov eax, dword [esp + 0x3c]
cmp word [esp + 0x86], ax
jne 0x1000c902
test edi, edi
jne 0x1000c6a6
cmp byte [esp + 0xc], 0
je 0x1000c902
push 1
lea eax, [esp + 0x11]
mov byte [esp + 0x11], 0x50
push eax
push ebx
call fcn.1000b980
add esp, 0xc
mov byte [esp + 0xd], 0x4b
lea eax, [esp + 0xd]
push 1
push eax
push ebx
call fcn.1000b980
add esp, 0xc
mov byte [esp + 0xe], 7
lea eax, [esp + 0xe]
push 1
push eax
push ebx
call fcn.1000b980
add esp, 0xc
mov byte [esp + 0xe], 8
lea eax, [esp + 0xe]
push 1
push eax
push ebx
call fcn.1000b980
mov al, byte [esp + 0x98]
add esp, 0xc
mov byte [esp + 0xf], al
lea eax, [esp + 0xf]
push 1
push eax
push ebx
call fcn.1000b980
mov eax, dword [esp + 0x98]
add esp, 0xc
shr eax, 8
mov byte [esp + 0xf], al
lea eax, [esp + 0xf]
push 1
push eax
push ebx
call fcn.1000b980
mov eax, dword [esp + 0x98]
add esp, 0xc
shr eax, 0x10
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
push 1
push eax
push ebx
call fcn.1000b980
mov eax, dword [esp + 0x98]
add esp, 0xc
shr eax, 0x18
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
push 1
push eax
push ebx
call fcn.1000b980
mov al, byte [esp + 0x9c]
add esp, 0xc
mov byte [esp + 0x11], al
lea eax, [esp + 0x11]
push 1
push eax
push ebx
call fcn.1000b980
mov eax, dword [esp + 0x9c]
add esp, 0xc
shr eax, 8
mov byte [esp + 0x11], al
lea eax, [esp + 0x11]
push 1
push eax
push ebx
call fcn.1000b980
mov eax, dword [esp + 0x9c]
add esp, 0xc
shr eax, 0x10
mov byte [esp + 0x12], al
lea eax, [esp + 0x12]
push 1
push eax
push ebx
call fcn.1000b980
mov eax, dword [esp + 0x9c]
add esp, 0xc
shr eax, 0x18
mov byte [esp + 0x12], al
lea eax, [esp + 0x12]
push 1
push eax
push ebx
call fcn.1000b980
mov al, byte [esp + 0xa0]
add esp, 0xc
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push ebx
call fcn.1000b980
mov eax, dword [esp + 0xa0]
add esp, 0xc
shr eax, 8
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push ebx
call fcn.1000b980
mov eax, dword [esp + 0xa0]
add esp, 0xc
shr eax, 0x10
mov byte [esp + 0xc], al
lea eax, [esp + 0xc]
push 1
push eax
push ebx
call fcn.1000b980
mov eax, dword [esp + 0xa0]
add esp, 0xc
shr eax, 0x18
mov byte [esp + 0xc], al
lea eax, [esp + 0xc]
push 1
push eax
push ebx
call fcn.1000b980
mov ax, word [esp + 0xb8]
add esp, 0xc
add dword [ebx + 0x18], 0x10
mov word [esp + 0x84], ax
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x1000c915
push dword [esp + 0xa0]
call fcn.1001a74f
add esp, 4
mov esi, eax
push dword [esp + 0xa0]
push dword [esp + 0x1c4]
push esi
call fcn.1001d110
add esp, 0xc
mov dword [esp + 0x1c0], esi
push 0x360
call fcn.1001a1c6
mov edx, eax
lea esi, [esp + 0x84]
mov ecx, 0xd8
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x44]
add esp, 4
test ecx, ecx
jne 0x1000c8db
mov dword [ebx + 0x44], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ecx + 0x35c]
test eax, eax
je 0x1000c8f1
mov ecx, eax
mov eax, dword [ecx + 0x35c]
test eax, eax
jne 0x1000c8e5
mov dword [ecx + 0x35c], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x4000000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10