Function at 0x404c46
Capabilities:
Acquire debug privileges
Check for time delay via gettickcount
Create process on windows
Create process suspended
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
push 0xffffffffffffffff
xor ebx, ebx
push 0xffffffffffffffff
mov esi, eax
mov byte [ebp - 5], 1
mov byte [ebp - 6], 1
mov byte [ebp - 0x1c], bl
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
xor eax, eax
mov dword [ebp - 0x38], ebx
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xf
pop ecx
xor eax, eax
mov dword [ebp - 0x84], 0x44
mov dword [ebp - 0x80], ebx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [ebp - 4], esi
call fcn.004033c7
push 0x10
push eax
push str._Service
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x12], bl
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x40], bl
call fcn.0047fec0
add esp, 0xc
test eax, eax
jne 0x404cda
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x10]
call fcn.0040bc38
test al, al
je 0x404cda
add dword [ebp - 4], 0x12
jmp 0x404d14
push 0x1e
push dword [ebp - 4]
push str._InstallService
call fcn.0047fec0
mov ecx, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x404d55
mov ax, word [ecx + 0x1e]
call fcn.0040bc38
test al, al
je 0x404d55
push 0x1e
push 0x494f88
push ecx
call fcn.004102e0
add esp, 0xc
add dword [ebp - 4], 0x20
mov ecx, dword [ebp - 4]
call fcn.004032c5
cmp byte [0x4ab290], 1
mov ecx, eax
mov dword [ebp - 4], ecx
jne 0x404d32
push ecx
call fcn.0040baf4
jmp 0x404d9d
xor eax, eax
jmp 0x404d48
call fcn.0040bc38
test al, al
jne 0x40504d
inc ecx
inc ecx
mov dword [ebp - 4], ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x404d36
jmp 0x40504d
push 0x1c
push ecx
push str._RemoveService
call fcn.0047fec0
mov ecx, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x40504d
mov ax, word [ecx + 0x1c]
call fcn.0040bc38
test al, al
je 0x40504d
add ecx, 0x1e
call fcn.004032c5
cmp byte [0x4ab290], 1
mov ecx, eax
mov dword [ebp - 4], ecx
jne 0x404da5
push ecx
call fcn.004056e7
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
xor eax, eax
jmp 0x404dbb
call fcn.0040bc38
test al, al
jne 0x40504d
inc ecx
inc ecx
mov dword [ebp - 4], ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x404da9
jmp 0x40504d
push 2
lea eax, [ebp - 4]
push eax
push 0x4950b8
call fcn.00437ad0
add esp, 0xc
test al, al
jne 0x40506f
push 5
lea eax, [ebp - 4]
push eax
push str.__job
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x404e03
mov byte [ebp - 6], 1
jmp 0x40504a
push 7
lea eax, [ebp - 4]
push eax
push str.__nojob
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x404e23
mov byte [ebp - 6], 0
jmp 0x40504a
push 6
lea eax, [ebp - 4]
push eax
push 0x4950a0
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x404e43
mov byte [ebp - 0x11], 1
jmp 0x40504a
push 6
lea eax, [ebp - 4]
push eax
push str.__wait
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x404e63
mov byte [ebp - 5], 1
jmp 0x40504a
push 8
lea eax, [ebp - 4]
push eax
push str.__nowait
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x404e83
mov byte [ebp - 5], 0
jmp 0x40504a
push 0xa
lea eax, [ebp - 4]
push eax
push str.__idlewait
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x404ea3
mov byte [ebp - 0x12], 1
jmp 0x40504a
push 6
lea eax, [ebp - 4]
push eax
push str.__idle
call fcn.00437ad0
add esp, 0xc
test al, al
lea eax, [ebp - 4]
je 0x404edb
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.004033da
test eax, eax
je 0x40504a
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
jmp 0x40504a
push 0xa
push eax
push str.__killwin2
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x404ef8
mov byte [ebp - 0x1c], 1
jmp 0x40504a
push 9
lea eax, [ebp - 4]
push eax
push str.__killwin
call fcn.00437ad0
add esp, 0xc
test al, al
lea eax, [ebp - 4]
je 0x404f36
mov esi, dword [ebp - 4]
push eax
call fcn.00404579
mov eax, dword [ebp - 4]
pop ecx
sub eax, esi
push 0xffffffffffffffff
sar eax, 1
push eax
push esi
mov ecx, 0x4acbf0
call fcn.00435cea
jmp 0x40504a
push 0xe
push eax
push str.__delayservice
call fcn.00437ad0
add esp, 0xc
test al, al
lea eax, [ebp - 4]
je 0x404fa0
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.004033da
test eax, eax
je 0x40504a
cmp dword [ebp + 8], 1
jne 0x40504a
mov esi, dword [ebp - 0xc]
lea eax, [esi + 0x63]
push 0x64
cdq
pop ecx
idiv ecx
mov edi, eax
jmp 0x404f85
dec edi
js 0x404f8e
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [0x4ab290], 0
jg 0x404f7a
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, esi
mov dword [0x4acb94], eax
jmp 0x40504a
push 0xa
push eax
push str.__idlequit
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x405054
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
xor eax, eax
jmp 0x404fd0
call fcn.0040bc38
test al, al
jne 0x404fd8
inc esi
inc esi
mov dword [ebp - 4], esi
mov ax, word [esi]
cmp ax, bx
jne 0x404fc2
sub esi, dword [ebp - 0xc]
sar esi, 1
cmp esi, ebx
jle 0x40504a
lea ebx, [esi + esi + 4]
lea eax, [ebx + 8]
push eax
push 0
push dword [0x4ad030]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x40500a
push 2
call fcn.00435af7
cmp eax, 4
pop ecx
je 0x404fe5
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], 0xaa55
mov dword [edi], ebx
mov cx, word [eax]
add edi, 8
cmp cx, 0x2a
mov dword [ebp - 0x3c], edi
je 0x40502b
cmp cx, 0x21
jne 0x405036
mov cl, byte [eax]
inc eax
inc eax
mov byte [ebp - 0x40], cl
mov dword [ebp - 0xc], eax
dec esi
push esi
push dword [ebp - 0xc]
push edi
call fcn.00404561
and word [edi + esi*2], 0
add esp, 0xc
xor ebx, ebx
mov ecx, dword [ebp - 4]
call fcn.004032c5
jmp 0x405063
mov eax, dword [ebp - 4]
cmp word [eax], 0x3d
jne 0x40506f
inc eax
inc eax
mov byte [ebp - 5], 1
mov dword [ebp - 4], eax
cmp word [eax], bx
jne 0x404dc8
mov ecx, dword [ebp - 4]
call fcn.004032c5
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
mov dword [ebp - 4], eax
call esi
push 0
mov ebx, eax
mov byte [ebp + 8], 0
call dword [sym.imp.KERNEL32.DLL_SetLastError]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
cmp dword [ebp - 0x18], 0
jbe 0x4050b7
push dword [ebp - 0x18]
call fcn.0040322e
pop ecx
mov edi, dword [0x4acbec]
push edi
call esi
cmp eax, 0x11
jl 0x4050c8
push 0x11
pop eax
lea edi, [edi + eax*2]
lea eax, [eax + ebx + 0xa0]
push eax
lea ecx, [ebp - 0x20]
call fcn.00435d80
cmp word [edi], 0x3d
jne 0x4050e7
inc edi
inc edi
mov byte [ebp - 5], 1
push edi
call esi
mov ebx, eax
lea eax, [ebx + 1]
push eax
push edi
push dword [ebp - 0x20]
call fcn.00404561
add esp, 0xc
push dword [ebp - 4]
call esi
inc eax
push eax
mov eax, dword [ebp - 0x20]
push dword [ebp - 4]
lea eax, [eax + ebx*2]
push eax
call fcn.00404561
add esp, 0xc
cmp byte [ebp - 0x11], 0
je 0x405124
or dword [ebp - 0x58], 1
and word [ebp - 0x54], 0
push 0x495030
push dword [ebp - 0x20]
xor edi, edi
call fcn.0040330d
cmp eax, edi
pop ecx
pop ecx
je 0x40514f
movzx eax, word [eax + 0x10]
cmp ax, di
je 0x40514b
call fcn.0040bc38
test al, al
je 0x40514f
mov byte [ebp + 8], 1
or dword [ebp - 0x10], 0xffffffff
cmp byte [0x4ab290], 0
mov dword [ebp - 0x28], 8
mov dword [ebp - 0x24], edi
jle 0x4054d0
mov esi, dword [ebp - 0x20]
xor edx, edx
xor eax, eax
mov ax, word [esi]
mov ecx, esi
jmp 0x40518d
or eax, 0x20
cmp ax, 0x61
jb 0x405192
cmp ax, 0x7a
ja 0x405192
inc edx
inc ecx
inc ecx
mov ax, word [ecx]
cmp ax, di
jne 0x405178
mov ax, word [ecx]
call fcn.0040bc38
test al, al
jne 0x4051a0
xor edx, edx
cmp edx, 4
jne 0x4051d3
push 0x495008
lea ecx, [ebp + 8]
call fcn.004403c3
push dword [ebp - 4]
lea ecx, [ebp + 8]
call fcn.00435dd0
push dword [ebp + 8]
call fcn.00403169
pop ecx
lea ecx, [ebp + 8]
call fcn.0043092f
jmp 0x4054d0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x84]
push eax
push edi
push edi
push 4
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x4054d0
cmp byte [ebp - 0x1c], 0
je 0x405237
test byte [0x4ada94], 8
jne 0x405219
or byte [0x4ada94], 8
push 2
push str.SeShutdownPrivilege
call fcn.0040f24d
pop ecx
pop ecx
test byte [0x4ada94], 4
jne 0x405237
or byte [0x4ada94], 4
push 2
push str.SeDebugPrivilege
call fcn.0040f24d
pop ecx
pop ecx
cmp byte [ebp - 6], 0
je 0x405252
cmp dword [0x4acbfc], edi
jne 0x40525a
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateJobObjectW]
mov dword [0x4acbfc], eax
cmp dword [0x4acbfc], edi
je 0x405269
push dword [ebp - 0x38]
push dword [0x4acbfc]
call dword [sym.imp.KERNEL32.DLL_AssignProcessToJobObject]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push dword [ebp - 0x34]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call ebx
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
and dword [ebp - 0x34], 0
push 0xffffffffffffffff
push 0xffffffffffffffff
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
push eax
call edi
cmp dword [0x4acb98], 0
je 0x4052a7
push dword [0x4acb98]
call ebx
mov eax, dword [ebp - 0x38]
push 0xffffffffffffffff
mov dword [0x4acb98], 0
push 0xffffffffffffffff
mov dword [0x4acb98], eax
call esi
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_GetLastInputInfo]
lea eax, [ebp - 0x28]
push eax
call ebx
cmp dword [ebp - 0x18], 0
jbe 0x40547a
lea eax, [ebp - 0x28]
mov esi, 0x103
push eax
mov dword [ebp - 0x10], esi
call ebx
cmp byte [ebp - 0x12], 0
jne 0x4053d3
cmp byte [ebp + 8], 0
je 0x405429
cmp byte [0x4ab290], 0
jle 0x4054d0
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, 0xc8
call esi
and dword [ebp - 0x18], 0
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp byte [0x4ab290], 0
jle 0x40536a
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetLastInputInfo]
mov eax, dword [ebp - 0x24]
sub eax, dword [0x4acb94]
test eax, eax
jg 0x40536a
cmp byte [ebp - 5], 0
je 0x40536a
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call esi
mov ebx, eax
sub eax, dword [ebp - 0xc]
cmp eax, 0x64
jae 0x40536a
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 3
jl 0x40531d
sub ebx, dword [ebp - 0xc]
cmp byte [0x4ab290], 0
jle 0x4053e1
mov eax, dword [ebp - 0x24]
sub eax, dword [0x4acb94]
test eax, eax
jg 0x4053e1
cmp byte [ebp - 5], 0
je 0x40538e
cmp ebx, 0x64
jb 0x4053e1
cmp ebx, edi
jae 0x40539d
mov eax, edi
sub eax, ebx
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [0x4ab290], 0
jg 0x405312
jmp 0x4054d0
push 0x64
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
cmp dword [ebp - 0x10], esi
jne 0x4054bb
cmp byte [0x4ab290], 0
jge 0x4053af
jmp 0x4054bb
mov eax, dword [ebp - 0x24]
mov ecx, eax
sub ecx, dword [0x4acb94]
test ecx, ecx
jle 0x4053f5
mov dword [0x4acb94], eax
push dword [ebp + 8]
mov edi, 0x4acbfc
push dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
call fcn.00404bc0
cmp dword [ebp - 0x3c], 0
pop ecx
pop ecx
je 0x405420
push 1
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call fcn.0040348b
add esp, 0xc
and dword [ebp - 0x10], 0
jmp 0x4054d0
cmp byte [0x4ab290], 0
jl 0x405476
mov edi, 0xc8
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
je 0x405451
test eax, eax
jne 0x405451
cmp dword [ebp - 0x10], esi
jne 0x405476
lea eax, [ebp - 0x28]
push eax
call ebx
mov eax, dword [ebp - 0x24]
mov ecx, eax
sub ecx, dword [0x4acb94]
test ecx, ecx
jg 0x405471
cmp byte [0x4ab290], 0
jge 0x405437
jmp 0x405476
mov dword [0x4acb94], eax
push 0
jmp 0x4054be
and dword [ebp - 0x10], 0
cmp byte [ebp - 5], 0
je 0x4054d0
cmp byte [0x4ab290], 0
jl 0x4054bb
mov esi, 0x103
push 0x64
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
cmp dword [ebp - 0x10], esi
jne 0x4054bb
cmp byte [0x4ab290], 0
jge 0x405492
push dword [ebp + 8]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
mov edi, 0x4acbfc
call fcn.00404bc0
pop ecx
pop ecx
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.0043092f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4