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

Disassembly:
mov eax, 0x4e4506
call fcn.004afe60
sub esp, 0x84
push ebx
push esi
push edi
push 0xffffffffffffffff
xor ebx, ebx
push 0xffffffffffffffff
mov esi, ecx
mov byte [ebp - 0x11], 1
mov byte [ebp - 0x12], 1
mov byte [ebp - 0x28], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
xor eax, eax
mov dword [ebp - 0x44], ebx
lea edi, [ebp - 0x40]
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 - 0x90], 0x44
mov dword [ebp - 0x8c], ebx
lea edi, [ebp - 0x88]
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [ebp - 0x10], esi
call fcn.00415956
push 0x10
push eax
push str._Service
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x1d], bl
mov byte [ebp - 0x1e], bl
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x4c], bl
call fcn.004afe80
add esp, 0xc
test eax, eax
jne 0x416e94
mov eax, dword [ebp - 0x10]
mov ax, word [eax + 0x10]
call fcn.0041d35d
test al, al
je 0x416e94
add dword [ebp - 0x10], 0x12
jmp 0x416ece
push 0x1e
push dword [ebp - 0x10]
push str._InstallService
call fcn.004afe80
mov ecx, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x416f0f
mov ax, word [ecx + 0x1e]
call fcn.0041d35d
test al, al
je 0x416f0f
push 0x1e
push 0x4ef688
push ecx
call fcn.004b0040
add esp, 0xc
add dword [ebp - 0x10], 0x20
mov ecx, dword [ebp - 0x10]
call fcn.00415854
cmp byte [0x5152e8], 1
mov ecx, eax
mov dword [ebp - 0x10], ecx
jne 0x416eec
push ecx
call fcn.0041d11d
jmp 0x416f57
xor eax, eax
jmp 0x416f02
call fcn.0041d35d
test al, al
jne 0x417207
inc ecx
inc ecx
mov dword [ebp - 0x10], ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x416ef0
jmp 0x417207
push 0x1c
push ecx
push str._RemoveService
call fcn.004afe80
mov ecx, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x417207
mov ax, word [ecx + 0x1c]
call fcn.0041d35d
test al, al
je 0x417207
add ecx, 0x1e
call fcn.00415854
cmp byte [0x5152e8], 1
mov ecx, eax
mov dword [ebp - 0x10], ecx
jne 0x416f5f
push ecx
call fcn.0041780f
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
jmp 0x416f75
call fcn.0041d35d
test al, al
jne 0x417207
inc ecx
inc ecx
mov dword [ebp - 0x10], ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x416f63
jmp 0x417207
push 2
lea eax, [ebp - 0x10]
push eax
push 0x4ef7b4
call fcn.00448570
add esp, 0xc
test al, al
jne 0x417229
push 5
lea eax, [ebp - 0x10]
push eax
push str.__job
call fcn.00448570
add esp, 0xc
test al, al
je 0x416fbd
mov byte [ebp - 0x12], 1
jmp 0x417204
push 7
lea eax, [ebp - 0x10]
push eax
push str.__nojob
call fcn.00448570
add esp, 0xc
test al, al
je 0x416fdd
mov byte [ebp - 0x12], 0
jmp 0x417204
push 6
lea eax, [ebp - 0x10]
push eax
push str.__hide
call fcn.00448570
add esp, 0xc
test al, al
je 0x416ffd
mov byte [ebp - 0x1d], 1
jmp 0x417204
push 6
lea eax, [ebp - 0x10]
push eax
push str.__wait
call fcn.00448570
add esp, 0xc
test al, al
je 0x41701d
mov byte [ebp - 0x11], 1
jmp 0x417204
push 8
lea eax, [ebp - 0x10]
push eax
push str.__nowait
call fcn.00448570
add esp, 0xc
test al, al
je 0x41703d
mov byte [ebp - 0x11], 0
jmp 0x417204
push 0xa
lea eax, [ebp - 0x10]
push eax
push str.__idlewait
call fcn.00448570
add esp, 0xc
test al, al
je 0x41705d
mov byte [ebp - 0x1e], 1
jmp 0x417204
push 6
lea eax, [ebp - 0x10]
push eax
push str.__idle
call fcn.00448570
add esp, 0xc
test al, al
lea eax, [ebp - 0x10]
je 0x417095
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.00415969
test eax, eax
je 0x417204
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
jmp 0x417204
push 0xa
push eax
push str.__killwin2
call fcn.00448570
add esp, 0xc
test al, al
je 0x4170b2
mov byte [ebp - 0x28], 1
jmp 0x417204
push 9
lea eax, [ebp - 0x10]
push eax
push str.__killwin
call fcn.00448570
add esp, 0xc
test al, al
lea eax, [ebp - 0x10]
je 0x4170f0
mov esi, dword [ebp - 0x10]
push eax
call fcn.0041676d
mov eax, dword [ebp - 0x10]
pop ecx
sub eax, esi
push 0xffffffffffffffff
sar eax, 1
push eax
push esi
mov ecx, 0x518e78
call fcn.004461b0
jmp 0x417204
push 0xe
push eax
push str.__delayservice
call fcn.00448570
add esp, 0xc
test al, al
lea eax, [ebp - 0x10]
je 0x41715a
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.00415969
test eax, eax
je 0x417204
cmp dword [ebp + 8], 1
jne 0x417204
mov esi, dword [ebp - 0x18]
lea eax, [esi + 0x63]
push 0x64
cdq
pop ecx
idiv ecx
mov edi, eax
jmp 0x41713f
dec edi
js 0x417148
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x5152e8], 0
jg 0x417134
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov dword [0x518dec], eax
jmp 0x417204
push 0xa
push eax
push str.__idlequit
call fcn.00448570
add esp, 0xc
test al, al
je 0x41720e
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
xor eax, eax
jmp 0x41718a
call fcn.0041d35d
test al, al
jne 0x417192
inc esi
inc esi
mov dword [ebp - 0x10], esi
mov ax, word [esi]
cmp ax, bx
jne 0x41717c
sub esi, dword [ebp - 0x18]
sar esi, 1
cmp esi, ebx
jle 0x417204
lea ebx, [esi + esi + 4]
lea eax, [ebx + 8]
push eax
push 0
push dword [0x51927c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x4171c4
push 2
call fcn.00445ec0
cmp eax, 4
pop ecx
je 0x41719f
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], 0xaa55
mov dword [edi], ebx
mov cx, word [eax]
add edi, 8
cmp cx, 0x2a
mov dword [ebp - 0x48], edi
je 0x4171e5
cmp cx, 0x21
jne 0x4171f0
mov cl, byte [eax]
inc eax
inc eax
mov byte [ebp - 0x4c], cl
mov dword [ebp - 0x18], eax
dec esi
push esi
push dword [ebp - 0x18]
push edi
call fcn.004acbce
and word [edi + esi*2], 0
add esp, 0xc
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
call fcn.00415854
jmp 0x41721d
mov eax, dword [ebp - 0x10]
cmp word [eax], 0x3d
jne 0x417229
inc eax
inc eax
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x10], eax
cmp word [eax], bx
jne 0x416f82
mov ecx, dword [ebp - 0x10]
call fcn.00415854
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 0x10], 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 - 0x24], 0
jbe 0x417271
push dword [ebp - 0x24]
call fcn.004157bd
pop ecx
mov edi, dword [0x518e74]
push edi
call esi
cmp eax, 0x11
jl 0x417282
push 0x11
pop eax
lea edi, [edi + eax*2]
lea eax, [eax + ebx + 0xa0]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00446280
and dword [ebp - 4], 0
cmp word [edi], 0x3d
jne 0x4172a5
inc edi
inc edi
mov byte [ebp - 0x11], 1
push edi
call esi
mov ebx, eax
lea eax, [ebx + 1]
push eax
push edi
push dword [ebp - 0x2c]
call fcn.004acbce
add esp, 0xc
push dword [ebp - 0x10]
call esi
inc eax
push eax
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x10]
lea eax, [eax + ebx*2]
push eax
call fcn.004acbce
add esp, 0xc
cmp byte [ebp - 0x1d], 0
je 0x4172e2
or dword [ebp - 0x64], 1
and word [ebp - 0x60], 0
push 0x4ef72c
push dword [ebp - 0x2c]
call fcn.0041589c
test eax, eax
pop ecx
pop ecx
je 0x41730b
movzx eax, word [eax + 0x10]
test ax, ax
je 0x417307
call fcn.0041d35d
test al, al
je 0x41730b
mov byte [ebp + 8], 1
or dword [ebp - 0x1c], 0xffffffff
and dword [ebp - 0x30], 0
cmp byte [0x5152e8], 0
mov dword [ebp - 0x34], 8
jle 0x41762b
lea eax, [ebp - 0x44]
push eax
xor esi, esi
lea eax, [ebp - 0x90]
push eax
push esi
push esi
push 4
push esi
push esi
push esi
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
je 0x41762b
cmp byte [ebp - 0x28], 0
je 0x41738f
test byte [0x519468], 8
jne 0x417371
or byte [0x519468], 8
push 2
push str.SeShutdownPrivilege
call fcn.00420c19
pop ecx
pop ecx
test byte [0x519468], 4
jne 0x41738f
or byte [0x519468], 4
push 2
push str.SeDebugPrivilege
call fcn.00420c19
pop ecx
pop ecx
cmp byte [ebp - 0x12], 0
je 0x4173ac
xor eax, eax
cmp dword [0x518e94], eax
jne 0x4173b5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov dword [0x518e94], eax
cmp dword [0x518e94], 0
je 0x4173c4
push dword [ebp - 0x44]
push dword [0x518e94]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [ebp - 0x40], 0
push 0xffffffffffffffff
push 0xffffffffffffffff
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
push eax
call edi
cmp dword [0x518df0], 0
je 0x417402
push dword [0x518df0]
call ebx
mov eax, dword [ebp - 0x44]
push 0xffffffffffffffff
mov dword [0x518df0], 0
push 0xffffffffffffffff
mov dword [0x518df0], eax
call esi
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_GetLastInputInfo]
lea eax, [ebp - 0x34]
push eax
call ebx
cmp dword [ebp - 0x24], 0
jbe 0x4175d5
lea eax, [ebp - 0x34]
mov esi, 0x103
push eax
mov dword [ebp - 0x1c], esi
call ebx
cmp byte [ebp - 0x1e], 0
jne 0x41752e
cmp byte [ebp + 8], 0
je 0x417584
cmp byte [0x5152e8], 0
jle 0x41762b
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, 0xc8
call esi
and dword [ebp - 0x24], 0
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp byte [0x5152e8], 0
jle 0x4174c5
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetLastInputInfo]
mov eax, dword [ebp - 0x30]
sub eax, dword [0x518dec]
test eax, eax
jg 0x4174c5
cmp byte [ebp - 0x11], 0
je 0x4174c5
push edi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call esi
mov ebx, eax
sub eax, dword [ebp - 0x18]
cmp eax, 0x64
jae 0x4174c5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 3
jl 0x417478
sub ebx, dword [ebp - 0x18]
cmp byte [0x5152e8], 0
jle 0x41753c
mov eax, dword [ebp - 0x30]
sub eax, dword [0x518dec]
test eax, eax
jg 0x41753c
cmp byte [ebp - 0x11], 0
je 0x4174e9
cmp ebx, 0x64
jb 0x41753c
cmp ebx, edi
jae 0x4174f8
mov eax, edi
sub eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x5152e8], 0
jg 0x41746d
jmp 0x41762b
push 0x64
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x1c], esi
jne 0x417616
cmp byte [0x5152e8], 0
jge 0x41750a
jmp 0x417616
mov eax, dword [ebp - 0x30]
mov ecx, eax
sub ecx, dword [0x518dec]
test ecx, ecx
jle 0x417550
mov dword [0x518dec], eax
push dword [ebp + 8]
mov edi, 0x518e94
push dword [ebp - 0x28]
lea eax, [ebp - 0x44]
call fcn.00416d6d
cmp dword [ebp - 0x48], 0
pop ecx
pop ecx
je 0x41757b
push 1
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
call fcn.00415a1a
add esp, 0xc
and dword [ebp - 0x1c], 0
jmp 0x41762b
cmp byte [0x5152e8], 0
jl 0x4175d1
mov edi, 0xc8
push edi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4175ac
test eax, eax
jne 0x4175ac
cmp dword [ebp - 0x1c], esi
jne 0x4175d1
lea eax, [ebp - 0x34]
push eax
call ebx
mov eax, dword [ebp - 0x30]
mov ecx, eax
sub ecx, dword [0x518dec]
test ecx, ecx
jg 0x4175cc
cmp byte [0x5152e8], 0
jge 0x417592
jmp 0x4175d1
mov dword [0x518dec], eax
push 0
jmp 0x417619
and dword [ebp - 0x1c], 0
cmp byte [ebp - 0x11], 0
je 0x41762b
cmp byte [0x5152e8], 0
jl 0x417616
mov esi, 0x103
push 0x64
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x1c], esi
jne 0x417616
cmp byte [0x5152e8], 0
jge 0x4175ed
push dword [ebp + 8]
push dword [ebp - 0x28]
lea eax, [ebp - 0x44]
mov edi, 0x518e94
call fcn.00416d6d
pop ecx
pop ecx
mov esi, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0043f290
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4