Function at 0x402aa0
Capabilities:
Modify service
Query service status
Start service

Disassembly:
sub esp, 0x460
push ebx
push ebp
push esi
push edi
mov ecx, 9
mov esi, 0x40f46c
lea edi, [esp + 0x20]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x474]
xor ebp, ebp
cmp esi, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
jne 0x402ae5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x460
ret
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
jne 0x402b80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [esp + 0x268]
push ebx
push 0x103
push eax
call fcn.00403ba0
add esp, 0xc
lea ecx, [esp + 0x60]
push eax
push ebx
push 0x40f27c
push 0x103
push ecx
call fcn.004051ce
mov ecx, dword [0x4138a0]
add esp, 0x14
lea edx, [esp + 0x60]
lea eax, [esp + 0x20]
push edx
mov edx, dword [0x40c2d0]
push 0x402
push eax
push ecx
push edx
push 0x40ef78
push 3
push 0x412858
call fcn.00404600
mov esi, dword [esp + 0x3c]
add esp, 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x460
ret
push esi
call fcn.004051b1
add esp, 4
test eax, eax
jbe 0x402edb
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebp, ebp
je 0x402ba2
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402bb9
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
test ebp, ebp
je 0x402e5b
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
call edi
mov ebx, eax
cmp ebx, 0x7a
je 0x402c2f
push ebx
lea eax, [esp + 0x26c]
push 0x103
push eax
call fcn.00403ba0
add esp, 0xc
lea ecx, [esp + 0x60]
push eax
push ebx
push esi
push 0x40f42c
push 0x103
push ecx
call fcn.004051ce
add esp, 0x18
lea edx, [esp + 0x60]
push edx
push 0x41e
jmp 0x402e95
mov eax, dword [esp + 0x14]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x402c99
call edi
mov ebx, eax
lea ecx, [esp + 0x268]
push ebx
push 0x103
push ecx
call fcn.00403ba0
add esp, 0xc
lea edx, [esp + 0x60]
push eax
push ebx
push esi
push 0x40f3f0
push 0x103
push edx
call fcn.004051ce
mov edx, dword [0x4138a0]
add esp, 0x18
lea eax, [esp + 0x60]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [0x40c2d0]
push 0x429
push ecx
push edx
push eax
jmp 0x402ea8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x402cf2
call edi
mov ebx, eax
lea eax, [esp + 0x268]
push ebx
push 0x103
push eax
call fcn.00403ba0
add esp, 0xc
lea ecx, [esp + 0x60]
push eax
push ebx
push esi
push 0x40f3b4
push 0x103
push ecx
call fcn.004051ce
add esp, 0x18
lea edx, [esp + 0x60]
push edx
push 0x434
jmp 0x402e95
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 2
je 0x402d83
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push ebp
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x402d83
call edi
mov ebx, eax
lea ecx, [esp + 0x268]
push ebx
push 0x103
push ecx
call fcn.00403ba0
add esp, 0xc
lea edx, [esp + 0x60]
push eax
push ebx
push esi
push str.b__rY_rg
push 0x103
push edx
call fcn.004051ce
mov edx, dword [0x4138a0]
add esp, 0x18
lea eax, [esp + 0x60]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [0x40c2d0]
push 0x443
push ecx
push edx
push eax
push 0x40ef78
push 3
push 0x412858
call fcn.00404600
add esp, 0x20
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edx, [esp + 0x44]
mov dword [esp + 0x10], 0
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x402de9
call edi
mov ebx, eax
lea eax, [esp + 0x268]
push ebx
push 0x103
push eax
call fcn.00403ba0
add esp, 0xc
lea ecx, [esp + 0x60]
push eax
push ebx
push esi
push 0x40f340
push 0x103
push ecx
call fcn.004051ce
add esp, 0x18
lea edx, [esp + 0x60]
push edx
push 0x44e
jmp 0x402e95
cmp dword [esp + 0x48], 4
je 0x402e47
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x402e47
call edi
mov ebx, eax
cmp ebx, 0x420
je 0x402e47
push ebx
lea eax, [esp + 0x26c]
push 0x103
push eax
call fcn.00403ba0
add esp, 0xc
lea ecx, [esp + 0x60]
push eax
push ebx
push esi
push 0x40f30c
push 0x103
push ecx
call fcn.004051ce
add esp, 0x18
lea edx, [esp + 0x60]
push edx
push 0x45a
jmp 0x402e95
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
xor ebp, ebp
call fcn.004051b1
add esp, 4
jmp 0x402ec2
push ebx
lea eax, [esp + 0x26c]
push 0x103
push eax
call fcn.00403ba0
add esp, 0xc
lea ecx, [esp + 0x60]
push eax
push ebx
push esi
push 0x40f2d8
push 0x103
push ecx
call fcn.004051ce
add esp, 0x18
lea edx, [esp + 0x60]
push edx
push 0x466
mov ecx, dword [0x4138a0]
mov edx, dword [0x40c2d0]
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push 0x40ef78
push 3
push 0x412858
call fcn.00404600
push esi
call fcn.004051b1
add esp, 0x24
lea esi, [esi + eax*2 + 2]
push esi
call fcn.004051b1
add esp, 4
test eax, eax
ja 0x402b97
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov esi, 1
test eax, eax
je 0x402eef
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebp, ebp
je 0x402efa
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x460
ret