Function at 0x428b00
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5255cc
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x348
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x358]
mov ecx, 0xd2
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x57a2c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
wait
call fcn.004517a0
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
call fcn.00451460
movzx eax, byte [0x580974]
test eax, eax
jne 0x428bf0
push 0xf8
call fcn.00450f30
add esp, 4
mov dword [ebp - 0x33c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x33c], 0
je 0x428bca
push 0x580974
sub esp, 8
movsd xmm0, qword [0x546520]
movsd qword [esp], xmm0
push 0x543312
push 0
push 0
push 0x121
push 0x545b84
push 0x48
mov ecx, dword [ebp - 0x33c]
call fcn.00451480
mov dword [ebp - 0x350], eax
jmp 0x428bd4
mov dword [ebp - 0x350], 0
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x348], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x348]
mov dword [0x580978], ecx
mov ecx, dword [ebp - 0x24]
call fcn.00451470
mov ecx, dword [0x580978]
add ecx, 0xd8
call fcn.00451460
cmp dword [ebp + 0xc], 0
je 0x428c1a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x350], eax
jmp 0x428c28
mov ecx, dword [ebp - 0x18]
call fcn.00401127
mov dword [ebp - 0x350], eax
mov ecx, dword [ebp - 0x350]
push ecx
lea ecx, [ebp - 0x330]
call fcn.00401438
mov dword [ebp - 0x354], eax
mov edx, dword [ebp - 0x354]
mov dword [ebp - 0x358], edx
mov byte [ebp - 4], 2
mov esi, esp
mov eax, dword [ebp - 0x358]
mov ecx, dword [eax]
push ecx
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, esp
call fcn.0049a060
push eax
push str.__u__Installing_service___s_...
mov edx, dword [0x580978]
mov eax, dword [edx]
mov ecx, dword [0x580978]
push ecx
mov edx, dword [eax + 0x48]
call edx
add esp, 0x10
cmp esi, esp
call fcn.0049a060
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x330]
call fcn.004020a9
mov eax, dword [0x580978]
mov edx, dword [eax]
mov esi, esp
mov ecx, dword [0x580978]
mov eax, dword [edx + 0x3c]
call eax
cmp esi, esp
call fcn.0049a060
mov ecx, dword [0x580978]
add ecx, 0xd8
call fcn.00451470
xor eax, eax
jne 0x428b4e
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.004012a3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00401785
movzx eax, al
test eax, eax
je 0x428df7
mov esi, esp
push 0x104
push 1
push 0x104
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x324]
call fcn.0040119f
mov dword [ebp - 0x350], eax
mov ecx, dword [ebp - 0x350]
mov dword [ebp - 0x354], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x354]
call fcn.00401046
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp esi, esp
call fcn.0049a060
test eax, eax
je 0x428d52
mov dword [ebp - 0x358], 1
jmp 0x428d5c
mov dword [ebp - 0x358], 0
mov edx, dword [ebp - 0x358]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x324]
call fcn.00402199
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0049a060
push eax
call fcn.004014d8
add esp, 4
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x3c], 0
je 0x428daa
mov eax, str.GetModuleFileNameW_0__CStrBuf_strExePath__260___260_
test eax, eax
je 0x428daa
mov dword [ebp - 0x350], 1
jmp 0x428db4
mov dword [ebp - 0x350], 0
mov ecx, dword [ebp - 0x350]
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x54], 0
jne 0x428deb
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x300]
call fcn.00401cb7
mov ecx, dword [eax]
mov dword [ebp - 0x30c], ecx
push 0x56a314
lea edx, [ebp - 0x30c]
push edx
call fcn.0049a0a0
xor eax, eax
jne 0x428d8f
xor eax, eax
jne 0x428cf4
call fcn.004517a0
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
call fcn.00451460
movzx eax, byte [0x58097c]
test eax, eax
jne 0x428e99
push 0xf8
call fcn.00450f30
add esp, 4
mov dword [ebp - 0x2e8], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x2e8], 0
je 0x428e73
push 0x58097c
sub esp, 8
movsd xmm0, qword [0x546520]
movsd qword [esp], xmm0
push 0x543312
push 0
push 0
push 0x129
push 0x545b84
push 0x48
mov ecx, dword [ebp - 0x2e8]
call fcn.00451480
mov dword [ebp - 0x350], eax
jmp 0x428e7d
mov dword [ebp - 0x350], 0
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x2f4], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2f4]
mov dword [0x580980], ecx
mov ecx, dword [ebp - 0x60]
call fcn.00451470
mov ecx, dword [0x580980]
add ecx, 0xd8
call fcn.00451460
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.00401127
push eax
lea ecx, [ebp - 0x2dc]
call fcn.00401438
mov dword [ebp - 0x350], eax
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x354], eax
mov byte [ebp - 4], 6
mov esi, esp
mov ecx, dword [ebp - 0x354]
mov edx, dword [ecx]
push edx
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, esp
call fcn.0049a060
push eax
push str.__u__Open_SCM_manager___s_...
mov eax, dword [0x580980]
mov ecx, dword [eax]
mov edx, dword [0x580980]
push edx
mov eax, dword [ecx + 0x48]
call eax
add esp, 0x10
cmp esi, esp
call fcn.0049a060
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2dc]
call fcn.004020a9
mov eax, dword [0x580980]
mov edx, dword [eax]
mov esi, esp
mov ecx, dword [0x580980]
mov eax, dword [edx + 0x3c]
call eax
cmp esi, esp
call fcn.0049a060
mov ecx, dword [0x580980]
add ecx, 0xd8
call fcn.00451470
xor eax, eax
jne 0x428df7
mov esi, esp
push 0xf003f
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.00401127
push eax
call fcn.00401604
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp esi, esp
call fcn.0049a060
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040151e
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x6c]
call fcn.00401686
test eax, eax
je 0x428faf
mov dword [ebp - 0x350], 1
jmp 0x428fb9
mov dword [ebp - 0x350], 0
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x78], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0049a060
push eax
call fcn.004014d8
add esp, 4
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x78], 0
je 0x428ffb
mov eax, str.hSCM
test eax, eax
je 0x428ffb
mov dword [ebp - 0x350], 1
jmp 0x429005
mov dword [ebp - 0x350], 0
mov ecx, dword [ebp - 0x350]
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x90], 0
jne 0x429045
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.00401cb7
mov ecx, dword [eax]
mov dword [ebp - 0x2d0], ecx
push 0x56a314
lea edx, [ebp - 0x2d0]
push edx
call fcn.0049a0a0
xor eax, eax
jne 0x428fe0
xor eax, eax
jne 0x428f97
cmp dword [ebp + 0x18], 1
je 0x42908d
cmp dword [ebp + 0x1c], 0
je 0x429069
mov dword [ebp - 0x350], 0x10
jmp 0x429073
mov dword [ebp - 0x350], 0x20
mov eax, dword [ebp - 0x350]
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x20], 0
je 0x42908d
mov eax, dword [ebp + 0x18]
or eax, 0x100
mov dword [ebp + 0x18], eax
call fcn.004517a0
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
call fcn.00451460
movzx eax, byte [0x580984]
test eax, eax
jne 0x429135
push 0xf8
call fcn.00450f30
add esp, 4
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x2ac], 0
je 0x42910f
push 0x580984
sub esp, 8
movsd xmm0, qword [0x546520]
movsd qword [esp], xmm0
push 0x543312
push 0
push 0
push 0x136
push 0x545b84
push 0x48
mov ecx, dword [ebp - 0x2ac]
call fcn.00451480
mov dword [ebp - 0x350], eax
jmp 0x429119
mov dword [ebp - 0x350], 0
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x2b8], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2b8]
mov dword [0x580988], ecx
mov ecx, dword [ebp - 0x9c]
call fcn.00451470
mov ecx, dword [0x580988]
add ecx, 0xd8
call fcn.00451460
mov ecx, dword [ebp - 0x18]
call fcn.00401127
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00401438
mov dword [ebp - 0x350], eax
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x354], eax
mov byte [ebp - 4], 9
mov esi, esp
mov ecx, dword [ebp - 0x354]
mov edx, dword [ecx]
push edx
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, esp
call fcn.0049a060
push eax
push str.__u__Create_service___s_...
mov eax, dword [0x580988]
mov ecx, dword [eax]
mov edx, dword [0x580988]
push edx
mov eax, dword [ecx + 0x48]
call eax
add esp, 0x10
cmp esi, esp
call fcn.0049a060
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2a0]
call fcn.004020a9
mov eax, dword [0x580988]
mov edx, dword [eax]
mov esi, esp
mov ecx, dword [0x580988]
mov eax, dword [edx + 0x3c]
call eax
cmp esi, esp
call fcn.0049a060
mov ecx, dword [0x580988]
add ecx, 0xd8
call fcn.00451470
xor eax, eax
jne 0x42908d
cmp dword [ebp + 0x10], 0
je 0x42920d
mov dword [ebp - 0x350], 2
jmp 0x429217
mov dword [ebp - 0x350], 0
cmp dword [ebp + 0xc], 0
je 0x429228
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x354], eax
jmp 0x429236
mov ecx, dword [ebp - 0x18]
call fcn.00401127
mov dword [ebp - 0x354], eax
mov esi, esp
mov ecx, dword [ebp + 0x34]
push ecx
mov edx, dword [ebp + 0x30]
push edx
mov eax, dword [ebp + 0x28]
push eax
push 0
mov ecx, dword [ebp + 0x2c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00401127
push eax
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x350]
push edx
mov eax, dword [ebp - 0x354]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00401127
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401686
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp esi, esp
call fcn.0049a060
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040151e
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa8]
call fcn.00401686
test eax, eax
je 0x4292b7
mov dword [ebp - 0x350], 1
jmp 0x4292c1
mov dword [ebp - 0x350], 0
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0xb4], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0049a060
push eax
call fcn.004014d8
add esp, 4
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xb4], 0
je 0x429309
mov eax, str.hService
test eax, eax
je 0x429309
mov dword [ebp - 0x350], 1
jmp 0x429313
mov dword [ebp - 0x350], 0
mov ecx, dword [ebp - 0x350]
mov dword [ebp - 0xcc], ecx
cmp dword [ebp - 0xcc], 0
jne 0x429353
mov eax, dword [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x288]
call fcn.00401cb7
mov ecx, dword [eax]
mov dword [ebp - 0x294], ecx
push 0x56a314
lea edx, [ebp - 0x294]
push edx
call fcn.0049a0a0
xor eax, eax
jne 0x4292eb
xor eax, eax
jne 0x42929c
call fcn.004517a0
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
call fcn.00451460
movzx eax, byte [0x58098c]
test eax, eax
jne 0x429407
push 0xf8
call fcn.00450f30
add esp, 4
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x270], 0
je 0x4293e1
push 0x58098c
sub esp, 8
movsd xmm0, qword [0x546520]
movsd qword [esp], xmm0
push 0x543312
push 0
push 0
push 0x145
push 0x545b84
push 0x50
mov ecx, dword [ebp - 0x270]
call fcn.00451480
mov dword [ebp - 0x350], eax
jmp 0x4293eb
mov dword [ebp - 0x350], 0
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x27c]
mov dword [0x580990], ecx
mov ecx, dword [ebp - 0xd8]
call fcn.00451470
mov ecx, dword [0x580990]
add ecx, 0xd8
call fcn.00451460
cmp dword [ebp + 0xc], 0
je 0x429434
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x350], eax
jmp 0x429442
mov ecx, dword [ebp - 0x18]
call fcn.00401127
mov dword [ebp - 0x350], eax
mov ecx, dword [ebp - 0x350]
push ecx
lea ecx, [ebp - 0x264]
call fcn.00401438
mov dword [ebp - 0x354], eax
mov edx, dword [ebp - 0x354]
mov dword [ebp - 0x358], edx
mov byte [ebp - 4], 0xc
mov esi, esp
mov eax, dword [ebp - 0x358]
mov ecx, dword [eax]
push ecx
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, esp
call fcn.0049a060
push eax
push str.__u__Create_service___s__:_OK
mov edx, dword [0x580990]
mov eax, dword [edx]
mov ecx, dword [0x580990]
push ecx
mov edx, dword [eax + 0x48]
call edx
add esp, 0x10
cmp esi, esp
call fcn.0049a060
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x264]
call fcn.004020a9
mov eax, dword [0x580990]
mov edx, dword [eax]
mov esi, esp
mov ecx, dword [0x580990]
mov eax, dword [edx + 0x3c]
call eax
cmp esi, esp
call fcn.0049a060
mov ecx, dword [0x580990]
add ecx, 0xd8
call fcn.00451470
xor eax, eax
jne 0x42935f
cmp dword [ebp + 0x10], 0
je 0x429748
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xe4], eax
call fcn.004517a0
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
call fcn.00451460
movzx eax, byte [0x580994]
test eax, eax
jne 0x4295a6
push 0xf8
call fcn.00450f30
add esp, 4
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x24c], 0
je 0x429580
push 0x580994
sub esp, 8
movsd xmm0, qword [0x546520]
movsd qword [esp], xmm0
push 0x543312
push 0
push 0
push 0x14a
push 0x545b84
push 0x48
mov ecx, dword [ebp - 0x24c]
call fcn.00451480
mov dword [ebp - 0x350], eax
jmp 0x42958a
mov dword [ebp - 0x350], 0
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x258]
mov dword [0x580998], ecx
mov ecx, dword [ebp - 0xf0]
call fcn.00451470
mov ecx, dword [0x580998]
add ecx, 0xd8
call fcn.00451460
mov ecx, dword [ebp - 0x18]
call fcn.00401127
push eax
lea ecx, [ebp - 0x240]
call fcn.00401438
mov dword [ebp - 0x350], eax
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x354], eax
mov byte [ebp - 4], 0xe
mov esi, esp
mov ecx, dword [ebp - 0x354]
mov edx, dword [ecx]
push edx
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, esp
call fcn.0049a060
push eax
push str.__u__Change_service_config___s_...
mov eax, dword [0x580998]
mov ecx, dword [eax]
mov edx, dword [0x580998]
push edx
mov eax, dword [ecx + 0x48]
call eax
add esp, 0x10
cmp esi, esp
call fcn.0049a060
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x240]
call fcn.004020a9
mov eax, dword [0x580998]
mov edx, dword [eax]
mov esi, esp
mov ecx, dword [0x580998]
mov eax, dword [edx + 0x3c]
call eax
cmp esi, esp
call fcn.0049a060
mov ecx, dword [0x580998]
add ecx, 0xd8
call fcn.00451470
xor eax, eax
jne 0x4294fe
mov esi, esp
lea eax, [ebp - 0xe4]
push eax
push 1
lea ecx, [ebp - 0xa8]
call fcn.00401686
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp esi, esp
call fcn.0049a060
test eax, eax
je 0x4296a0
mov dword [ebp - 0x350], 1
jmp 0x4296aa
mov dword [ebp - 0x350], 0
mov ecx, dword [ebp - 0x350]
mov dword [ebp - 0xfc], ecx
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0049a060
push eax
call fcn.004014d8
add esp, 4
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0xfc], 0
je 0x4296f2
mov eax, str.::ChangeServiceConfig2W_hService__1__sd_
test eax, eax
je 0x4296f2
mov dword [ebp - 0x350], 1
jmp 0x4296fc
mov dword [ebp - 0x350], 0
mov ecx, dword [ebp - 0x350]
mov dword [ebp - 0x114], ecx
cmp dword [ebp - 0x114], 0
jne 0x42973c
mov eax, dword [ebp - 0x108]
push eax
lea ecx, [ebp - 0x228]
call fcn.00401cb7
mov ecx, dword [eax]
mov dword [ebp - 0x234], ecx
push 0x56a314
lea edx, [ebp - 0x234]
push edx
call fcn.0049a0a0
xor eax, eax
jne 0x4296d4
xor eax, eax
jne 0x42966c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa8]
call fcn.00401bcc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.00401bcc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401fcd
wait
jmp 0x42991e
mov dword [ebp - 4], 0xffffffff
jmp 0x429936
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x42996c]
call fcn.0049a000
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x358
cmp ebp, esp
call fcn.0049a060
mov esp, ebp
pop ebp
ret 0x30