Function at 0x41763c
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.004c4d96
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, eax
mov esi, 0x532e90
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
push 1
mov eax, 0x532ca4
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 1
mov eax, 0x532c00
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00407cbc
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4176f5
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x417705
push ebx
call fcn.004c4d90
add esp, 4
mov dword [ebp - 0x38], esp
push 0xf003f
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x41773d
push 0x46
push 0x407b949
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4177f3
push 0
mov ebx, 0xa8c
call sub.KERNEL32.dll_GetLastError
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x168
call fcn.004c8c40
add esp, 0x10
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
push str.OpenSCManager
mov ecx, 2
call fcn.00402647
add esp, 8
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4177a6
push ebx
call fcn.004c4d90
add esp, 4
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
push 1
lea eax, [ebp - 0x3c]
push eax
push 1
mov eax, 0x532dd8
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
call fcn.00407cbc
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4177db
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4177eb
push ebx
call fcn.004c4d90
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x4182c3
cmp dword [ebp + 0x14], 0
jne 0x417809
mov dword [ebp + 0x14], 2
jmp 0x417861
cmp dword [ebp + 0x14], 1
jne 0x41781f
mov dword [ebp + 0x14], 0
jmp 0x417861
cmp dword [ebp + 0x14], 2
jne 0x417835
mov dword [ebp + 0x14], 3
jmp 0x417861
cmp dword [ebp + 0x14], 3
jne 0x41784b
mov dword [ebp + 0x14], 4
jmp 0x417861
cmp dword [ebp + 0x14], 4
jne 0x417861
mov dword [ebp + 0x14], 1
jmp 0x417861
mov dword [ebp - 0x38], esp
push 0xf01ff
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x417897
push 0x371
push 0x407b949
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x417912
mov dword [ebp - 0x38], esp
push 0
push 0
push 0
push 0
push 0
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 1
push dword [ebp + 0x14]
push 0x10
push 0xf01ff
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x41790a
push 0x40b
push 0x407b949
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x417912
cmp dword [ebp - 0xc], 0
jne 0x4179cf
mov dword [ebp - 0x38], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x417945
push 0x580
push 0x407b949
push 6
call fcn.004c4d9c
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.004c8c40
add esp, 0x10
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
push str.CreateService
mov ecx, 2
call fcn.00402647
add esp, 8
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x41798a
push ebx
call fcn.004c4d90
add esp, 4
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
push 1
lea eax, [ebp - 0x44]
push eax
push 1
mov eax, 0x532dd8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00407cbc
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x4179bf
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4179cf
push ebx
call fcn.004c4d90
add esp, 4
mov dword [ebp - 0x38], esp
push dword [ebp - 4]
xor eax, eax
call dword [0x61a2c0]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x4179fb
push 0x5ab
push 0x407b949
push 6
call fcn.004c4d9c
add esp, 0xc
push str.WOW64
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.SYSTEMCurrentControlSetServices_
mov ecx, 3
call fcn.00402647
add esp, 0xc
mov dword [ebp - 0x38], eax
push getsockname
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x417a2d
mov eax, 0x4ee2e4
push eax
push 0x80000301
push 0
push 4
push 2
mov ebx, 0x6a8
call fcn.004cc220
add esp, 0x1c
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x417a5c
push ebx
call fcn.004c4d90
add esp, 4
mov dword [ebp - 0x38], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x417a85
push 0x669
push 0x407b949
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], esp
push dword [ebp - 0x3c]
xor eax, eax
call dword [0x61a2c4]
nop
nop
cmp dword [ebp - 0x40], esp
je 0x417ab4
push 0x669
push 0x407b949
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.004c9690
add esp, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x417aec
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
call fcn.00408958
push 0x80000401
push edx
push eax
push 1
mov ebx, 0x198
call fcn.004cbae0
add esp, 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
push 0x619dd0
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x18]
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x417b43
push ebx
call fcn.004c4d90
add esp, 4
push getsockname
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x417b56
mov eax, 0x4ee2e4
push eax
push 1
mov ebx, 0x154
call fcn.004c86a0
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x417b7c
push ebx
call fcn.004c4d90
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x417b90
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
shl eax, 2
add ebx, eax
mov dword [ebp - 0x38], ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00418308
mov ebx, dword [ebp - 0x38]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
shl eax, 2
add ebx, eax
mov dword [ebp - 0x38], ebx
lea eax, [ebp - 0x18]
push eax
call fcn.00418308
mov ebx, dword [ebp - 0x38]
mov dword [ebx], eax
mov dword [ebp - 0x38], esp
push dword [ebp - 0x18]
push 0
push 1
push 0
xor eax, eax
call dword [0x61a22c]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x417c1b
push 0x82f
push 0x407b949
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x417ce0
mov dword [ebp - 0x38], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x417c51
push 0x8f1
push 0x407b949
push 6
call fcn.004c4d9c
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.004c8c40
add esp, 0x10
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
push str.CreateEvent
mov ecx, 2
call fcn.00402647
add esp, 8
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x417c96
push ebx
call fcn.004c4d90
add esp, 4
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
push 1
lea eax, [ebp - 0x44]
push eax
push 1
mov eax, 0x532dd8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00407cbc
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x417ccb
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x417cdb
push ebx
call fcn.004c4d90
add esp, 4
jmp 0x417d0c
mov dword [ebp - 0x38], esp
push dword [ebp - 0x20]
xor eax, eax
call dword [0x61a294]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x417d0c
push 0x908
push 0x407b949
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x38], esp
lea eax, [ebp - 0x24]
push eax
push 0x100
push dword [ebp - 0x14]
push 2
push dword [ebp - 0x10]
xor eax, eax
call dword [0x61a2c8]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x417d49
push 0x937
push 0x407b949
push 6
call fcn.004c4d9c
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call fcn.0041832c
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esp
push dword [ebp - 0x38]
push 2
push dword [ebp - 0xc]
xor eax, eax
call dword [0x61a2cc]
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x417d89
push 0x9a8
push 0x407b949
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x417e3f
push 0
mov ebx, 0xa8c
call sub.KERNEL32.dll_GetLastError
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x168
call fcn.004c8c40
add esp, 0x10
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
push str.StartService
mov ecx, 2
call fcn.00402647
add esp, 8
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x417df2
push ebx
call fcn.004c4d90
add esp, 4
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
push 1
lea eax, [ebp - 0x3c]
push eax
push 1
mov eax, 0x532dd8
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
call fcn.00407cbc
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x417e27
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x417e37
push ebx
call fcn.004c4d90
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x4182c3
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x1bc
call fcn.004c92a0
add esp, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x417e74
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0x2c], eax
call fcn.00408958
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
fild qword [ebp - 0x44]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fadd qword [0x5323d0]
fstp qword [ebp - 0x4c]
fld qword [ebp - 0x4c]
call fcn.00402744
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
call fcn.00408958
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
xor ecx, ecx
cmp dword [ebp - 0x40], edx
jg 0x417ec3
jl 0x417ec2
cmp dword [ebp - 0x44], eax
jae 0x417ec3
inc ecx
mov eax, ecx
test eax, eax
je 0x418240
mov dword [ebp - 0x38], esp
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x417eda
add eax, 8
push eax
push dword [ebp - 0xc]
xor eax, eax
call dword [0x61a2d0]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x417f04
push 0xb8e
push 0x407b949
push 6
call fcn.004c4d9c
add esp, 0xc
test eax, eax
je 0x418177
push 0x80000301
push 0
push 5
push 0x80000301
push 0
push 3
push getsockname
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x417f37
mov eax, 0x532144
push eax
push 3
mov ebx, 0x19c
call fcn.004c93d0
add esp, 0x28
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
cmp ecx, 0x80000101
jne 0x417f6b
and eax, 0xff
jmp 0x417f91
cmp ecx, 0x80000201
jne 0x417f76
cwde
jmp 0x417f91
mov dword [ebp - 0x48], eax
cmp ecx, 0x80000301
je 0x417f94
cmp ecx, 0x80000401
jne 0x417f99
mov dword [ebp - 0x44], edx
fild qword [ebp - 0x48]
jmp 0x417fc5
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
jmp 0x417fc5
cmp ecx, 0x80000501
jne 0x417fa6
fld dword [ebp - 0x48]
jmp 0x417fc5
cmp ecx, 0x80000601
je 0x417fce
push 0xbe0
push 0x407b949
push 2
call fcn.004c4d9c
add esp, 0xc
fstp qword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
fld qword [ebp - 0x48]
fsub qword [0x4ee33c]
ftst
fnstsw ax
test ah, 1
je 0x417fe8
fchs
fcomp qword [0x5323d8]
fnstsw ax
test ah, 0x41
mov eax, 0
setne al
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, 0x80000004
je 0x418015
cmp ecx, 0x80000005
jne 0x418025
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x418025
push ebx
call fcn.004c4d90
add esp, 4
cmp dword [ebp - 0x4c], 0
je 0x418177
push 0x80000301
push 0
push 0xd
push 0x80000301
push 0
push 3
push getsockname
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x41805a
mov eax, 0x532144
push eax
push 3
mov ebx, 0x19c
call fcn.004c93d0
add esp, 0x28
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
cmp ecx, 0x80000101
jne 0x41808e
and eax, 0xff
jmp 0x4180e3
cmp ecx, 0x80000201
jne 0x418099
cwde
jmp 0x4180e3
cmp ecx, 0x80000301
je 0x4180e3
cmp ecx, 0x80000401
je 0x4180e3
mov dword [ebp - 0x48], eax
cmp ecx, 0x80000501
je 0x4180d3
cmp ecx, 0x80000601
je 0x4180d8
push 0xc2c
push 0x407b949
push 2
call fcn.004c4d9c
add esp, 0xc
fld dword [ebp - 0x48]
jmp 0x4180de
mov dword [ebp - 0x44], edx
fld qword [ebp - 0x48]
call fcn.00402744
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x168
call fcn.004c8c40
add esp, 0x10
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
push str.QueryServiceStatus:
mov ecx, 2
call fcn.00402647
add esp, 8
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x41812d
push ebx
call fcn.004c4d90
add esp, 4
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
push 1
lea eax, [ebp - 0x3c]
push eax
push 1
mov eax, 0x532dd8
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
call fcn.00407cbc
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x418162
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x418172
push ebx
call fcn.004c4d90
add esp, 4
jmp 0x418240
cmp dword [ebp - 0x20], 0
jne 0x4181a4
push 0x80000301
push 0
push 0xa
push 1
mov ebx, 0x67c
call fcn.004cb140
add esp, 0x10
jmp 0x41823b
mov dword [ebp - 0x38], esp
push 0x64
push dword [ebp - 0x20]
xor eax, eax
call dword [0x61a284]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x4181d5
push 0xe41
push 0x407b949
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x41823b
mov dword [ebp - 8], 0xa2c2a
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
push 1
mov eax, 0x532e6c
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 1
mov eax, 0x532dd8
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00407cbc
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x418226
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x418236
push ebx
call fcn.004c4d90
add esp, 4
jmp 0x418240
jmp 0x417ea3
cmp dword [ebp - 0x20], 0
je 0x418276
mov dword [ebp - 0x38], esp
push dword [ebp - 0x20]
xor eax, eax
call dword [0x61a274]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x418276
push 0xf71
push 0x407b949
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x38], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0x61a2c0]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x4182a2
push 0xfce
push 0x407b949
push 6
call fcn.004c4d9c
add esp, 0xc
cmp dword [ebp - 8], 0xa2c2a
jne 0x4182b9
mov eax, 0
jmp 0x4182c3
mov eax, 0xfffffffe
jmp 0x4182c3
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4182d4
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4182e4
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x418300
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x1c