Function at 0x415d43
Capabilities:
Create service
Delete service
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
xor esi, esi
cmp dword [0x4d8000], esi
push edi
mov dword [ebp - 0x40], ecx
jne 0x415df7
lea eax, [ebp - 4]
push eax
push 0x4d8000
mov edi, 0x4bea98
push edi
push 0x4c0000
mov dword [ebp - 4], esi
call fcn.0043ef59
lea eax, [ebp - 4]
push eax
push 0x4d8004
push edi
push 0x4bfff0
call fcn.0043ef59
lea eax, [ebp - 4]
push eax
push 0x4d8008
push edi
push 0x4bffd8
call fcn.0043ef59
lea eax, [ebp - 4]
push eax
push 0x4d800c
push edi
push 0x4bffc8
call fcn.0043ef59
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4d8010
push edi
push 0x4bffb8
call fcn.0043ef59
lea eax, [ebp - 4]
push eax
push 0x4d8014
push edi
push 0x4bffa4
call fcn.0043ef59
add esp, 0x20
cmp dword [0x4d8000], esi
jne 0x415df7
mov eax, 0x80004001
jmp 0x41641f
push ebx
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push 9
pop ecx
push 0xf003f
xor ebx, ebx
xor eax, eax
push esi
lea edi, [ebp - 0x6c]
inc ebx
rep stosd dword es:[edi], eax
push esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
xor edi, edi
call dword [0x4d8000]
cmp eax, esi
mov dword [ebp - 0x20], eax
je 0x416248
or dword [ebp - 4], 0xffffffff
push 2
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
pop edi
jmp 0x415fac
push 7
lea eax, [ebp + 8]
push eax
push 0x4bff9c
call fcn.00445f31
add esp, 0xc
test al, al
je 0x415e6f
mov dword [ebp - 0x14], ebx
jmp 0x415fac
push 7
lea eax, [ebp + 8]
push eax
push 0x4bff94
call fcn.00445f31
add esp, 0xc
test al, al
je 0x415e8e
mov dword [ebp - 0x1c], ebx
jmp 0x415fac
push 5
lea eax, [ebp + 8]
push eax
push 0x4bff8c
call fcn.00445f31
add esp, 0xc
test al, al
je 0x415ead
mov dword [ebp - 0x24], ebx
jmp 0x415fac
push 5
lea eax, [ebp + 8]
push eax
push 0x4bff84
call fcn.00445f31
add esp, 0xc
test al, al
je 0x415ecc
mov dword [ebp - 4], edi
jmp 0x415fac
push 5
lea eax, [ebp + 8]
push eax
push 0x4bff7c
call fcn.00445f31
add esp, 0xc
test al, al
je 0x415eeb
mov dword [ebp - 4], esi
jmp 0x415fac
push 7
lea eax, [ebp + 8]
push eax
push 0x4bff74
call fcn.00445f31
add esp, 0xc
test al, al
je 0x415f0e
mov dword [ebp - 4], 3
jmp 0x415fac
push 9
lea eax, [ebp + 8]
push eax
push 0x4bff68
call fcn.00445f31
add esp, 0xc
test al, al
je 0x415f2e
mov dword [ebp - 4], 4
jmp 0x415fac
push 0xd
lea eax, [ebp + 8]
push eax
push 0x4bff58
call fcn.00445f31
add esp, 0xc
test al, al
je 0x415f4d
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], ebx
jmp 0x415fac
push 6
lea eax, [ebp + 8]
push eax
push 0x4bff50
call fcn.00445f31
add esp, 0xc
test al, al
je 0x415f69
mov dword [ebp - 0xc], edi
jmp 0x415fac
push 5
lea eax, [ebp + 8]
push eax
push 0x4bff48
call fcn.00445f31
add esp, 0xc
test al, al
je 0x415f85
mov dword [ebp - 0xc], ebx
jmp 0x415fac
push 6
lea eax, [ebp + 8]
push eax
push 0x4bff40
call fcn.00445f31
add esp, 0xc
test al, al
je 0x415fa2
or dword [ebp - 0xc], 0xffffffff
jmp 0x415fac
lea eax, [ebp + 8]
push eax
call fcn.00408ddd
pop ecx
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x2d
je 0x415e50
mov ax, word [ecx]
cmp ax, 0x3f
jne 0x415fec
add ecx, edi
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ecx
mov dword [ebp - 0x28], ecx
call fcn.00405615
mov eax, dword [ebp + 8]
cmp word [eax], si
pop ecx
je 0x415fe2
mov word [eax], si
add dword [ebp + 8], edi
lea ecx, [ebp + 8]
call fcn.0040f369
jmp 0x415ffa
cmp ax, 0x21
jne 0x415ffa
add ecx, edi
mov dword [ebp + 8], ecx
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0x14], esi
je 0x4161cd
lea ecx, [ebp - 0xc]
call fcn.00443f5b
lea ecx, [ebp - 4]
call fcn.00443f5b
lea ecx, [ebp - 0x10]
call fcn.00443f5b
lea ecx, [ebp - 0x14]
call fcn.00443f5b
lea ecx, [ebp - 8]
call fcn.00443f5b
lea ecx, [ebp - 0x34]
call fcn.00443f5b
lea ecx, [ebp - 0x38]
call fcn.00443f5b
push esi
push 0x2c
pop edi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x24], 3
mov dword [ebp - 0x3c], ebx
call fcn.00438e04
push esi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00438e04
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00446fd5
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00446fd5
push edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00446fd5
add esp, 0x44
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00438e04
push esi
push edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00438e04
push esi
push edi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00438e04
push esi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00438e04
add esp, 0x40
push esi
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00438e04
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00446fd5
add esp, 0x1c
test eax, eax
lea ebx, [ebp - 0x44]
jne 0x416108
mov ebx, esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 8]
call fcn.00443fa0
mov ecx, dword [ebp - 8]
lea eax, [edi + edi]
mov word [eax + ecx + 2], si
mov ecx, dword [ebp - 8]
mov word [eax + ecx], si
mov eax, dword [ebp - 0x34]
cmp word [eax], si
mov edi, eax
jne 0x41613d
xor edi, edi
mov eax, dword [ebp - 4]
cmp word [eax], si
jne 0x416150
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.0044cddc
mov eax, dword [ebp - 8]
jmp 0x416163
cmp word [eax], 0x2f
jne 0x416161
mov word [eax], si
mov eax, dword [ebp + 8]
inc eax
inc eax
mov dword [ebp + 8], eax
cmp word [eax], si
jne 0x416155
push dword [ebp - 0x38]
push edi
push dword [ebp - 8]
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0x3c]
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push 0xf01ff
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.DLL_CreateServiceW]
lea ecx, [ebp - 0x38]
mov edi, eax
call fcn.0043db4f
lea ecx, [ebp - 0x34]
call fcn.0043db4f
lea ecx, [ebp - 8]
call fcn.0043db4f
lea ecx, [ebp - 0x14]
call fcn.0043db4f
lea ecx, [ebp - 0x10]
call fcn.0043db4f
lea ecx, [ebp - 4]
call fcn.0043db4f
lea ecx, [ebp - 0xc]
jmp 0x416243
cmp dword [ebp - 0x1c], esi
je 0x416285
cmp dword [ebp - 0xc], esi
jl 0x416206
push 0x4bff30
lea ecx, [ebp - 0x10]
call fcn.0044cd74
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00443fc7
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x40]
call fcn.00415d43
lea ecx, [ebp - 0x10]
call fcn.0043db4f
lea ecx, [ebp - 0x18]
call fcn.00443f5b
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
cmp dword [ebp - 0xc], esi
jl 0x41621f
push 0x20
pop eax
jmp 0x416221
xor eax, eax
or eax, 0x10000
push eax
push dword [ebp + 8]
push dword [ebp - 0x20]
call dword [0x4d8004]
mov edi, eax
cmp edi, esi
je 0x416240
push edi
call dword [sym.imp.ADVAPI32.DLL_DeleteService]
lea ecx, [ebp - 0x18]
call fcn.0043db4f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
cmp edi, esi
pop ebx
je 0x41625d
push edi
call dword [0x4d8014]
cmp dword [ebp - 0x20], esi
je 0x41626b
push dword [ebp - 0x20]
call dword [0x4d8014]
cmp dword [ebp - 0x28], esi
je 0x41641c
cmp dword [ebp - 0x2c], esi
jne 0x4163ed
push dword [ebp - 8]
jmp 0x4163f5
lea ecx, [ebp + 8]
call fcn.0040f369
push dword [ebp + 8]
call fcn.00412ae5
mov dword [ebp + 8], eax
xor eax, eax
cmp dword [ebp - 0x28], esi
pop ecx
setne al
cmp eax, esi
mov dword [ebp - 0x2c], eax
je 0x4162ad
push 4
pop eax
jmp 0x4162bb
cmp dword [ebp - 4], esi
jl 0x4162b6
mov eax, edi
jmp 0x4162b8
xor eax, eax
or eax, 0x34
push eax
push dword [ebp + 8]
push dword [ebp - 0x20]
call dword [0x4d8004]
mov edi, eax
cmp edi, esi
je 0x416248
cmp dword [ebp - 0x28], esi
je 0x41633d
lea eax, [ebp - 0x48]
push eax
push 0x24
lea eax, [ebp - 0x6c]
push eax
push esi
push edi
call dword [0x4d8008]
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp ebx, esi
mov dword [ebp - 8], eax
jne 0x416308
cmp eax, esi
je 0x4163b3
mov dword [ebp - 0x30], eax
jmp 0x4163b3
push dword [ebp - 0x4c]
lea eax, [ebp - 0x218]
push dword [ebp - 0x50]
mov dword [ebp - 0x30], esi
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push 0x4bfec0
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0x2c
jmp 0x4163b3
cmp dword [ebp - 4], esi
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
jl 0x4163d5
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.DLL_ChangeServiceConfigW]
test eax, eax
jne 0x416370
call ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.DLL_ChangeServiceConfig2W]
cmp dword [ebp - 0x10], esi
je 0x416390
cmp eax, esi
jne 0x416390
cmp dword [ebp - 8], esi
jne 0x416390
call ebx
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 1
je 0x4163db
cmp dword [ebp - 0xc], 2
jne 0x4163b3
push esi
push esi
push edi
call dword [0x4d8010]
cmp eax, esi
jne 0x4163b3
cmp dword [ebp - 8], esi
jne 0x4163b3
call ebx
mov dword [ebp - 8], eax
cmp dword [ebp - 0x24], esi
je 0x416251
cmp dword [ebp - 0x2c], esi
jne 0x416251
push dword [ebp - 0xc]
push edi
call fcn.00415d01
pop ecx
pop ecx
jmp 0x416251
cmp dword [ebp - 0xc], 1
jne 0x41639c
lea eax, [ebp - 0x88]
push eax
push 1
push edi
call dword [0x4d800c]
jmp 0x4163a5
cmp dword [ebp - 0x30], esi
je 0x41640a
push dword [ebp - 0x30]
lea eax, [ebp - 0x218]
push 0x4bd214
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x28]
call fcn.00443666
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4