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

Disassembly:
mov eax, 0x4e8784
call fcn.004b48a0
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.00416d9d
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.004b4c10
add esp, 0xc
test eax, eax
jne 0x41852d
mov eax, dword [ebp - 0x10]
mov ax, word [eax + 0x10]
call fcn.0041ed7f
test al, al
je 0x41852d
add dword [ebp - 0x10], 0x12
jmp 0x418567
push 0x1e
push dword [ebp - 0x10]
push str._InstallService
call fcn.004b4c10
mov ecx, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x4185a8
mov ax, word [ecx + 0x1e]
call fcn.0041ed7f
test al, al
je 0x4185a8
push 0x1e
push 0x4f3ca8
push ecx
call fcn.004b4dd0
add esp, 0xc
add dword [ebp - 0x10], 0x20
mov ecx, dword [ebp - 0x10]
call fcn.00416c9b
cmp byte [0x519300], 1
mov ecx, eax
mov dword [ebp - 0x10], ecx
jne 0x418585
push ecx
call fcn.0041eb73
jmp 0x4185f0
xor eax, eax
jmp 0x41859b
call fcn.0041ed7f
test al, al
jne 0x4188a0
inc ecx
inc ecx
mov dword [ebp - 0x10], ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x418589
jmp 0x4188a0
push 0x1c
push ecx
push str._RemoveService
call fcn.004b4c10
mov ecx, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x4188a0
mov ax, word [ecx + 0x1c]
call fcn.0041ed7f
test al, al
je 0x4188a0
add ecx, 0x1e
call fcn.00416c9b
cmp byte [0x519300], 1
mov ecx, eax
mov dword [ebp - 0x10], ecx
jne 0x4185f8
push ecx
call fcn.00418ea8
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
jmp 0x41860e
call fcn.0041ed7f
test al, al
jne 0x4188a0
inc ecx
inc ecx
mov dword [ebp - 0x10], ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x4185fc
jmp 0x4188a0
push 2
lea eax, [ebp - 0x10]
push eax
push 0x4f3dd4
call fcn.0044b960
add esp, 0xc
test al, al
jne 0x4188c2
push 5
lea eax, [ebp - 0x10]
push eax
push str.__job
call fcn.0044b960
add esp, 0xc
test al, al
je 0x418656
mov byte [ebp - 0x12], 1
jmp 0x41889d
push 7
lea eax, [ebp - 0x10]
push eax
push str.__nojob
call fcn.0044b960
add esp, 0xc
test al, al
je 0x418676
mov byte [ebp - 0x12], 0
jmp 0x41889d
push 6
lea eax, [ebp - 0x10]
push eax
push 0x4f3dbc
call fcn.0044b960
add esp, 0xc
test al, al
je 0x418696
mov byte [ebp - 0x1d], 1
jmp 0x41889d
push 6
lea eax, [ebp - 0x10]
push eax
push str.__wait
call fcn.0044b960
add esp, 0xc
test al, al
je 0x4186b6
mov byte [ebp - 0x11], 1
jmp 0x41889d
push 8
lea eax, [ebp - 0x10]
push eax
push str.__nowait
call fcn.0044b960
add esp, 0xc
test al, al
je 0x4186d6
mov byte [ebp - 0x11], 0
jmp 0x41889d
push 0xa
lea eax, [ebp - 0x10]
push eax
push str.__idlewait
call fcn.0044b960
add esp, 0xc
test al, al
je 0x4186f6
mov byte [ebp - 0x1e], 1
jmp 0x41889d
push 6
lea eax, [ebp - 0x10]
push eax
push str.__idle
call fcn.0044b960
add esp, 0xc
test al, al
lea eax, [ebp - 0x10]
je 0x41872e
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.00416db0
test eax, eax
je 0x41889d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
jmp 0x41889d
push 0xa
push eax
push str.__killwin2
call fcn.0044b960
add esp, 0xc
test al, al
je 0x41874b
mov byte [ebp - 0x28], 1
jmp 0x41889d
push 9
lea eax, [ebp - 0x10]
push eax
push str.__killwin
call fcn.0044b960
add esp, 0xc
test al, al
lea eax, [ebp - 0x10]
je 0x418789
mov esi, dword [ebp - 0x10]
push eax
call fcn.00417de5
mov eax, dword [ebp - 0x10]
pop ecx
sub eax, esi
push 0xffffffffffffffff
sar eax, 1
push eax
push esi
mov ecx, 0x51cfc4
call fcn.004493e0
jmp 0x41889d
push 0xe
push eax
push str.__delayservice
call fcn.0044b960
add esp, 0xc
test al, al
lea eax, [ebp - 0x10]
je 0x4187f3
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.00416db0
test eax, eax
je 0x41889d
cmp dword [ebp + 8], 1
jne 0x41889d
mov esi, dword [ebp - 0x18]
lea eax, [esi + 0x63]
push 0x64
cdq
pop ecx
idiv ecx
mov edi, eax
jmp 0x4187d8
dec edi
js 0x4187e1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x519300], 0
jg 0x4187cd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov dword [0x51c75c], eax
jmp 0x41889d
push 0xa
push eax
push str.__idlequit
call fcn.0044b960
add esp, 0xc
test al, al
je 0x4188a7
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
xor eax, eax
jmp 0x418823
call fcn.0041ed7f
test al, al
jne 0x41882b
inc esi
inc esi
mov dword [ebp - 0x10], esi
mov ax, word [esi]
cmp ax, bx
jne 0x418815
sub esi, dword [ebp - 0x18]
sar esi, 1
cmp esi, ebx
jle 0x41889d
lea ebx, [esi + esi + 4]
lea eax, [ebx + 8]
push eax
push 0
push dword [0x51d3c8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x41885d
push 2
call fcn.004490f0
cmp eax, 4
pop ecx
je 0x418838
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 0x41887e
cmp cx, 0x21
jne 0x418889
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.00417dcd
and word [edi + esi*2], 0
add esp, 0xc
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
call fcn.00416c9b
jmp 0x4188b6
mov eax, dword [ebp - 0x10]
cmp word [eax], 0x3d
jne 0x4188c2
inc eax
inc eax
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x10], eax
cmp word [eax], bx
jne 0x41861b
mov ecx, dword [ebp - 0x10]
call fcn.00416c9b
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 0x41890a
push dword [ebp - 0x24]
call fcn.00416c04
pop ecx
mov edi, dword [0x51cfc0]
push edi
call esi
cmp eax, 0x11
jl 0x41891b
push 0x11
pop eax
lea edi, [edi + eax*2]
lea eax, [eax + ebx + 0xa0]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004494b0
and dword [ebp - 4], 0
cmp word [edi], 0x3d
jne 0x41893e
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.00417dcd
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.00417dcd
add esp, 0xc
cmp byte [ebp - 0x1d], 0
je 0x41897b
or dword [ebp - 0x64], 1
and word [ebp - 0x60], 0
push 0x4f3d4c
push dword [ebp - 0x2c]
call fcn.00416ce3
test eax, eax
pop ecx
pop ecx
je 0x4189a4
movzx eax, word [eax + 0x10]
test ax, ax
je 0x4189a0
call fcn.0041ed7f
test al, al
je 0x4189a4
mov byte [ebp + 8], 1
or dword [ebp - 0x1c], 0xffffffff
and dword [ebp - 0x30], 0
cmp byte [0x519300], 0
mov dword [ebp - 0x34], 8
jle 0x418cc4
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 0x418cc4
cmp byte [ebp - 0x28], 0
je 0x418a28
test byte [0x51d638], 8
jne 0x418a0a
or byte [0x51d638], 8
push 2
push str.SeShutdownPrivilege
call fcn.004226a0
pop ecx
pop ecx
test byte [0x51d638], 4
jne 0x418a28
or byte [0x51d638], 4
push 2
push str.SeDebugPrivilege
call fcn.004226a0
pop ecx
pop ecx
cmp byte [ebp - 0x12], 0
je 0x418a45
xor eax, eax
cmp dword [0x51cfe0], eax
jne 0x418a4e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov dword [0x51cfe0], eax
cmp dword [0x51cfe0], 0
je 0x418a5d
push dword [ebp - 0x44]
push dword [0x51cfe0]
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 [0x51c760], 0
je 0x418a9b
push dword [0x51c760]
call ebx
mov eax, dword [ebp - 0x44]
push 0xffffffffffffffff
mov dword [0x51c760], 0
push 0xffffffffffffffff
mov dword [0x51c760], 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 0x418c6e
lea eax, [ebp - 0x34]
mov esi, 0x103
push eax
mov dword [ebp - 0x1c], esi
call ebx
cmp byte [ebp - 0x1e], 0
jne 0x418bc7
cmp byte [ebp + 8], 0
je 0x418c1d
cmp byte [0x519300], 0
jle 0x418cc4
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 [0x519300], 0
jle 0x418b5e
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetLastInputInfo]
mov eax, dword [ebp - 0x30]
sub eax, dword [0x51c75c]
test eax, eax
jg 0x418b5e
cmp byte [ebp - 0x11], 0
je 0x418b5e
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 0x418b5e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 3
jl 0x418b11
sub ebx, dword [ebp - 0x18]
cmp byte [0x519300], 0
jle 0x418bd5
mov eax, dword [ebp - 0x30]
sub eax, dword [0x51c75c]
test eax, eax
jg 0x418bd5
cmp byte [ebp - 0x11], 0
je 0x418b82
cmp ebx, 0x64
jb 0x418bd5
cmp ebx, edi
jae 0x418b91
mov eax, edi
sub eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x519300], 0
jg 0x418b06
jmp 0x418cc4
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 0x418caf
cmp byte [0x519300], 0
jge 0x418ba3
jmp 0x418caf
mov eax, dword [ebp - 0x30]
mov ecx, eax
sub ecx, dword [0x51c75c]
test ecx, ecx
jle 0x418be9
mov dword [0x51c75c], eax
push dword [ebp + 8]
mov edi, 0x51cfe0
push dword [ebp - 0x28]
lea eax, [ebp - 0x44]
call fcn.00418406
cmp dword [ebp - 0x48], 0
pop ecx
pop ecx
je 0x418c14
push 1
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
call fcn.00416e61
add esp, 0xc
and dword [ebp - 0x1c], 0
jmp 0x418cc4
cmp byte [0x519300], 0
jl 0x418c6a
mov edi, 0xc8
push edi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x418c45
test eax, eax
jne 0x418c45
cmp dword [ebp - 0x1c], esi
jne 0x418c6a
lea eax, [ebp - 0x34]
push eax
call ebx
mov eax, dword [ebp - 0x30]
mov ecx, eax
sub ecx, dword [0x51c75c]
test ecx, ecx
jg 0x418c65
cmp byte [0x519300], 0
jge 0x418c2b
jmp 0x418c6a
mov dword [0x51c75c], eax
push 0
jmp 0x418cb2
and dword [ebp - 0x1c], 0
cmp byte [ebp - 0x11], 0
je 0x418cc4
cmp byte [0x519300], 0
jl 0x418caf
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 0x418caf
cmp byte [0x519300], 0
jge 0x418c86
push dword [ebp + 8]
push dword [ebp - 0x28]
lea eax, [ebp - 0x44]
mov edi, 0x51cfe0
call fcn.00418406
pop ecx
pop ecx
mov esi, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00443880
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4