Function at 0x403ed2
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, 0x80
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 - 0x18], 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 - 0x80], 0x44
mov dword [ebp - 0x7c], ebx
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [ebp - 4], esi
call fcn.00403061
push 0x10
push eax
push str._Service
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 7], bl
mov byte [ebp - 8], bl
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x3c], bl
call fcn.00461880
add esp, 0xc
test eax, eax
jne 0x403f63
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x10]
call fcn.004213da
test al, al
je 0x403f63
add dword [ebp - 4], 0x12
jmp 0x403f9d
push 0x1e
push dword [ebp - 4]
push str._InstallService
call fcn.00461880
mov ecx, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x403fd7
mov ax, word [ecx + 0x1e]
call fcn.004213da
test al, al
je 0x403fd7
push 0x1e
push 0x475db8
push ecx
call fcn.00461a50
add esp, 0xc
add dword [ebp - 4], 0x20
mov ecx, dword [ebp - 4]
call fcn.00402f5a
cmp byte [0x4892b4], 1
mov ecx, eax
mov dword [ebp - 4], ecx
jne 0x403fbb
push ecx
call fcn.0040924e
jmp 0x404017
xor eax, eax
jmp 0x403fcd
call fcn.004213da
test al, al
jne 0x404039
inc ecx
inc ecx
mov dword [ebp - 4], ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x403fbf
jmp 0x404039
push 0x1c
push ecx
push str._RemoveService
call fcn.00461880
mov ecx, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x404039
mov ax, word [ecx + 0x1c]
call fcn.004213da
test al, al
je 0x404039
add ecx, 0x1e
call fcn.00402f5a
cmp byte [0x4892b4], 1
mov ecx, eax
mov dword [ebp - 4], ecx
jne 0x40401f
push ecx
call fcn.00404888
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
jmp 0x404031
call fcn.004213da
test al, al
jne 0x404039
inc ecx
inc ecx
mov dword [ebp - 4], ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x404023
call fcn.00402f5a
mov dword [ebp - 4], eax
cmp word [eax], bx
je 0x4042d7
push 2
lea eax, [ebp - 4]
push eax
push 0x475ee4
call fcn.0042c9b5
add esp, 0xc
test al, al
jne 0x4042d7
push 5
lea eax, [ebp - 4]
push eax
push str.__job
call fcn.0042c9b5
add esp, 0xc
test al, al
je 0x404085
mov byte [ebp - 6], 1
jmp 0x4042b0
push 7
lea eax, [ebp - 4]
push eax
push str.__nojob
call fcn.0042c9b5
add esp, 0xc
test al, al
je 0x4040a5
mov byte [ebp - 6], 0
jmp 0x4042b0
push 6
lea eax, [ebp - 4]
push eax
push str.__hide
call fcn.0042c9b5
add esp, 0xc
test al, al
je 0x4040c5
mov byte [ebp - 7], 1
jmp 0x4042b0
push 6
lea eax, [ebp - 4]
push eax
push str.__wait
call fcn.0042c9b5
add esp, 0xc
test al, al
je 0x4040e5
mov byte [ebp - 5], 1
jmp 0x4042b0
push 8
lea eax, [ebp - 4]
push eax
push str.__nowait
call fcn.0042c9b5
add esp, 0xc
test al, al
je 0x404105
mov byte [ebp - 5], 0
jmp 0x4042b0
push 0xa
lea eax, [ebp - 4]
push eax
push str.__idlewait
call fcn.0042c9b5
add esp, 0xc
test al, al
je 0x404125
mov byte [ebp - 8], 1
jmp 0x4042b0
push 6
lea eax, [ebp - 4]
push eax
push str.__idle
call fcn.0042c9b5
add esp, 0xc
test al, al
lea eax, [ebp - 4]
je 0x40415d
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00403074
test eax, eax
je 0x4042b0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x4042b0
push 0xa
push eax
push str.__killwin2
call fcn.0042c9b5
add esp, 0xc
test al, al
je 0x40417a
mov byte [ebp - 0x18], 1
jmp 0x4042b0
push 9
lea eax, [ebp - 4]
push eax
push str.__killwin
call fcn.0042c9b5
add esp, 0xc
test al, al
lea eax, [ebp - 4]
je 0x4041b8
mov esi, dword [ebp - 4]
push eax
call fcn.00403953
mov eax, dword [ebp - 4]
pop ecx
sub eax, esi
push 0xffffffffffffffff
sar eax, 1
push eax
push esi
mov ecx, 0x48abdc
call fcn.00409a52
jmp 0x4042b0
push 0xe
push eax
push str.__delayservice
call fcn.0042c9b5
add esp, 0xc
test al, al
lea eax, [ebp - 4]
je 0x404222
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00403074
test eax, eax
je 0x4042b0
cmp dword [ebp + 8], 1
jne 0x4042b0
mov esi, dword [ebp - 0x10]
lea eax, [esi + 0x63]
push 0x64
cdq
pop ecx
idiv ecx
mov edi, eax
jmp 0x404207
dec edi
js 0x404210
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x4892b4], 0
jg 0x4041fc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov dword [0x48ab90], eax
jmp 0x4042b0
push 0xa
push eax
push str.__idlequit
call fcn.0042c9b5
add esp, 0xc
test al, al
je 0x4042ba
mov esi, dword [ebp - 4]
mov ebx, esi
xor eax, eax
jmp 0x404251
call fcn.004213da
test al, al
jne 0x404259
inc esi
inc esi
mov dword [ebp - 4], esi
mov ax, word [esi]
test ax, ax
jne 0x404243
sub esi, ebx
sar esi, 1
test esi, esi
jle 0x4042b0
lea edi, [esi + esi + 4]
lea eax, [edi + 8]
push eax
push 0
push dword [0x48ab80]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [eax + 4], 0xaa55
mov dword [eax], edi
add eax, 8
mov dword [ebp - 0x20], eax
mov ax, word [ebx]
cmp ax, 0x2a
je 0x404295
cmp ax, 0x21
jne 0x40429d
mov al, byte [ebx]
inc ebx
inc ebx
mov byte [ebp - 0x3c], al
dec esi
mov edi, dword [ebp - 0x20]
push esi
push ebx
push edi
call fcn.0040391f
add esp, 0xc
and word [edi + esi*2], 0
mov ecx, dword [ebp - 4]
call fcn.00402f5a
jmp 0x4042c9
mov eax, dword [ebp - 4]
cmp word [eax], 0x3d
jne 0x4042d7
inc eax
inc eax
mov byte [ebp - 5], 1
xor ebx, ebx
mov dword [ebp - 4], eax
cmp word [eax], bx
jne 0x40404a
mov ecx, dword [ebp - 4]
call fcn.00402f5a
push eax
mov dword [ebp - 4], eax
call fcn.0046176a
pop ecx
push ebx
mov edi, 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 - 0x14], ebx
jbe 0x40431b
push dword [ebp - 0x14]
call fcn.00402ec3
pop ecx
mov esi, dword [0x48abd8]
push esi
call fcn.0046176a
cmp eax, 0x11
pop ecx
jl 0x404330
push 0x11
pop eax
lea esi, [esi + eax*2]
lea eax, [eax + edi + 0xa0]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042465d
cmp word [esi], 0x3d
jne 0x40434f
inc esi
inc esi
mov byte [ebp - 5], 1
push esi
call fcn.0046176a
mov edi, eax
lea eax, [edi + 1]
push eax
push esi
push dword [ebp - 0x1c]
call fcn.0040391f
push dword [ebp - 4]
call fcn.0046176a
inc eax
push eax
mov eax, dword [ebp - 0x1c]
push dword [ebp - 4]
lea eax, [eax + edi*2]
push eax
call fcn.0040391f
add esp, 0x20
cmp byte [ebp - 7], 0
je 0x40438e
or dword [ebp - 0x54], 1
mov word [ebp - 0x50], bx
push 0x475e5c
push dword [ebp - 0x1c]
call fcn.00402fa2
cmp eax, ebx
pop ecx
pop ecx
je 0x4043b7
movzx eax, word [eax + 0x10]
cmp ax, bx
je 0x4043b3
call fcn.004213da
test al, al
je 0x4043b7
mov byte [ebp + 8], 1
or dword [ebp - 0xc], 0xffffffff
cmp byte [0x4892b4], 0
mov dword [ebp - 0x28], 8
mov dword [ebp - 0x24], ebx
jle 0x4046c8
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4046c8
cmp byte [ebp - 0x18], 0
je 0x404435
test byte [0x48b16c], 8
jne 0x404417
or byte [0x48b16c], 8
push 2
push str.SeShutdownPrivilege
call fcn.0040c09f
pop ecx
pop ecx
test byte [0x48b16c], 4
jne 0x404435
or byte [0x48b16c], 4
push 2
push str.SeDebugPrivilege
call fcn.0040c09f
pop ecx
pop ecx
cmp byte [ebp - 6], 0
je 0x404450
cmp dword [0x48abe8], ebx
jne 0x404458
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov dword [0x48abe8], eax
cmp dword [0x48abe8], ebx
je 0x404467
push dword [ebp - 0x38]
push dword [0x48abe8]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [ebp - 0x34], ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
cmp dword [0x48ab94], ebx
je 0x4044a1
push dword [0x48ab94]
call esi
mov eax, dword [ebp - 0x38]
push 0xffffffffffffffff
xor esi, esi
mov dword [0x48ab94], esi
push 0xffffffffffffffff
mov dword [0x48ab94], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov ebx, dword [sym.imp.USER32.dll_GetLastInputInfo]
lea eax, [ebp - 0x28]
push eax
call ebx
cmp dword [ebp - 0x14], esi
jbe 0x404673
lea eax, [ebp - 0x28]
mov esi, 0x103
push eax
mov dword [ebp - 0xc], esi
call ebx
cmp byte [ebp - 8], 0
jne 0x4045cc
cmp byte [ebp + 8], 0
je 0x404622
cmp byte [0x4892b4], 0
jle 0x4046c8
mov edi, 0xc8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp - 0x14], 0
mov esi, eax
mov dword [ebp - 0x10], esi
cmp byte [0x4892b4], 0
jle 0x404563
lea eax, [ebp - 0x28]
push eax
call ebx
mov eax, dword [ebp - 0x24]
sub eax, dword [0x48ab90]
test eax, eax
jg 0x404563
cmp byte [ebp - 5], 0
je 0x404563
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
sub eax, dword [ebp - 0x10]
cmp eax, 0x64
jae 0x404563
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x404516
sub esi, dword [ebp - 0x10]
cmp byte [0x4892b4], 0
jle 0x4045da
mov eax, dword [ebp - 0x24]
sub eax, dword [0x48ab90]
test eax, eax
jg 0x4045da
cmp byte [ebp - 5], 0
je 0x404587
cmp esi, 0x64
jb 0x4045da
cmp esi, edi
jae 0x404596
mov eax, edi
sub eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x4892b4], 0
jg 0x404507
jmp 0x4046c8
push 0x64
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0xc], esi
jne 0x4046b3
cmp byte [0x4892b4], 0
jge 0x4045a8
jmp 0x4046b3
mov eax, dword [ebp - 0x24]
mov ecx, eax
sub ecx, dword [0x48ab90]
test ecx, ecx
jle 0x4045ee
mov dword [0x48ab90], eax
push dword [ebp + 8]
mov edi, 0x48abe8
push dword [ebp - 0x18]
lea eax, [ebp - 0x38]
call fcn.00403e4c
cmp dword [ebp - 0x20], 0
pop ecx
pop ecx
je 0x404619
push 1
push dword [ebp - 0x3c]
push dword [ebp - 0x20]
call fcn.00403125
add esp, 0xc
and dword [ebp - 0xc], 0
jmp 0x4046c8
cmp byte [0x4892b4], 0
jl 0x40466f
mov edi, 0xc8
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40464a
test eax, eax
jne 0x40464a
cmp dword [ebp - 0xc], esi
jne 0x40466f
lea eax, [ebp - 0x28]
push eax
call ebx
mov eax, dword [ebp - 0x24]
mov ecx, eax
sub ecx, dword [0x48ab90]
test ecx, ecx
jg 0x40466a
cmp byte [0x4892b4], 0
jge 0x404630
jmp 0x40466f
mov dword [0x48ab90], eax
push 0
jmp 0x4046b6
cmp byte [ebp - 5], 0
mov dword [ebp - 0xc], esi
je 0x4046c8
cmp byte [0x4892b4], 0
jl 0x4046b3
mov esi, 0x103
push 0x64
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0xc], esi
jne 0x4046b3
cmp byte [0x4892b4], 0
jge 0x40468a
push dword [ebp + 8]
push dword [ebp - 0x18]
lea eax, [ebp - 0x38]
mov edi, 0x48abe8
call fcn.00403e4c
pop ecx
pop ecx
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00424686
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4