Function at 0x40281b
Capabilities:
Accept command line arguments
Check for time delay via gettickcount
Encode data using xor
Generate random numbers using the delphi lcg
Get file size
Read file via mapping
Resolve function by parsing pe exports
Terminate process

Disassembly:
push esp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88c
and dword [esp + 8], 0
xor eax, eax
and dword [esp + 0x28], eax
xor ecx, ecx
and dword [esp + 0x20], eax
and dword [esp + 0x30], eax
and dword [esp + 0x10], eax
and dword [esp + 0x38], eax
push ebx
push esi
push edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], ecx
call fcn.00402305
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [0x406028]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
call esi
push 3
pop edi
mov dword [0x406040], eax
mov dword [esp + 0x54], edi
jmp 0x402884
push 3
pop edi
push 0x5c
pop ebx
call fcn.00403482
mov ecx, eax
xor edx, edx
sub ecx, dword [0x406040]
mov eax, ecx
div edi
cmp ecx, 0x8000
jb 0x4028d6
test edx, edx
jne 0x402dab
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
xor eax, eax
push eax
push eax
push eax
push 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
jne 0x403058
push ecx
push 0x401518
jmp 0x402bf2
push ecx
call fcn.004024d1
call fcn.00403482
mov ecx, eax
xor edx, edx
sub ecx, dword [0x406040]
mov eax, ecx
div edi
cmp ecx, 0x8000
jae 0x4028a2
call fcn.004033f1
push 0x4012d8
lea esi, [eax + 0xfe0]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [0x406008]
test eax, eax
pop ecx
setne byte [esp + 0x1f]
pop ecx
test eax, eax
je 0x40294f
push 0x401194
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [0x406008]
pop ecx
pop ecx
test eax, eax
je 0x40294f
mov ecx, esi
mov byte [esp + 0x13], 1
call fcn.0040314e
test al, al
je 0x402c0a
jmp 0x40296d
cmp dword [esi], 0x696d7678
mov byte [esp + 0x13], 0
jne 0x402bcc
cmp dword [esi + 4], 0x74636a6e
jne 0x402bcc
test esi, esi
je 0x402bcc
push 0
push 0
push 0
push 6
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x402ffc
push 0
push 0
push 0
push 6
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x402ff1
mov ecx, dword [ebx + 0x48]
cmp ecx, 0x3fc
jae 0x402fdc
mov eax, dword [ebx + 0x4c]
add ecx, ecx
push ecx
add eax, ebx
push eax
lea eax, [esp + 0xa8]
push eax
call dword [0x40601c]
mov eax, dword [ebx + 0x48]
xor ecx, ecx
xor esi, esi
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0x24], esi
mov word [esp + eax*2 + 0xa0], cx
mov eax, dword [edi + 0x40]
test eax, eax
je 0x402a29
cmp dword [edi + 0x44], ecx
je 0x402a29
lea eax, [eax*2 + 2]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x402a33
push ecx
push 0x401364
call fcn.00402489
jmp 0x402c0a
cmp byte [esp + 0x13], cl
jne 0x402fd1
mov eax, dword [edi + 0x50]
test eax, eax
je 0x402a68
cmp dword [edi + 0x54], esi
je 0x402a68
lea eax, [eax*2 + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
jne 0x402a73
push ecx
push 0x40138c
jmp 0x402a1f
cmp byte [esp + 0x1b], 0
jne 0x402fc6
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0x10]
test ebx, ebx
je 0x402ab5
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x40]
add eax, eax
push eax
mov eax, dword [ecx + 0x44]
add eax, ecx
push eax
push ebx
call dword [0x40601c]
mov eax, dword [esp + 0x20]
add esp, 0xc
xor ecx, ecx
mov eax, dword [eax + 0x40]
push ebx
mov word [ebx + eax*2], cx
lea eax, [edi + 0x38]
push eax
call dword [0x406030]
test esi, esi
je 0x402b45
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x50]
add eax, eax
push eax
mov eax, dword [ecx + 0x54]
add eax, ecx
push eax
push esi
call dword [0x40601c]
mov eax, dword [esp + 0x20]
add esp, 0xc
xor ecx, ecx
add edi, 0x40
mov eax, dword [eax + 0x50]
push esi
push edi
mov word [esi + eax*2], cx
call dword [0x406030]
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [section..data]
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
je 0x402b41
push 8
lea eax, [esp + 0x5c]
push 0
push eax
call dword [0x406018]
add esp, 0xc
lea eax, [esp + 0x58]
push 1
push edi
push eax
call dword [0x40602c]
test eax, eax
js 0x402b3e
push dword [esp + 0x5c]
push esi
call dword [0x40600c]
pop ecx
pop ecx
jmp 0x402b41
mov byte [esi], 0
mov esi, dword [esp + 0x24]
call fcn.0040342d
test al, al
je 0x402c41
call fcn.004033f1
xor edx, edx
mov ecx, dword [eax + 0x20]
cmp dword [eax + 0x24], edx
ja 0x402c41
jb 0x402b73
cmp ecx, 0x7fff0000
jae 0x402c41
test ebx, ebx
je 0x402b9b
mov dword [ecx + 0x68], ebx
mov ebx, dword [esp + 0x14]
mov dword [ecx + 0x6c], edx
mov ax, word [ebx + 0x40]
add ax, ax
mov word [ecx + 0x60], ax
mov ax, word [ebx + 0x40]
inc ax
add ax, ax
mov word [ecx + 0x62], ax
jmp 0x402b9f
mov ebx, dword [esp + 0x14]
push 3
pop edi
push 0x5c
test esi, esi
je 0x402c46
mov dword [ecx + 0x78], esi
mov dword [ecx + 0x7c], edx
mov ax, word [ebx + 0x50]
add ax, ax
mov word [ecx + 0x70], ax
mov ax, word [ebx + 0x50]
inc ax
add ax, ax
mov word [ecx + 0x72], ax
jmp 0x402c46
push 0x3fc
lea eax, [esp + 0xa4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402bec
cmp eax, 0x3fc
jne 0x402c47
push ecx
push 0x4013b4
call fcn.00402489
push 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, 0x406050
call fcn.00402421
push 0x40152c
push 0x401538
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10
push 0x401550
mov ecx, 0x406050
mov edx, eax
call fcn.004022e0
push eax
push 0
call edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 3
pop edi
push 0x5c
pop ebx
cmp word [esp + 0xa0], bx
jne 0x402c64
cmp word [esp + 0xa2], bx
jne 0x402c64
lea esi, [esp + 0xa0]
jmp 0x402c83
push 8
lea eax, [esp + 0x9c]
push 0x4015d0
push eax
call dword [0x40601c]
add esp, 0xc
lea esi, [esp + 0x98]
call fcn.00403482
mov ecx, eax
xor edx, edx
sub ecx, dword [0x406040]
mov eax, ecx
div edi
cmp ecx, 0x8000
jae 0x4028a2
push ecx
push esi
call fcn.00402489
push ecx
push 0x4013c8
call fcn.00402489
push 0
push 0
push edi
push 0
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x34], ebx
cmp ebx, 0xffffffff
je 0x40313f
call fcn.004034a3
test eax, eax
jne 0x402884
push eax
push eax
push eax
push 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [esp + 0x2c], edi
test edi, edi
je 0x403134
push 0x1000
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x403129
call fcn.0040251e
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea eax, [esp + 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40311e
xor eax, eax
mov ecx, esi
push eax
add ecx, 0x1000
pop edx
adc eax, edx
cmp dword [esp + 0x4c], eax
jl 0x4030f8
jg 0x402d62
cmp dword [esp + 0x48], ecx
jbe 0x4030f8
lea eax, [esi + 0x1000]
push eax
push edx
push edx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x4030ed
call fcn.00403482
mov ecx, eax
xor edx, edx
sub ecx, dword [0x406040]
push 3
mov eax, ecx
pop edi
div edi
cmp ecx, 0x8000
jb 0x402db9
test edx, edx
je 0x4028aa
push 0x5c
pop ebx
cmp edx, 1
je 0x402887
jmp 0x402f11
mov ecx, ebx
call fcn.0040251e
push 4
lea esi, [ebx + eax]
mov ecx, dword [esi]
pop ebx
add esi, ebx
cmp ecx, 0x55504d
jne 0x4030e2
mov ecx, dword [esi]
add esi, ebx
cmp ecx, edi
jne 0x4030d7
mov edx, dword [esi]
add esi, ebx
imul edi, edx, 0x8088405
mov ecx, dword [esi]
add esi, ebx
inc edi
mov eax, edi
xor eax, edx
cmp eax, ecx
jne 0x4030cc
mov ecx, dword [esi]
add esi, ebx
imul edx, edi, 0x8088405
inc edx
mov eax, edx
xor eax, edi
cmp eax, ecx
jne 0x4030c1
mov ecx, dword [esi]
add esi, ebx
imul eax, edx, 0x8088405
mov dword [esp + 0x20], 0x8088406
mov edx, dword [esi]
lea ebx, [esi + 8]
inc eax
xor ecx, eax
imul eax, eax, 0x8088405
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x28]
sub ebx, ecx
add ebx, 4
push ecx
inc eax
xor edx, eax
imul eax, eax, 0x2b9ad7e7
mov dword [esp + 0x3c], edx
sub dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
xor eax, dword [esi + 8]
add eax, ebx
add eax, edx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push eax
push eax
push eax
push 8
push eax
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x4030b6
mov esi, dword [esp + 0x38]
lea eax, [ebx + esi]
push eax
push 0
push 0
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x4030ab
lea eax, [ebx + ecx]
mov dword [esp + 0x3c], eax
mov ecx, eax
test esi, esi
je 0x402edd
mov edx, esi
imul edi, edi, 0x343fd
add edi, 0x269ec3
mov eax, edi
shr eax, 0x10
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x402ec4
xor eax, eax
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], eax
call fcn.004037e0
mov esi, eax
pop ecx
test esi, esi
jne 0x4030a3
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
push 4
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
call fcn.00403482
mov ecx, eax
xor edx, edx
sub ecx, dword [0x406040]
mov eax, ecx
div dword [esp + 0x54]
cmp ecx, 0x8000
jb 0x402f5a
test edx, edx
je 0x4028aa
cmp edx, 1
jne 0x402f19
jmp 0x402881
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x60]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
push 4
pop edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], edi
call fcn.004038f0
mov esi, eax
cmp esi, 1
jne 0x403090
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00403482
mov ecx, eax
xor edx, edx
sub ecx, dword [0x406040]
push 3
mov eax, ecx
pop esi
div esi
cmp ecx, 0x8000
jb 0x403007
test edx, edx
je 0x4028aa
mov esi, dword [esp + 0x30]
jmp 0x402f50
push ecx
push 0x4013a0
jmp 0x402a1f
push ecx
push 0x401378
jmp 0x402a1f
push ecx
push 0x401350
call fcn.00402489
push 0xa
push dword [ebx + 0x48]
jmp 0x402c00
push ecx
push 0x40133c
jmp 0x402bf2
push ecx
push 0x401328
jmp 0x402bf2
mov ecx, edi
call fcn.004025dd
push 0x8000
push dword [esp + 0x34]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test esi, esi
je 0x402c0a
mov ecx, esi
call fcn.0040344a
mov ecx, esi
call fcn.00402554
mov edi, eax
test edi, edi
jne 0x403047
push ecx
push 0x401508
jmp 0x402a1f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esp + 0x44], eax
jmp 0x4028ae
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x40]
push eax
push dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add eax, 0xffff
and eax, 0xffff0000
push eax
push dword [esp + 0x58]
push dword [esp + 0x58]
push esi
push dword [esp + 0x5c]
call edi
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push 0x4014f4
call fcn.00402489
push 0xa
push esi
jmp 0x402c00
push ecx
push 0x4014e8
jmp 0x403096
push ecx
push 0x4014d4
jmp 0x402bf2
push ecx
push 0x4014c0
jmp 0x402bf2
push ecx
push 0x4014b0
jmp 0x402a1f
push ecx
push 0x4014a0
jmp 0x402a1f
push ecx
push 0x401490
jmp 0x402a1f
push ecx
push 0x401480
jmp 0x402a1f
push ecx
push 0x40146c
jmp 0x402bf2
push ecx
push 0x401458
call fcn.00402489
push 0xa
push dword [esp + 0x4c]
mov ecx, 0x406050
call fcn.00402421
push ecx
push 0x4013c8
jmp 0x403096
push ecx
push 0x401444
jmp 0x402bf2
push ecx
push 0x401430
jmp 0x402bf2
push ecx
push 0x40141c
jmp 0x402bf2
push ecx
push 0x4013d0
jmp 0x402bf2