Function at 0x404791
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.004032c2
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.00479e40
add esp, 0xc
test eax, eax
jne 0x404825
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x10]
call fcn.00402b57
test al, al
je 0x404825
add dword [ebp - 4], 0x12
jmp 0x40485f
push 0x1e
push dword [ebp - 4]
push str._InstallService
call fcn.00479e40
mov ecx, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x4048a0
mov ax, word [ecx + 0x1e]
call fcn.00402b57
test al, al
je 0x4048a0
push 0x1e
push 0x48eed4
push ecx
call fcn.0047a010
add esp, 0xc
add dword [ebp - 4], 0x20
mov ecx, dword [ebp - 4]
call fcn.004031c0
cmp byte [0x4a4290], 1
mov ecx, eax
mov dword [ebp - 4], ecx
jne 0x40487d
push ecx
call fcn.0040b280
jmp 0x4048e8
xor eax, eax
jmp 0x404893
call fcn.00402b57
test al, al
jne 0x404b98
inc ecx
inc ecx
mov dword [ebp - 4], ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x404881
jmp 0x404b98
push 0x1c
push ecx
push str._RemoveService
call fcn.00479e40
mov ecx, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x404b98
mov ax, word [ecx + 0x1c]
call fcn.00402b57
test al, al
je 0x404b98
add ecx, 0x1e
call fcn.004031c0
cmp byte [0x4a4290], 1
mov ecx, eax
mov dword [ebp - 4], ecx
jne 0x4048f0
push ecx
call fcn.00405232
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
jmp 0x404906
call fcn.00402b57
test al, al
jne 0x404b98
inc ecx
inc ecx
mov dword [ebp - 4], ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x4048f4
jmp 0x404b98
push 2
lea eax, [ebp - 4]
push eax
push 0x48efec
call fcn.004349fd
add esp, 0xc
test al, al
jne 0x404bba
push 5
lea eax, [ebp - 4]
push eax
push str.__job
call fcn.004349fd
add esp, 0xc
test al, al
je 0x40494e
mov byte [ebp - 6], 1
jmp 0x404b95
push 7
lea eax, [ebp - 4]
push eax
push str.__nojob
call fcn.004349fd
add esp, 0xc
test al, al
je 0x40496e
mov byte [ebp - 6], 0
jmp 0x404b95
push 6
lea eax, [ebp - 4]
push eax
push 0x48efd4
call fcn.004349fd
add esp, 0xc
test al, al
je 0x40498e
mov byte [ebp - 0x11], 1
jmp 0x404b95
push 6
lea eax, [ebp - 4]
push eax
push str.__wait
call fcn.004349fd
add esp, 0xc
test al, al
je 0x4049ae
mov byte [ebp - 5], 1
jmp 0x404b95
push 8
lea eax, [ebp - 4]
push eax
push str.__nowait
call fcn.004349fd
add esp, 0xc
test al, al
je 0x4049ce
mov byte [ebp - 5], 0
jmp 0x404b95
push 0xa
lea eax, [ebp - 4]
push eax
push str.__idlewait
call fcn.004349fd
add esp, 0xc
test al, al
je 0x4049ee
mov byte [ebp - 0x12], 1
jmp 0x404b95
push 6
lea eax, [ebp - 4]
push eax
push str.__idle
call fcn.004349fd
add esp, 0xc
test al, al
lea eax, [ebp - 4]
je 0x404a26
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.004032d5
test eax, eax
je 0x404b95
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
jmp 0x404b95
push 0xa
push eax
push str.__killwin2
call fcn.004349fd
add esp, 0xc
test al, al
je 0x404a43
mov byte [ebp - 0x1c], 1
jmp 0x404b95
push 9
lea eax, [ebp - 4]
push eax
push str.__killwin
call fcn.004349fd
add esp, 0xc
test al, al
lea eax, [ebp - 4]
je 0x404a81
mov esi, dword [ebp - 4]
push eax
call fcn.0040415a
mov eax, dword [ebp - 4]
pop ecx
sub eax, esi
push 0xffffffffffffffff
sar eax, 1
push eax
push esi
mov ecx, 0x4a5bec
call fcn.00432c3f
jmp 0x404b95
push 0xe
push eax
push str.__delayservice
call fcn.004349fd
add esp, 0xc
test al, al
lea eax, [ebp - 4]
je 0x404aeb
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.004032d5
test eax, eax
je 0x404b95
cmp dword [ebp + 8], 1
jne 0x404b95
mov esi, dword [ebp - 0xc]
lea eax, [esi + 0x63]
push 0x64
cdq
pop ecx
idiv ecx
mov edi, eax
jmp 0x404ad0
dec edi
js 0x404ad9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x4a4290], 0
jg 0x404ac5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov dword [0x4a5b90], eax
jmp 0x404b95
push 0xa
push eax
push str.__idlequit
call fcn.004349fd
add esp, 0xc
test al, al
je 0x404b9f
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
xor eax, eax
jmp 0x404b1b
call fcn.00402b57
test al, al
jne 0x404b23
inc esi
inc esi
mov dword [ebp - 4], esi
mov ax, word [esi]
cmp ax, bx
jne 0x404b0d
sub esi, dword [ebp - 0xc]
sar esi, 1
cmp esi, ebx
jle 0x404b95
lea ebx, [esi + esi + 4]
lea eax, [ebx + 8]
push eax
push 0
push dword [0x4a6028]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x404b55
push 2
call fcn.00432a45
cmp eax, 4
pop ecx
je 0x404b30
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 0x404b76
cmp cx, 0x21
jne 0x404b81
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.00404142
and word [edi + esi*2], 0
add esp, 0xc
xor ebx, ebx
mov ecx, dword [ebp - 4]
call fcn.004031c0
jmp 0x404bae
mov eax, dword [ebp - 4]
cmp word [eax], 0x3d
jne 0x404bba
inc eax
inc eax
mov byte [ebp - 5], 1
mov dword [ebp - 4], eax
cmp word [eax], bx
jne 0x404913
mov ecx, dword [ebp - 4]
call fcn.004031c0
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 0x404c02
push dword [ebp - 0x18]
call fcn.00403129
pop ecx
mov edi, dword [0x4a5be8]
push edi
call esi
cmp eax, 0x11
jl 0x404c13
push 0x11
pop eax
lea edi, [edi + eax*2]
lea eax, [eax + ebx + 0xa0]
push eax
lea ecx, [ebp - 0x20]
call fcn.00432cd5
cmp word [edi], 0x3d
jne 0x404c32
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.00404142
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.00404142
add esp, 0xc
cmp byte [ebp - 0x11], 0
je 0x404c6f
or dword [ebp - 0x58], 1
and word [ebp - 0x54], 0
push 0x48ef64
push dword [ebp - 0x20]
xor edi, edi
call fcn.00403208
cmp eax, edi
pop ecx
pop ecx
je 0x404c9a
movzx eax, word [eax + 0x10]
cmp ax, di
je 0x404c96
call fcn.00402b57
test al, al
je 0x404c9a
mov byte [ebp + 8], 1
or dword [ebp - 0x10], 0xffffffff
cmp byte [0x4a4290], 0
mov dword [ebp - 0x28], 8
mov dword [ebp - 0x24], edi
jle 0x40501b
mov esi, dword [ebp - 0x20]
xor edx, edx
xor eax, eax
mov ax, word [esi]
mov ecx, esi
jmp 0x404cd8
or eax, 0x20
cmp ax, 0x61
jb 0x404cdd
cmp ax, 0x7a
ja 0x404cdd
inc edx
inc ecx
inc ecx
mov ax, word [ecx]
cmp ax, di
jne 0x404cc3
mov ax, word [ecx]
call fcn.00402b57
test al, al
jne 0x404ceb
xor edx, edx
cmp edx, 4
jne 0x404d1e
push str.pecmd
lea ecx, [ebp + 8]
call fcn.0043ccfc
push dword [ebp - 4]
lea ecx, [ebp + 8]
call fcn.00432d25
push dword [ebp + 8]
call fcn.004030ac
pop ecx
lea ecx, [ebp + 8]
call fcn.0042dd2d
jmp 0x40501b
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 0x40501b
cmp byte [ebp - 0x1c], 0
je 0x404d82
test byte [0x4a6a4c], 8
jne 0x404d64
or byte [0x4a6a4c], 8
push 2
push str.SeShutdownPrivilege
call fcn.0040ee29
pop ecx
pop ecx
test byte [0x4a6a4c], 4
jne 0x404d82
or byte [0x4a6a4c], 4
push 2
push str.SeDebugPrivilege
call fcn.0040ee29
pop ecx
pop ecx
cmp byte [ebp - 6], 0
je 0x404d9d
cmp dword [0x4a5bf8], edi
jne 0x404da5
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov dword [0x4a5bf8], eax
cmp dword [0x4a5bf8], edi
je 0x404db4
push dword [ebp - 0x38]
push dword [0x4a5bf8]
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 [0x4a5b94], 0
je 0x404df2
push dword [0x4a5b94]
call ebx
mov eax, dword [ebp - 0x38]
push 0xffffffffffffffff
mov dword [0x4a5b94], 0
push 0xffffffffffffffff
mov dword [0x4a5b94], 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 0x404fc5
lea eax, [ebp - 0x28]
mov esi, 0x103
push eax
mov dword [ebp - 0x10], esi
call ebx
cmp byte [ebp - 0x12], 0
jne 0x404f1e
cmp byte [ebp + 8], 0
je 0x404f74
cmp byte [0x4a4290], 0
jle 0x40501b
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 [0x4a4290], 0
jle 0x404eb5
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetLastInputInfo]
mov eax, dword [ebp - 0x24]
sub eax, dword [0x4a5b90]
test eax, eax
jg 0x404eb5
cmp byte [ebp - 5], 0
je 0x404eb5
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 0x404eb5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 3
jl 0x404e68
sub ebx, dword [ebp - 0xc]
cmp byte [0x4a4290], 0
jle 0x404f2c
mov eax, dword [ebp - 0x24]
sub eax, dword [0x4a5b90]
test eax, eax
jg 0x404f2c
cmp byte [ebp - 5], 0
je 0x404ed9
cmp ebx, 0x64
jb 0x404f2c
cmp ebx, edi
jae 0x404ee8
mov eax, edi
sub eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x4a4290], 0
jg 0x404e5d
jmp 0x40501b
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 0x405006
cmp byte [0x4a4290], 0
jge 0x404efa
jmp 0x405006
mov eax, dword [ebp - 0x24]
mov ecx, eax
sub ecx, dword [0x4a5b90]
test ecx, ecx
jle 0x404f40
mov dword [0x4a5b90], eax
push dword [ebp + 8]
mov edi, 0x4a5bf8
push dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
call fcn.0040470b
cmp dword [ebp - 0x3c], 0
pop ecx
pop ecx
je 0x404f6b
push 1
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call fcn.00403386
add esp, 0xc
and dword [ebp - 0x10], 0
jmp 0x40501b
cmp byte [0x4a4290], 0
jl 0x404fc1
mov edi, 0xc8
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x404f9c
test eax, eax
jne 0x404f9c
cmp dword [ebp - 0x10], esi
jne 0x404fc1
lea eax, [ebp - 0x28]
push eax
call ebx
mov eax, dword [ebp - 0x24]
mov ecx, eax
sub ecx, dword [0x4a5b90]
test ecx, ecx
jg 0x404fbc
cmp byte [0x4a4290], 0
jge 0x404f82
jmp 0x404fc1
mov dword [0x4a5b90], eax
push 0
jmp 0x405009
and dword [ebp - 0x10], 0
cmp byte [ebp - 5], 0
je 0x40501b
cmp byte [0x4a4290], 0
jl 0x405006
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 0x405006
cmp byte [0x4a4290], 0
jge 0x404fdd
push dword [ebp + 8]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
mov edi, 0x4a5bf8
call fcn.0040470b
pop ecx
pop ecx
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.0042dd2d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4