Function at 0x1403b
Capabilities:
Check for time delay via gettickcount
Encode data using xor
Generate random numbers using the delphi lcg
Get file size
Get system information on windows
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x91c
push ebx
push esi
push edi
call fcn.00013bd5
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
and eax, 0x11
cmp eax, 0x111
je 0x1448b
call esi
mov ebx, dword [esp + 0x28]
mov dword [0x1500c], eax
call fcn.00013cca
mov ecx, eax
sub ecx, dword [0x1500c]
push 3
xor edx, edx
mov eax, ecx
pop esi
div esi
test ecx, 0xffff8000
jne 0x14318
xor eax, eax
xor edi, edi
mov dword [esp + 0x924], edi
mov word [esp + 0x510], ax
mov dword [esp + 0x50c], edi
mov word [esp + 0xf8], ax
call fcn.00013cca
mov ecx, eax
sub ecx, dword [0x1500c]
xor edx, edx
mov eax, ecx
div esi
test ecx, 0xffff8000
jne 0x14201
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
xor esi, esi
push 0x1c
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1453b
mov eax, dword [esp + 0x4c]
xor edx, edx
div dword [esp + 0xf0]
mov ecx, dword [esp + 0x58]
test edx, edx
jne 0x1414e
mov eax, 0x1000
cmp ecx, eax
jne 0x1414e
cmp dword [esp + 0x5c], eax
jne 0x1414e
cmp dword [esp + 0x64], 0x20000
jne 0x1414e
cmp dword [esp + 0x60], 4
jne 0x1414e
mov eax, dword [esp + 0x18]
cmp dword [eax], 0x696d7678
jne 0x1414e
cmp dword [eax + 4], 0x74636a6e
je 0x1416a
add dword [esp + 0x18], ecx
adc dword [esp + 0x1c], edi
cmp dword [esp + 0x1c], edi
ja 0x1416c
jb 0x140eb
cmp dword [esp + 0x18], 0x7fff0000
jae 0x1416c
jmp 0x140eb
mov esi, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], edi
cmp esi, edi
je 0x141bc
push edi
push edi
push edi
push 4
push dword [esi + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
call esi
mov dword [esp + 0x28], eax
cmp eax, edi
je 0x14574
push edi
push edi
push edi
push 6
push dword [eax + 8]
call esi
mov dword [esp + 0x3c], eax
cmp eax, edi
je 0x14584
add eax, 0x1c
push eax
lea eax, [esp + 0x514]
call fcn.0001486e
jmp 0x141e3
push 0x104
lea eax, [esp + 0x514]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x510]
call fcn.000147b8
mov dword [esp + 0x924], eax
call fcn.00013cca
mov ecx, eax
sub ecx, dword [0x1500c]
push 3
xor edx, edx
mov eax, ecx
pop esi
div esi
test ecx, 0xffff8000
je 0x14208
cmp edx, edi
jmp 0x1431a
lea eax, [esp + 0x510]
push eax
lea esi, [esp + 0xfc]
call fcn.00014832
push 0x110c4
call fcn.00014832
push edi
push edi
push 3
push edi
push 7
push 0x80000000
lea eax, [esp + 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x14594
call fcn.00013c0e
test eax, eax
jne 0x14070
xor edi, edi
push edi
push edi
push edi
push 2
push edi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x24], eax
cmp eax, edi
je 0x145a4
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0x1000
push edi
push edi
push 4
push eax
call esi
mov dword [esp + 0x14], eax
cmp eax, edi
je 0x145b4
mov edi, eax
call fcn.00013c47
push dword [esp + 0x14]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea eax, [esp + 0xa0]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x145c4
xor eax, eax
cmp dword [esp + 0xc0], eax
jne 0x142db
cmp dword [esp + 0xc4], edi
jbe 0x147b1
add edi, 0x1000
push edi
push eax
push eax
push 4
push dword [esp + 0x34]
call esi
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x145d4
call fcn.00013cca
mov ecx, eax
sub ecx, dword [0x1500c]
push 3
xor edx, edx
mov eax, ecx
pop esi
div esi
test ecx, 0xffff8000
je 0x1432e
test edx, edx
je 0x146e7
cmp edx, 1
je 0x14070
jmp 0x1448f
call fcn.00013c47
add eax, edi
mov ecx, dword [eax]
push 4
pop esi
add eax, esi
cmp ecx, 0x6d7678
jne 0x145e4
mov ecx, dword [eax]
add eax, esi
cmp ecx, 3
jne 0x145ff
mov ecx, dword [eax]
mov edx, ecx
imul edx, edx, 0x8088405
add eax, esi
mov edi, dword [eax]
inc edx
mov ebx, edx
xor ebx, ecx
add eax, esi
mov dword [esp + 0x34], edx
cmp ebx, edi
jne 0x1461a
mov edi, dword [eax]
mov ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, ecx
xor ebx, edx
add eax, esi
cmp ebx, edi
jne 0x14635
mov edx, dword [eax]
imul ecx, ecx, 0x8088405
inc ecx
xor edx, ecx
imul ecx, ecx, 0x8088405
push dword [esp + 0x14]
add eax, esi
mov esi, dword [eax]
inc ecx
xor esi, ecx
imul ecx, ecx, 0x2b9ad7e7
add eax, 8
mov edi, eax
sub edi, dword [esp + 0x18]
mov ebx, 0x8088406
sub ebx, ecx
xor ebx, dword [eax]
add edi, 4
add ebx, edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], esi
add ebx, esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push eax
push eax
push eax
push 8
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x24], eax
test eax, eax
je 0x14650
lea ecx, [edi + esi]
push ecx
push 0
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x14660
add eax, edi
mov dword [esp + 0x2c], eax
cmp esi, ecx
jbe 0x14446
mov edx, dword [esp + 0x34]
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [esp + 0x34], edx
shr edx, 0x10
xor byte [eax], dl
inc eax
dec esi
jne 0x14429
lea esi, [esp + 0x68]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], ecx
call fcn.00013b60
test eax, eax
je 0x1448f
mov esi, 0x15010
push 0x110d0
mov eax, esi
call fcn.0001486e
push 0x1128c
jmp 0x14741
mov ebx, dword [esp + 0x28]
push 4
push 0x1000
push dword [esp + 0x38]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
call fcn.00013cca
mov ecx, eax
sub ecx, dword [0x1500c]
push 3
xor edx, edx
mov eax, ecx
pop edi
div edi
test ecx, 0xffff8000
jne 0x14525
mov eax, dword [esp + 0x38]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x78], esi
call fcn.00012cb0
pop ecx
cmp eax, 1
jne 0x14670
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00013cca
mov ecx, eax
sub ecx, dword [0x1500c]
xor edx, edx
mov eax, ecx
div edi
test ecx, 0xffff8000
je 0x1468b
test edx, edx
je 0x146e7
cmp edx, 1
jne 0x1448f
jmp 0x14070
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x110b0
lea esi, [esp + 0xfc]
mov edi, eax
call fcn.00014832
push 0xa
mov eax, edi
mov ecx, esi
call fcn.000147c9
push 0x110c4
call fcn.00014832
mov eax, dword [esp + 0x18]
push 0x10
jmp 0x1471c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x11160
jmp 0x1470a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x11174
jmp 0x1470a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x11188
jmp 0x1470a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x111d4
jmp 0x1470a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x111e8
jmp 0x1470a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x111fc
jmp 0x1470a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x11210
jmp 0x1470a
mov esi, 0x15010
push 0x110d0
mov eax, esi
call fcn.0001486e
push 0x11224
jmp 0x14741
mov esi, 0x15010
push 0x110d0
mov eax, esi
call fcn.0001486e
push 0x11234
jmp 0x14741
mov esi, 0x15010
push 0x110d0
mov eax, esi
call fcn.0001486e
push 0x11244
jmp 0x14741
mov esi, 0x15010
push 0x110d0
mov eax, esi
call fcn.0001486e
push 0x11254
jmp 0x14741
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x11264
jmp 0x1470a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x11278
jmp 0x1470a
mov esi, 0x15010
push 0x110d0
mov eax, esi
call fcn.0001486e
push 0x1129c
jmp 0x14741
push esi
call fcn.00013d8f
mov dword [esp], 0x8000
push dword [esp + 0x34]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test edi, edi
je 0x14746
push edi
call fcn.00013c94
pop ecx
push edi
call fcn.00013cf7
pop ecx
mov dword [esp + 0x38], eax
test eax, eax
jne 0x146db
mov esi, 0x15010
push 0x110d0
mov eax, esi
call fcn.0001486e
push 0x112b4
jmp 0x14741
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 + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, edi
jne 0x1476f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x112c4
lea esi, [esp + 0xfc]
mov edi, eax
call fcn.00014832
mov eax, edi
push 0xa
lea ecx, [esp + 0xfc]
call fcn.000147c9
mov esi, 0x15010
push 0x110d0
mov eax, esi
call fcn.0001486e
lea eax, [esp + 0xf8]
push eax
call fcn.00014832
push 0x112d8
push 0x112e4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10
push 0x11300
push 0x15010
push 0
call eax
jmp 0x147b1
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x3c]
add ebx, 0xffff
push dword [esp + 0x2c]
shr ebx, 0x10
shl ebx, 0x10
push ebx
push dword [esp + 0x50]
push dword [esp + 0x50]
push esi
push dword [esp + 0x44]
call dword [esp + 0x54]
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret