Function at 0x524ee0
Capabilities:
Enumerate pe sections
Start service

Disassembly:
sub esp, 0xf0
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0xec], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x100]
push edi
mov edi, dword [esp + 0x108]
push 0x202
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], 0x80
call fcn.0051f370
cmp dword [0x59e748], 0
mov ebp, eax
mov dword [esp + 0x14], ebp
mov byte [0x59e6e0], 0
jne 0x525459
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [0x463cd0]
mov dword [esp + 0x2c], 0
lea ecx, [ecx]
cmp dword [0x59f4c8], 0
jne 0x524fdd
cmp dword [0x59e744], 0
je 0x524fdd
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x5251ae
push 0x10
push 0x46f9cc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x52520e
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push edi
call esi
test ebp, ebp
jne 0x524fc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x52524c
mov eax, dword [0x463cd0]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov dword [0x59e744], 0
cmp eax, 0xffffffff
jne 0x525093
cmp dword [0x59f4c4], 0
je 0x5250f5
mov eax, 1
mov dword [0x463cd0], eax
push 0
lea ecx, [esp + 0x20]
push ecx
push 8
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0x82006800
push eax
mov dword [esp + 0x40], 0x81
mov dword [esp + 0x3c], 0
call ebx
test eax, eax
je 0x5252ac
mov ax, word [esp + 0x24]
cmp ax, 4
jb 0x52535b
mov edx, dword [0x463cd0]
push 0
lea eax, [esp + 0x34]
push eax
push 8
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0x8200e808
push edx
mov dword [esp + 0x50], 0
call ebx
test eax, eax
je 0x5252dc
mov ax, word [esp + 0x24]
mov cx, word [esp + 0x26]
cmp ax, 6
ja 0x52530c
jne 0x52508e
cmp cx, 0xb
ja 0x52530c
mov eax, dword [0x463cd0]
movzx ecx, word [esi + 4]
movzx edx, word [esi + 2]
push 0
lea esi, [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
push ecx
push edi
push edx
push esi
push 0x8200e804
push eax
mov dword [esp + 0x3c], 0
call ebx
test eax, eax
jne 0x52547f
cmp dword [0x59f4c4], eax
jne 0x5250d6
mov eax, dword [0x463cd0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov dword [0x463cd0], eax
mov ecx, dword [esp + 0x2c]
inc ecx
cmp ecx, 3
mov dword [esp + 0x2c], ecx
jl 0x524f50
jmp 0x52547f
cmp dword [0x59f4c8], 0
push 0
push 0
je 0x52517b
push 0
push 0
push 0
push 0
push 0x46f9bc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x463cd0], eax
cmp eax, 0xffffffff
jne 0x524ffd
push 0x462
call fcn.0051f370
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
mov edi, eax
lea eax, [esp + 0x38]
push 0x46f9a4
push eax
call esi
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x9c]
push 0x46f9a0
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push 0x59e6e0
call fcn.0051f2f0
jmp 0x5253b4
push 3
push 0
push 3
push 0xc0000000
push 0x46f994
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x463cd0], eax
cmp eax, 0xffffffff
jne 0x524ffd
mov dword [0x59e744], 1
jmp 0x5250de
push 0
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x45c
call fcn.0051f370
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
lea ecx, [esp + 0x38]
push 0x46f984
push ecx
mov edi, eax
call esi
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x9c]
push 0x46f9a0
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
push 0x59e6e0
call fcn.0051f2f0
jmp 0x5253b4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x45d
call fcn.0051f370
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
lea edx, [esp + 0x38]
push 0x46f96c
push edx
mov edi, eax
call esi
add esp, 0xc
lea eax, [esp + 0x34]
push eax
push edi
push 0x59e6e0
call fcn.0051f2c0
jmp 0x5253b4
push 0x462
call fcn.0051f370
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
lea edx, [esp + 0x38]
push 0x46f954
push edx
mov edi, eax
call esi
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x9c]
push 0x46f9a0
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x38]
push edx
push edi
push 0x59e6e0
call fcn.0051f2f0
mov ebp, dword [esp + 0x14]
jmp 0x5253b4
push 0x467
call fcn.0051f370
push 0x46f93c
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0051f2c0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x34]
push edx
push ebp
push 0x46f92c
jmp 0x5253aa
push 0x467
call fcn.0051f370
push 0x46f93c
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0051f2c0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x34]
push ecx
push ebp
push 0x46f92c
jmp 0x5253aa
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
movzx edx, cx
push edx
movzx eax, ax
push eax
lea ecx, [esp + 0xa0]
push 0x46f920
push ecx
call esi
add esp, 0x10
push 0x469
call fcn.0051f370
lea edx, [esp + 0x98]
push edx
push 0x46f93c
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0051f2f0
lea ecx, [esp + 0x34]
push ecx
push ebp
push 0x46f910
jmp 0x5253aa
movzx edx, word [esp + 0x26]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edx
movzx eax, ax
push eax
lea ecx, [esp + 0xa0]
push 0x46f920
push ecx
call esi
add esp, 0x10
push 0x468
call fcn.0051f370
lea edx, [esp + 0x98]
push edx
push 0x46f93c
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0051f2f0
lea ecx, [esp + 0x34]
push ecx
push ebp
push 0x46f900
push 0x59e6e0
call esi
add esp, 0x10
mov eax, dword [0x463cd0]
cmp eax, 0xffffffff
je 0x5253c5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x59e6e0], 0
mov dword [0x463cd0], 0xffffffff
jne 0x52542a
push 0x45e
call fcn.0051f370
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x9c]
push 0x46f9a0
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x98]
push eax
push 0x46f93c
push edi
lea ecx, [esp + 0x40]
push ecx
call fcn.0051f2f0
lea edx, [esp + 0x34]
push edx
push ebp
push 0x46f8f0
push 0x59e6e0
call esi
add esp, 0x10
cmp dword [0x463b60], 0
jne 0x525451
push 0x30
push 0x46f664
push 0x59e6e0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x59e748], 1
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov cl, byte [esi + 6]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov byte [edi + 6], cl
mov cx, word [esp + 0x20]
mov eax, 0xc
mov byte [edi], 0xb2
mov byte [edi + 1], 0x80
mov word [edi + 2], ax
mov word [edi + 4], cx
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00526a8a
add esp, 0xf0
ret 8