Function at 0x4123b0
Capabilities:
Delete registry key
Delete service
Query or enumerate registry key
Query or enumerate registry value
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e082
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x55d184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004cbbe0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004cbbe0
push 0x525e00
lea eax, [ebp - 0x420]
push 0x526068
push eax
call fcn.0040c370
add esp, 0x24
lea ecx, [ebp - 0x86c]
call fcn.0042b345
lea ecx, [ebp - 0x86c]
mov dword [ebp - 4], 0
call fcn.0042b379
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x874]
push eax
je 0x41247c
push 0xf013f
push 0
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x4124fc
push eax
lea eax, [ebp - 0x870]
push eax
push 0
push 0xf013f
jmp 0x4124a2
push 0xf003f
push 0
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x4124fc
push eax
lea eax, [ebp - 0x870]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x874]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4124f4
lea eax, [ebp - 0x878]
mov dword [ebp - 0x878], 0x104
push eax
lea eax, [ebp - 0x830]
push eax
push 0
push 0
push str.249cc
push dword [ebp - 0x870]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x870]
call esi
push dword [ebp - 0x874]
call esi
lea ecx, [ebp - 0x86c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042b358
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x870], esi
test esi, esi
je 0x41257d
push 0x10020
lea eax, [ebp - 0x830]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x878], eax
test eax, eax
jne 0x41254f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41257d
lea ecx, [ebp - 0x864]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, dword [ebp - 0x878]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x870]
call esi
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004cbbe0
push 0x525e00
lea eax, [ebp - 0x420]
push str._sService
push eax
call fcn.0040c370
add esp, 0x18
lea ecx, [ebp - 0x86c]
call fcn.0042b345
lea ecx, [ebp - 0x86c]
mov dword [ebp - 4], 1
call fcn.0042b379
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
lea eax, [ebp - 0x870]
push eax
je 0x4125de
push 0xf013f
jmp 0x4125e3
push 0xf003f
push 0
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x412611
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x870]
call esi
push dword [ebp - 0x870]
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
lea ecx, [ebp - 0x86c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042b358
lea eax, [ebp - 0x87c]
mov dword [ebp - 0x87c], 0
push eax
push 9
push 0
push str.SYSTEMCurrentControlSet_services_
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x41264f
xor eax, eax
jmp 0x412ab4
xor esi, esi
xor eax, eax
xor edi, edi
mov dword [ebp - 0x870], esi
mov dword [ebp - 0x888], esi
mov dword [ebp - 0x884], edi
mov dword [ebp - 0x874], eax
mov dword [ebp - 0x880], eax
push 0x525840
lea ecx, [ebp - 0x860]
mov dword [ebp - 4], 2
call fcn.0040ba50
push 0x1e8
lea eax, [ebp - 0x608]
mov byte [ebp - 4], 3
push edi
push eax
call fcn.004cbbe0
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004cbbe0
movups xmm0, xmmword [0x525e00]
lea eax, [ebp - 0x628]
push eax
movups xmmword [ebp - 0x628], xmm0
movups xmm0, xmmword [0x525e10]
movups xmmword [ebp - 0x618], xmm0
call fcn.004dba84
add esp, 0x1c
mov dword [ebp - 0x878], edi
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
push dword [ebp - 0x87c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4128cf
xor eax, eax
mov dword [ebp - 0x838], 0
lea esi, [ebp - 0x218]
mov dword [ebp - 0x834], 7
mov edx, 0xa
mov word [ebp - 0x848], ax
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x412730
sub esi, ecx
sar esi, 1
cmp esi, 7
ja 0x41276f
mov dword [ebp - 0x838], esi
lea eax, [ebp - 0x218]
add esi, esi
push esi
push eax
lea eax, [ebp - 0x848]
push eax
call fcn.004cb5f0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x848], ax
jmp 0x4127e0
cmp esi, 0x7ffffffe
ja 0x412ad4
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x41278e
mov eax, SysReAllocString
jmp 0x412794
cmp eax, 0xa
cmovb eax, edx
mov dword [ebp - 0x870], eax
lea ecx, [ebp - 0x848]
inc eax
push eax
call fcn.0040ae10
mov edi, eax
mov dword [ebp - 0x838], esi
mov eax, dword [ebp - 0x870]
add esi, esi
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x218]
push esi
push eax
push edi
call fcn.004cb070
add esp, 0xc
mov dword [ebp - 0x848], edi
xor eax, eax
mov word [esi + edi], ax
mov edi, dword [ebp - 0x884]
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push eax
call fcn.004dba84
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004cbe7c
add esp, 0xc
test eax, eax
je 0x41284b
lea eax, [ebp - 0x848]
push eax
push edi
cmp dword [ebp - 0x874], edi
je 0x412834
lea eax, [ebp - 0x888]
push eax
call fcn.00412330
add esp, 0xc
add edi, 0x18
mov dword [ebp - 0x884], edi
jmp 0x41284b
lea ecx, [ebp - 0x888]
call fcn.00412110
mov eax, dword [ebp - 0x880]
mov dword [ebp - 0x874], eax
mov edx, dword [ebp - 0x834]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x41288f
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412885
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412acf
push edx
push ecx
call fcn.0049bb5c
add esp, 8
mov eax, dword [ebp - 0x878]
lea ecx, [ebp - 0x218]
push 0x104
inc eax
push ecx
push eax
push dword [ebp - 0x87c]
mov dword [ebp - 0x878], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, dword [ebp - 0x884]
test eax, eax
je 0x412704
mov esi, dword [ebp - 0x888]
mov dword [ebp - 0x870], esi
push dword [ebp - 0x87c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x412a11
nop dword [eax]
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x838], 0
push 0x28
lea ecx, [ebp - 0x848]
mov dword [ebp - 0x834], 7
mov word [ebp - 0x848], ax
call fcn.0040ae10
push 0x44
mov edi, eax
mov dword [ebp - 0x838], 0x22
push str.SYSTEMCurrentControlSet_services_
push edi
mov dword [ebp - 0x834], 0x27
call fcn.004cb070
xor eax, eax
add esp, 0xc
mov word [edi + 0x44], ax
mov dword [ebp - 0x848], edi
cmp dword [esi + 0x14], 8
mov edx, esi
mov byte [ebp - 4], 5
jb 0x41295a
mov edx, dword [esi]
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412960
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x848]
call fcn.0040b840
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edx, dword [ebp - 0x834]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x412a00
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4129f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412acf
push edx
push ecx
call fcn.0049bb5c
add esp, 8
mov edi, dword [ebp - 0x884]
add esi, 0x18
cmp esi, edi
jne 0x4128f0
mov edx, dword [ebp - 0x84c]
cmp edx, 8
jb 0x412a51
mov ecx, dword [ebp - 0x860]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412a47
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412acf
push edx
push ecx
call fcn.0049bb5c
add esp, 8
mov esi, dword [ebp - 0x870]
test esi, esi
je 0x412aaf
lea eax, [ebp - 0x888]
push eax
push edi
push esi
call fcn.0040efc0
mov ecx, dword [ebp - 0x874]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0xc
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x412aa5
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412ad9
push ecx
push esi
call fcn.0049bb5c
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049be04
mov esp, ebp
pop ebp
ret
call fcn.004cf6b9
call fcn.004072f0
call fcn.004cf6b9
int3