Function at 0x4e8744
Capabilities:
Check for time delay via gettickcount
Create process on windows
Set current directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xb3
push 0
push 0
dec ecx
jne 0x4e874d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x510]
push ecx
xor ecx, ecx
mov cl, byte [esi]
inc ecx
rep movsb byte es:[edi], byte [esi]
pop ecx
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x410]
push ecx
xor ecx, ecx
mov cl, byte [esi]
inc ecx
rep movsb byte es:[edi], byte [esi]
pop ecx
mov esi, ecx
lea edi, [ebp - 0x310]
xor ecx, ecx
mov cl, byte [esi]
inc ecx
rep movsb byte es:[edi], byte [esi]
mov esi, edx
lea edi, [ebp - 0x210]
xor ecx, ecx
mov cl, byte [esi]
inc ecx
rep movsb byte es:[edi], byte [esi]
mov esi, eax
lea edi, [ebp - 0x110]
xor ecx, ecx
mov cl, byte [esi]
inc ecx
rep movsb byte es:[edi], byte [esi]
xor eax, eax
push ebp
push 0x4e8fc8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
call fcn.0040b728
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x56c]
call fcn.0040c464
mov ecx, dword [ebp - 0x56c]
lea eax, [ebp - 0x568]
mov edx, 0x4e8fe4
call fcn.004049f4
mov edx, dword [ebp - 0x568]
mov eax, dword [0x5022ec]
mov eax, dword [eax + 0x6cc]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp byte [ebp - 0x210], 0
je 0x4e88cf
cmp byte [ebp - 0x310], 0
je 0x4e88cf
lea eax, [ebp - 0x574]
lea edx, [ebp - 0x110]
call fcn.00404930
mov eax, dword [ebp - 0x574]
lea edx, [ebp - 0x570]
call fcn.00409c44
lea eax, [ebp - 0x570]
mov edx, 0x4e8ff4
call fcn.004049b0
mov ecx, dword [ebp - 0x570]
mov dl, 1
mov eax, dword [0x43d9b0]
call fcn.0043da60
mov esi, eax
test esi, esi
je 0x4e8faa
lea eax, [ebp - 0x578]
lea edx, [ebp - 0x210]
call fcn.00404930
mov eax, dword [ebp - 0x578]
push eax
mov ecx, 0x4e9018
mov edx, 0x4e9030
mov eax, esi
mov edi, dword [eax]
call dword [edi + 4]
lea eax, [ebp - 0x57c]
lea edx, [ebp - 0x310]
call fcn.00404930
mov eax, dword [ebp - 0x57c]
push eax
mov ecx, 0x4e9040
mov edx, 0x4e9030
mov eax, esi
mov edi, dword [eax]
call dword [edi + 4]
mov eax, esi
call fcn.004038b8
cmp dword [0x502608], 0
setne al
and al, byte [0x5040f0]
je 0x4e897f
lea eax, [ebp - 8]
push eax
mov eax, dword [0x502608]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
push 0
push 0x3e8
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405644
push edx
push eax
lea eax, [ebp - 0x580]
call fcn.00409614
mov edx, dword [ebp - 0x580]
mov eax, dword [0x5022ec]
mov eax, dword [eax + 0x3b4]
call fcn.004669b8
test esi, esi
jbe 0x4e896a
mov eax, dword [0x50261c]
push eax
push esi
call sub.kernel32.dll_TerminateProcess
mov eax, 0x1f4
call fcn.004d6bd8
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [0x502608], eax
mov eax, dword [0x504144]
mov edx, dword [0x502608]
mov dword [eax + 4], edx
lea eax, [ebp - 0x588]
lea edx, [ebp - 0x110]
call fcn.00404930
mov eax, dword [ebp - 0x588]
lea edx, [ebp - 0x584]
call fcn.00409c84
mov eax, dword [ebp - 0x584]
call fcn.00404ba8
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [ebp - 0x564]
xor ecx, ecx
mov edx, 0x10
call fcn.0040315c
lea eax, [ebp - 0x554]
xor ecx, ecx
mov edx, 0x44
call fcn.0040315c
mov dword [ebp - 0x554], 0x44
mov dword [ebp - 0x528], 1
mov word [ebp - 0x524], 5
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x554]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x58c]
lea edx, [ebp - 0x110]
call fcn.00404930
lea eax, [ebp - 0x58c]
mov edx, 0x4e9060
call fcn.004049b0
mov eax, dword [ebp - 0x58c]
call fcn.00404ba8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4e8b46
mov eax, dword [ebp - 0x564]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x560]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, 0x1770
call fcn.004d6bd8
mov eax, dword [ebp - 0x55c]
call fcn.004e9310
mov dword [0x502608], eax
mov eax, dword [0x504144]
mov edx, dword [0x502608]
mov dword [eax + 4], edx
jmp 0x4e8b26
push 0
push 0x3e8
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405644
push edx
push eax
lea eax, [ebp - 0x590]
call fcn.00409614
mov edx, dword [ebp - 0x590]
mov eax, dword [0x5022ec]
mov eax, dword [eax + 0x3b4]
call fcn.004669b8
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4e8af8
cmp eax, 0x1d4c0
jbe 0x4e8afe
jmp 0x4e8faa
jg 0x4e8faa
mov eax, 0x3e8
call fcn.004d6bd8
mov eax, dword [ebp - 0x55c]
call fcn.004e9310
mov dword [0x502608], eax
mov eax, dword [0x504144]
mov edx, dword [0x502608]
mov dword [eax + 4], edx
cmp dword [0x502608], 0
sete al
and al, byte [0x5040f0]
jne 0x4e8a8e
mov eax, 0x1388
call fcn.004d6bd8
cmp dword [0x502608], 0
seta al
and al, byte [0x5040f0]
je 0x4e8faa
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
jmp 0x4e8bc7
call sub.kernel32.dll_GetTickCount_1
sub eax, esi
mov ecx, 0x3e8
xor edx, edx
div ecx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x598]
call fcn.00409614
mov ecx, dword [ebp - 0x598]
lea eax, [ebp - 0x594]
mov edx, 0x4e9074
call fcn.004049f4
mov edx, dword [ebp - 0x594]
mov eax, dword [0x5022ec]
mov eax, dword [eax + 0x3b4]
call fcn.004669b8
cmp byte [0x5040f0], 0
je 0x4e8faa
mov eax, 0x3e8
call fcn.004d6bd8
call sub.kernel32.dll_GetTickCount_1
sub eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [0x5025fc]
cdq
cmp edx, dword [esp + 4]
jne 0x4e8be7
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4e8b65
jmp 0x4e8bef
pop edx
pop eax
jg 0x4e8b65
mov eax, dword [0x5022f0]
push eax
mov eax, dword [0x502608]
push eax
call sub.user32.dll_SetWindowTextA
mov eax, 0xbb8
call fcn.004d6bd8
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [0x502608]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0xbb8
call fcn.004d6bd8
push 0
push 0x1b
push pe_nt_image_headers32
mov eax, dword [0x502608]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0xfa0
call fcn.004d6bd8
movzx esi, byte [ebp - 0x410]
test esi, esi
jle 0x4e8c89
lea edi, [ebp - 0x40f]
cmp byte [0x5040f0], 0
je 0x4e8faa
push 0
xor eax, eax
mov al, byte [edi]
push eax
push pe_nt_image_headers32
mov eax, dword [0x502608]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0xc8
call fcn.004d6bd8
inc edi
dec esi
jne 0x4e8c57
mov eax, 0x3e8
call fcn.004d6bd8
push 0
push 9
push pe_nt_image_headers32
mov eax, dword [0x502608]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0x3e8
call fcn.004d6bd8
movzx esi, byte [ebp - 0x510]
test esi, esi
jle 0x4e8cf4
lea edi, [ebp - 0x50f]
cmp byte [0x5040f0], 0
je 0x4e8faa
push 0
xor eax, eax
mov al, byte [edi]
push eax
push pe_nt_image_headers32
mov eax, dword [0x502608]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0xc8
call fcn.004d6bd8
inc edi
dec esi
jne 0x4e8cc2
mov eax, 0x3e8
call fcn.004d6bd8
push 0
push 9
push pe_nt_image_headers32
mov eax, dword [0x502608]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0x3e8
call fcn.004d6bd8
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [0x502608]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0xbb8
call fcn.004d6bd8
lea eax, [ebp - 8]
push eax
mov eax, dword [0x502608]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x4e8dc8
push 0x50261c
push 4
lea eax, [ebp - 0xc]
push eax
push 0xbf612c
push esi
call sub.kernel32.dll_ReadProcessMemory
push 0x50261c
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x1c
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
push 0x50261c
push 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x34
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
push 0x50261c
push 4
push 0x503f5e
push 0xbf64a8
push esi
call sub.kernel32.dll_ReadProcessMemory
mov eax, esi
call fcn.004d9f78
jmp 0x4e8e69
mov eax, 0x4e908c
call fcn.0043917c
jmp 0x4e8faa
push 0
push 0x3e8
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405644
push edx
push eax
lea eax, [ebp - 0x59c]
call fcn.00409614
mov edx, dword [ebp - 0x59c]
mov eax, dword [0x5022ec]
mov eax, dword [eax + 0x3b4]
call fcn.004669b8
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, dword [0x5025fc]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4e8e52
cmp eax, 0x1d4c0
jbe 0x4e8e58
jmp 0x4e8faa
jg 0x4e8faa
mov eax, 0x1f4
call fcn.004d6bd8
mov eax, esi
call fcn.004d9f78
cmp byte [0x503f5d], 1
setne al
and al, byte [0x5040f0]
jne 0x4e8dd7
cmp byte [0x5040f0], 0
je 0x4e8f61
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [0x502608]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0x3e8
call fcn.004d6bd8
jmp 0x4e8f61
push 0
push 0x3e8
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405644
push edx
push eax
lea eax, [ebp - 0x5a0]
call fcn.00409614
mov edx, dword [ebp - 0x5a0]
mov eax, dword [0x5022ec]
mov eax, dword [eax + 0x3b4]
call fcn.004669b8
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, dword [0x5025fc]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4e8f2a
cmp eax, 0x1d4c0
jbe 0x4e8f2c
jmp 0x4e8faa
jg 0x4e8faa
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [0x502608]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0x7d0
call fcn.004d6bd8
push 0x50261c
push 4
push 0x503f5e
push 0xbf64a8
push esi
call sub.kernel32.dll_ReadProcessMemory
cmp dword [0x503f5e], 0
sete al
and al, byte [0x5040f0]
jne 0x4e8eaf
cmp byte [0x503f5d], 1
jne 0x4e8fa4
cmp dword [0x503f5e], 1
jne 0x4e8fa4
mov byte [ebp - 1], 1
push 6
mov eax, dword [0x502608]
push eax
call sub.user32.dll_ShowWindow
mov eax, 0x3e8
call fcn.004d6bd8
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8fcf
lea eax, [ebp - 0x5a0]
mov edx, 0xf
call fcn.004046f0
ret