Function at 0x4ca4f0
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, 0xb4
push 0
push 0
dec ecx
jne 0x4ca4f9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x514]
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 - 0x414]
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 - 0x314]
xor ecx, ecx
mov cl, byte [esi]
inc ecx
rep movsb byte es:[edi], byte [esi]
mov esi, edx
lea edi, [ebp - 0x214]
xor ecx, ecx
mov cl, byte [esi]
inc ecx
rep movsb byte es:[edi], byte [esi]
mov esi, eax
lea edi, [ebp - 0x114]
xor ecx, ecx
mov cl, byte [esi]
inc ecx
rep movsb byte es:[edi], byte [esi]
xor eax, eax
push ebp
push 0x4cad1e
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.0040a488
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x570]
call fcn.0040b0f0
mov ecx, dword [ebp - 0x570]
lea eax, [ebp - 0x56c]
mov edx, 0x4cad3c
call fcn.004044cc
mov edx, dword [ebp - 0x56c]
mov eax, dword [0x4d0134]
mov eax, dword [eax + 0xaac]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [0x4d10b4], 0
setne al
and al, byte [0x4d1178]
je 0x4ca656
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4d10b4]
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
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
mov ecx, 0x3e8
xor edx, edx
div ecx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x574]
call fcn.004089fc
mov edx, dword [ebp - 0x574]
mov eax, dword [0x4d0134]
mov eax, dword [eax + 0xab4]
call fcn.00458ca8
test esi, esi
jbe 0x4ca641
push 0
push esi
call sub.kernel32.dll_TerminateProcess
mov eax, 0x1f4
call fcn.00498d6c
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [0x4d10b4], eax
mov eax, dword [0x4d10ac]
mov edx, dword [0x4d10b4]
mov dword [eax + 4], edx
cmp byte [ebp - 0x214], 0
je 0x4ca717
cmp byte [ebp - 0x314], 0
je 0x4ca717
lea eax, [ebp - 0x57c]
lea edx, [ebp - 0x114]
call fcn.00404408
mov eax, dword [ebp - 0x57c]
lea edx, [ebp - 0x578]
call fcn.00408f84
lea eax, [ebp - 0x578]
mov edx, 0x4cad4c
call fcn.00404488
mov ecx, dword [ebp - 0x578]
mov dl, 1
mov eax, dword [0x435d04]
call fcn.00435db4
mov esi, eax
test esi, esi
je 0x4cad00
lea eax, [ebp - 0x580]
lea edx, [ebp - 0x214]
call fcn.00404408
mov eax, dword [ebp - 0x580]
push eax
mov ecx, 0x4cad70
mov edx, 0x4cad88
mov eax, esi
mov edi, dword [eax]
call dword [edi + 4]
lea eax, [ebp - 0x584]
lea edx, [ebp - 0x314]
call fcn.00404408
mov eax, dword [ebp - 0x584]
push eax
mov ecx, 0x4cad98
mov edx, 0x4cad88
mov eax, esi
mov edi, dword [eax]
call dword [edi + 4]
mov eax, esi
call fcn.00403390
lea eax, [ebp - 0x58c]
lea edx, [ebp - 0x114]
call fcn.00404408
mov eax, dword [ebp - 0x58c]
lea edx, [ebp - 0x588]
call fcn.00408fb8
mov eax, dword [ebp - 0x588]
call fcn.00404680
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [ebp - 0x568]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d7c
lea eax, [ebp - 0x558]
xor ecx, ecx
mov edx, 0x44
call fcn.00402d7c
mov dword [ebp - 0x558], 0x44
mov dword [ebp - 0x52c], 1
mov word [ebp - 0x528], 5
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x558]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x590]
lea edx, [ebp - 0x114]
call fcn.00404408
lea eax, [ebp - 0x590]
mov edx, 0x4cadb8
call fcn.00404488
mov eax, dword [ebp - 0x590]
call fcn.00404680
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4ca8a8
mov eax, dword [ebp - 0x568]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x564]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0x1770
call fcn.00498d6c
mov eax, dword [ebp - 0x560]
call fcn.004ca48c
mov dword [0x4d10b4], eax
mov eax, dword [0x4d10ac]
mov edx, dword [0x4d10b4]
mov dword [eax + 4], edx
jmp 0x4ca892
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
mov ecx, 0x3e8
xor edx, edx
div ecx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x594]
call fcn.004089fc
mov edx, dword [ebp - 0x594]
mov eax, dword [0x4d0134]
mov eax, dword [eax + 0xab4]
call fcn.00458ca8
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x1d4c0
ja 0x4cad00
mov eax, 0x3e8
call fcn.00498d6c
mov eax, dword [ebp - 0x560]
call fcn.004ca48c
mov dword [0x4d10b4], eax
mov eax, dword [0x4d10ac]
mov edx, dword [0x4d10b4]
mov dword [eax + 4], edx
cmp dword [0x4d10b4], 0
sete al
and al, byte [0x4d1178]
jne 0x4ca823
cmp dword [0x4d10b4], 0
seta al
and al, byte [0x4d1178]
je 0x4cad00
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
jmp 0x4ca932
call sub.kernel32.dll_GetTickCount_1
sub eax, esi
push eax
mov eax, dword [0x4d044c]
pop edx
sub eax, edx
mov ecx, 0x3e8
xor edx, edx
div ecx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x59c]
call fcn.004089fc
mov ecx, dword [ebp - 0x59c]
lea eax, [ebp - 0x598]
mov edx, 0x4cadcc
call fcn.004044cc
mov edx, dword [ebp - 0x598]
mov eax, dword [0x4d0134]
mov eax, dword [eax + 0xab4]
call fcn.00458ca8
cmp byte [0x4d1178], 0
je 0x4cad00
mov eax, 0x3e8
call fcn.00498d6c
call sub.kernel32.dll_GetTickCount_1
sub eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [0x4d0450]
cdq
cmp edx, dword [esp + 4]
jne 0x4ca956
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4ca8c7
jmp 0x4ca95e
pop edx
pop eax
jg 0x4ca8c7
mov eax, dword [0x4d0140]
push eax
mov eax, dword [0x4d10b4]
push eax
call sub.user32.dll_SetWindowTextA
mov eax, 0xbb8
call fcn.00498d6c
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [0x4d10b4]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0xbb8
call fcn.00498d6c
push 0
push 0x1b
push pe_nt_image_headers32
mov eax, dword [0x4d10b4]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0xfa0
call fcn.00498d6c
movzx esi, byte [ebp - 0x414]
test esi, esi
jle 0x4ca9ee
lea edi, [ebp - 0x413]
push 0
xor eax, eax
mov al, byte [edi]
push eax
push pe_nt_image_headers32
mov eax, dword [0x4d10b4]
push eax
call sub.user32.dll_PostMessageA
cmp byte [0x4d1178], 0
je 0x4cad00
inc edi
dec esi
jne 0x4ca9c6
mov eax, 0x3e8
call fcn.00498d6c
push 0
push 9
push pe_nt_image_headers32
mov eax, dword [0x4d10b4]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0x3e8
call fcn.00498d6c
movzx esi, byte [ebp - 0x514]
test esi, esi
jle 0x4caa4f
lea edi, [ebp - 0x513]
push 0
xor eax, eax
mov al, byte [edi]
push eax
push pe_nt_image_headers32
mov eax, dword [0x4d10b4]
push eax
call sub.user32.dll_PostMessageA
cmp byte [0x4d1178], 0
je 0x4cad00
inc edi
dec esi
jne 0x4caa27
mov eax, 0x3e8
call fcn.00498d6c
push 0
push 9
push pe_nt_image_headers32
mov eax, dword [0x4d10b4]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0x1f4
call fcn.00498d6c
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [0x4d10b4]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0xbb8
call fcn.00498d6c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4d10b4]
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 0x4cab2f
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push 0xc0c68c
push esi
call sub.kernel32.dll_ReadProcessMemory
lea eax, [ebp - 0x14]
push eax
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
lea eax, [ebp - 0x14]
push eax
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
lea eax, [ebp - 0x14]
push eax
push 4
mov eax, dword [0x4d10ac]
add eax, 0x189e
push eax
push 0xc0ca08
push esi
call sub.kernel32.dll_ReadProcessMemory
mov eax, dword [0x4d10b4]
push eax
mov eax, dword [0x4d10ac]
push eax
call fcn.00498e28
jmp 0x4cabbe
mov eax, 0x4cade4
call fcn.00431ec0
jmp 0x4cad00
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
mov ecx, 0x3e8
xor edx, edx
div ecx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x5a0]
call fcn.004089fc
mov edx, dword [ebp - 0x5a0]
mov eax, dword [0x4d0134]
mov eax, dword [eax + 0xab4]
call fcn.00458ca8
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [0x4d0450]
add eax, 0x1d4c0
cdq
cmp edx, dword [esp + 4]
jne 0x4cab9b
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4caba3
jmp 0x4cad00
pop edx
pop eax
jl 0x4cad00
mov eax, 0x1f4
call fcn.00498d6c
mov eax, dword [0x4d10b4]
push eax
mov eax, dword [0x4d10ac]
push eax
call fcn.00498e28
mov eax, dword [0x4d10ac]
cmp byte [eax + 0x189d], 1
setne al
and al, byte [0x4d1178]
jne 0x4cab3e
cmp byte [0x4d1178], 0
je 0x4caca8
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [0x4d10b4]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0x3e8
call fcn.00498d6c
jmp 0x4caca8
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
mov ecx, 0x3e8
xor edx, edx
div ecx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x5a4]
call fcn.004089fc
mov edx, dword [ebp - 0x5a4]
mov eax, dword [0x4d0134]
mov eax, dword [eax + 0xab4]
call fcn.00458ca8
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [0x4d0450]
add eax, 0x1d4c0
cdq
cmp edx, dword [esp + 4]
jne 0x4cac66
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4cac6e
jmp 0x4cad00
pop edx
pop eax
jl 0x4cad00
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [0x4d10b4]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0x7d0
call fcn.00498d6c
lea eax, [ebp - 0x14]
push eax
push 4
mov eax, dword [0x4d10ac]
add eax, 0x189e
push eax
push 0xc0ca08
push esi
call sub.kernel32.dll_ReadProcessMemory
mov eax, dword [0x4d10ac]
cmp dword [eax + 0x189e], 0
sete al
and al, byte [0x4d1178]
jne 0x4cac09
mov eax, dword [0x4d10ac]
cmp byte [eax + 0x189d], 1
jne 0x4cacfa
mov eax, dword [0x4d10ac]
cmp dword [eax + 0x189e], 1
jne 0x4cacfa
mov byte [ebp - 1], 1
push 6
mov eax, dword [0x4d10b4]
push eax
call sub.user32.dll_ShowWindow
mov eax, 0x3e8
call fcn.00498d6c
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cad25
lea eax, [ebp - 0x5a4]
mov edx, 0xf
call fcn.004041c8
ret