Function at 0x42e010
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x465024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
lea edi, [ebx + 0x14]
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x318], edi
test esi, esi
je 0x42e0a9
cmp dword [edi], 0x10
mov eax, ebx
jb 0x42e055
mov eax, dword [ebx]
push 1
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x42e09c
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push dword [ebp - 0x31c]
call esi
cmp dword [edi], 0x10
jb 0x42e07b
mov ebx, dword [ebx]
push ebx
push str._Info_:_service___s__have_been_installed_n
call fcn.00409910
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f1f3
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x318], edi
push 0x30c
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.004311e0
lea edi, [ebp - 0x310]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x42e0c6
mov ax, word [0x460f74]
mov word [edi], ax
lea eax, [ebp - 0x30f]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x310]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x42e0f4
cmp dword [ebx + 0x44], 0x10
lea edx, [ebx + 0x30]
mov ax, word [0x460f78]
mov word [ecx], ax
mov al, byte [0x460f7a]
mov byte [ecx + 2], al
jb 0x42e11a
mov edx, dword [edx]
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x42e120
lea edi, [ebp - 0x310]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42e130
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0xf003f
mov ecx, edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x31c], edi
test edi, edi
jne 0x42e1d3
push eax
push eax
lea eax, [ebp - 0x314]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x100
lea esi, [ebx + 0x50]
push edi
push esi
call fcn.004311e0
push 0xff
push dword [ebp - 0x314]
push esi
call fcn.00437c40
add esp, 0x18
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
push str._Error_:_Couldnt_open_service_manager:_s_n
call fcn.00409910
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f1f3
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x2c], 0x10
lea eax, [ebx + 0x18]
jb 0x42e1de
mov eax, dword [eax]
mov esi, dword [ebp - 0x318]
mov ecx, ebx
cmp dword [esi], 0x10
jb 0x42e1ed
mov ecx, dword [ebx]
push 0
push 0
push 0x45e9b0
push 0
push 0
lea edx, [ebp - 0x310]
push edx
push 1
push 2
push 0x10
push 0xf01ff
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x318], eax
test eax, eax
jne 0x42e2ab
push eax
push eax
lea eax, [ebp - 0x314]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x100
lea edi, [ebx + 0x50]
push 0
push edi
call fcn.004311e0
push 0xff
push dword [ebp - 0x314]
push edi
call fcn.00437c40
add esp, 0x18
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esi], 0x10
jb 0x42e288
mov ebx, dword [ebx]
push edi
push ebx
push str._Info_:_Couldnt_create_service__s:__s_n
call fcn.00409910
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f1f3
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0x10
jb 0x42e2b2
mov ebx, dword [ebx]
push ebx
push str._Info_:_create_service___s__success_n
call fcn.00409910
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
push dword [ebp - 0x318]
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f1f3
mov esp, ebp
pop ebp
ret