Function at 0x1100420f
Capabilities:
Check for time delay via gettickcount
Encode data using xor
Generate random numbers using the delphi lcg
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcf4
push ebx
push esi
push edi
call fcn.11003da5
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
and eax, 0x11
mov ebx, 0x11005010
cmp eax, 0x111
je 0x1100465f
call esi
mov dword [0x1100500c], eax
call fcn.11003e97
mov ecx, eax
sub ecx, dword [0x1100500c]
push 3
xor edx, edx
mov eax, ecx
pop esi
div esi
test ecx, 0xffff8000
jne 0x11004510
xor eax, eax
xor edi, edi
mov dword [esp + 0x8e4], edi
mov word [esp + 0x4d0], ax
mov dword [esp + 0x4cc], edi
mov word [esp + 0xb8], ax
call fcn.11003e97
mov ecx, eax
sub ecx, dword [0x1100500c]
xor edx, edx
mov eax, ecx
div esi
test ecx, 0xffff8000
jne 0x110043f5
push 0x110010d8
lea eax, [esp + 0x8ec]
call fcn.11004a23
push 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 0x8ec]
call fcn.11004967
mov esi, dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov eax, ecx
push eax
push edi
push 4
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], edi
je 0x110043a7
push edi
push edi
push edi
push 4
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x34], eax
cmp eax, edi
je 0x1100475c
push 0x110011b0
lea eax, [esp + 0x8ec]
call fcn.11004a07
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x210]
push 0x10
lea ecx, [esp + 0x8ec]
call fcn.11004967
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x8e8]
push eax
push edi
push 4
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call esi
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], edi
je 0x11004785
push edi
push edi
push edi
push 4
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x38], eax
cmp eax, edi
je 0x1100477c
add eax, 0xc
push eax
lea eax, [esp + 0x4d4]
call fcn.11004a07
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x110043d7
cmp eax, 2
jne 0x110048ee
push 0x104
lea eax, [esp + 0x4d4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x4d0]
call fcn.11004956
mov dword [esp + 0x8e4], eax
call fcn.11003e97
mov ecx, eax
sub ecx, dword [0x1100500c]
push 3
xor edx, edx
mov eax, ecx
pop esi
div esi
test ecx, 0xffff8000
je 0x110043fc
cmp edx, edi
jmp 0x11004512
lea eax, [esp + 0x4d0]
push eax
lea esi, [esp + 0xbc]
call fcn.110049cd
push 0x11001228
call fcn.110049cd
push edi
push edi
push 3
push edi
push 7
push 0x80000000
lea eax, [esp + 0x4e8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x1100478f
call fcn.11003dde
test eax, eax
jne 0x11004245
xor edi, edi
push edi
push edi
push edi
push 2
push edi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x20], eax
cmp eax, edi
je 0x1100479c
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0x1000
push edi
push edi
push 4
push eax
call esi
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x110047a9
mov edi, eax
call fcn.11003e14
push dword [esp + 0x1c]
mov edi, eax
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea eax, [esp + 0x84]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x110047b6
xor eax, eax
cmp dword [esp + 0xa4], eax
jne 0x110044d3
cmp dword [esp + 0xa8], edi
jbe 0x1100494f
add edi, 0x1000
push edi
push eax
push eax
push 4
push dword [esp + 0x30]
call esi
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x110047c3
call fcn.11003e97
mov ecx, eax
sub ecx, dword [0x1100500c]
push 3
xor edx, edx
mov eax, ecx
pop edi
div edi
test ecx, 0xffff8000
je 0x11004526
test edx, edx
je 0x11004880
cmp edx, 1
je 0x11004245
jmp 0x1100465f
mov edi, esi
call fcn.11003e14
add eax, esi
mov ecx, dword [eax]
mov dword [esp + 0x10], eax
lea esi, [eax + 4]
cmp ecx, 0x6d7678
jne 0x110047d0
mov eax, dword [esi]
add esi, 4
cmp eax, 1
jne 0x110047e6
mov eax, dword [esi]
mov edi, eax
imul edi, edi, 0x8088405
add esi, 4
mov ecx, dword [esi]
inc edi
mov edx, edi
xor edx, eax
add esi, 4
cmp edx, ecx
jne 0x110047fc
mov ecx, dword [esi]
mov eax, edi
imul eax, eax, 0x8088405
inc eax
mov edx, eax
xor edx, edi
add esi, 4
cmp edx, ecx
jne 0x11004812
mov ecx, dword [esi]
imul eax, eax, 0x8088405
push dword [esp + 0x1c]
inc eax
xor ecx, eax
imul eax, eax, 0x8088405
add esi, 4
inc eax
xor eax, dword [esi]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push eax
push eax
push eax
push 8
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x20], eax
test eax, eax
je 0x11004828
sub esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
add esi, 4
add ecx, esi
add ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], esi
push ecx
push 0
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
mov dword [esp + 0x1c], eax
cmp eax, ecx
je 0x11004838
mov eax, dword [esp + 0x30]
add eax, esi
add eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
cmp esi, ecx
jbe 0x1100463a
imul edi, edi, 0x343fd
add edi, 0x269ec3
mov edx, edi
shr edx, 0x10
xor byte [eax], dl
inc eax
dec esi
jne 0x11004623
lea esi, [esp + 0x4c]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], ecx
call fcn.11003d30
test eax, eax
jne 0x11004848
push 4
push 0x1000
push dword [esp + 0x30]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
call fcn.11003e97
mov ecx, eax
sub ecx, dword [0x1100500c]
push 3
xor edx, edx
mov eax, ecx
pop edi
div edi
test ecx, 0xffff8000
je 0x110046a4
test edx, edx
je 0x11004880
cmp edx, 1
jne 0x1100465f
jmp 0x11004245
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x5c], esi
call fcn.11002e40
pop ecx
cmp eax, 1
jne 0x1100485e
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.11003e97
mov ecx, eax
sub ecx, dword [0x1100500c]
push 3
xor edx, edx
mov eax, ecx
pop edi
div edi
test ecx, 0xffff8000
jne 0x11004510
push esi
call fcn.11003f5e
mov dword [esp], 0x8000
push dword [esp + 0x2c]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test edi, edi
je 0x1100492c
push edi
call fcn.11003e61
pop ecx
push edi
call fcn.11003ec4
pop ecx
mov dword [esp + 0x10], eax
test eax, eax
jne 0x11004874
push 0x11001120
mov eax, ebx
call fcn.11004a07
push 0x1100135c
jmp 0x11004925
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1100110c
lea esi, [esp + 0xbc]
mov edi, eax
call fcn.110049cd
mov eax, edi
jmp 0x11004903
call esi
push 0x110011ec
jmp 0x11004767
push 0x11001200
jmp 0x110048f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x11001230
jmp 0x11004767
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1100127c
jmp 0x11004767
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x11001290
jmp 0x11004767
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x110012a4
jmp 0x11004767
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x110012b8
jmp 0x11004767
push 0x11001120
mov eax, ebx
call fcn.11004a07
push 0x110012cc
jmp 0x11004925
push 0x11001120
mov eax, ebx
call fcn.11004a07
push 0x110012dc
jmp 0x11004925
push 0x11001120
mov eax, ebx
call fcn.11004a07
push 0x110012ec
jmp 0x11004925
push 0x11001120
mov eax, ebx
call fcn.11004a07
push 0x110012fc
jmp 0x11004925
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1100130c
jmp 0x11004767
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x11001320
jmp 0x11004767
push 0x11001120
mov eax, ebx
call fcn.11004a07
push 0x11001334
jmp 0x11004925
push 0x11001120
mov eax, ebx
call fcn.11004a07
push 0x11001344
jmp 0x11004925
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp + 0x2c], eax
xor edi, edi
push edi
push edi
push edi
push 2
push edi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, edi
jne 0x110048a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1100136c
jmp 0x11004767
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
push dword [esp + 0x38]
mov eax, dword [esp + 0x44]
add eax, ecx
add eax, dword [esp + 0x38]
push eax
push dword [esp + 0x50]
push dword [esp + 0x50]
push esi
push dword [esp + 0x44]
call dword [esp + 0x2c]
add esp, 0x1c
jmp 0x1100494f
push 0x11001214
lea esi, [esp + 0xbc]
call fcn.110049cd
mov eax, dword [esp + 0x10]
push 0xa
lea ecx, [esp + 0xbc]
call fcn.11004967
push 0x11001120
mov eax, ebx
call fcn.11004a07
lea eax, [esp + 0xb8]
push eax
mov esi, ebx
call fcn.110049cd
push 0x11001380
push 0x1100138c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10
push 0x110013a8
push ebx
push 0
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret