Function at 0x40d5a0
Capabilities:
Contain obfuscated stackstrings
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x5473d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x84], esi
call fcn.0040df80
push 5
mov ecx, esi
call fcn.0040e130
mov ecx, esi
call fcn.0040e4c0
push 0xa
mov ecx, esi
call fcn.0040e130
mov ecx, esi
call fcn.0040f710
push 0xf
mov ecx, esi
call fcn.0040e130
lea ecx, [ebp - 0x8c]
call fcn.00418e90
mov dword [ebp - 4], 0
mov edi, dword [eax]
mov dword [ebp - 0x50], 0x650072
mov dword [ebp - 0x4c], 0x6f006d
mov dword [ebp - 0x48], 0x650076
mov dword [ebp - 0x44], 0x730020
mov dword [ebp - 0x40], 0x6f0068
mov dword [ebp - 0x3c], 0x740072
mov dword [ebp - 0x38], 0x630020
mov dword [ebp - 0x34], 0x740075
mov dword [ebp - 0x30], 0x260020
mov dword [ebp - 0x2c], 0x730020
mov dword [ebp - 0x28], 0x610074
mov dword [ebp - 0x24], 0x740072
mov dword [ebp - 0x20], 0x6d0020
mov dword [ebp - 0x1c], 0x6e0065
mov dword [ebp - 0x18], 0x75
call fcn.00405dc0
push eax
push 0x1d
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x80]
call fcn.00404e60
sub esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x124]
call fcn.0040b430
mov byte [ebp - 4], 2
mov eax, 0x531ef4
mov esi, dword [ebp - 0x80]
test esi, esi
cmovne eax, esi
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00409e50
mov eax, dword [edi]
lea ecx, [ebp - 0x124]
add esp, 8
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x128], eax
lea ecx, [ebp - 0x120]
call fcn.0040c1d0
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x128], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0xd4], vtable.std::ios_base.0
lea eax, [ebp - 0xd4]
push eax
call fcn.0041c00c
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
add esp, 4
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d769
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 4
mov edi, dword [ebp - 0x88]
test edi, edi
je 0x40d799
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40d799
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x40d799
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
xorps xmm0, xmm0
mov dword [ebp - 4], 0xffffffff
movups xmmword [ebp - 0x7c], xmm0
call fcn.00405dc0
mov ecx, eax
test ecx, ecx
je 0x40df4a
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 5
call fcn.004199b0
call fcn.00419c40
lea ecx, [ebp - 0x8c]
call fcn.00418e90
mov byte [ebp - 4], 6
mov edi, dword [eax]
xor eax, eax
mov dword [ebp - 0x58], 0x650072
mov dword [ebp - 0x54], 0x6f006d
mov dword [ebp - 0x50], 0x650076
mov dword [ebp - 0x4c], 0x730020
mov dword [ebp - 0x48], 0x6f0068
mov dword [ebp - 0x44], 0x740072
mov dword [ebp - 0x40], 0x630020
mov dword [ebp - 0x3c], 0x740075
mov dword [ebp - 0x38], 0x260020
mov dword [ebp - 0x34], 0x730020
mov dword [ebp - 0x30], 0x610074
mov dword [ebp - 0x2c], 0x740072
mov dword [ebp - 0x28], 0x6d0020
mov dword [ebp - 0x24], 0x6e0065
mov dword [ebp - 0x20], 0x2c0075
mov dword [ebp - 0x1c], 0x650020
mov dword [ebp - 0x18], 0x64006e
mov word [ebp - 0x14], ax
call fcn.00405dc0
push eax
push 0x22
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x80]
call fcn.00404e60
sub esp, 8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x124]
call fcn.0040b430
mov byte [ebp - 4], 8
mov eax, 0x531ef4
mov esi, dword [ebp - 0x80]
test esi, esi
cmovne eax, esi
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00409e50
mov eax, dword [edi]
lea ecx, [ebp - 0x124]
add esp, 8
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x128], eax
lea ecx, [ebp - 0x120]
call fcn.0040c1d0
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x128], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd4], vtable.std::ios_base.0
push eax
call fcn.0041c00c
lea edx, [esi - 0x10]
mov byte [ebp - 4], 6
or esi, 0xffffffff
add esp, 4
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d94b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x88]
test edi, edi
je 0x40d978
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40d978
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x40d978
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0x84]
push 0x1e
mov byte [ebp - 4], 5
call fcn.0040e130
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x6c], xmm0
call fcn.00405dc0
mov ecx, eax
test ecx, ecx
je 0x40df54
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], eax
call fcn.00405dc0
mov ecx, eax
test ecx, ecx
je 0x40df5e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x60], eax
call fcn.00405dc0
mov ecx, eax
test ecx, ecx
je 0x40df68
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xb
call fcn.00418e90
mov byte [ebp - 4], 0xc
mov edi, dword [eax]
xor eax, eax
mov dword [ebp - 0x50], 0x700075
mov dword [ebp - 0x4c], 0x610064
mov dword [ebp - 0x48], 0x650074
mov dword [ebp - 0x44], 0x750020
mov dword [ebp - 0x40], 0x69006e
mov dword [ebp - 0x3c], 0x73006e
mov dword [ebp - 0x38], 0x610074
mov dword [ebp - 0x34], 0x6c006c
mov dword [ebp - 0x30], 0x730020
mov dword [ebp - 0x2c], 0x66006f
mov dword [ebp - 0x28], 0x770074
mov dword [ebp - 0x24], 0x720061
mov dword [ebp - 0x20], 0x200065
mov dword [ebp - 0x1c], 0x6e0069
mov dword [ebp - 0x18], 0x6f0066
mov word [ebp - 0x14], ax
call fcn.00405dc0
push eax
push 0x1e
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x80]
call fcn.00404e60
sub esp, 8
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x124]
call fcn.0040b430
mov byte [ebp - 4], 0xe
mov eax, 0x531ef4
mov esi, dword [ebp - 0x80]
test esi, esi
cmovne eax, esi
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00409e50
mov eax, dword [edi]
lea ecx, [ebp - 0x124]
add esp, 8
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x128], eax
lea ecx, [ebp - 0x120]
call fcn.0040c1d0
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x128], eax
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 0xf
push eax
mov dword [ebp - 0xd4], vtable.std::ios_base.0
call fcn.0041c00c
add esp, 4
mov byte [ebp - 4], 0xc
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40db5f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
mov edi, dword [ebp - 0x88]
test edi, edi
je 0x40db8c
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40db8c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x40db8c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0xb
call fcn.0041a200
mov ecx, dword [ebp - 0x84]
push 0x23
call fcn.0040e130
lea ecx, [ebp - 0x8c]
call fcn.00418e90
mov byte [ebp - 4], 0x11
mov edi, dword [eax]
mov dword [ebp - 0x48], 0x650064
mov dword [ebp - 0x44], 0x65006c
mov dword [ebp - 0x40], 0x650074
mov dword [ebp - 0x3c], 0x750020
mov dword [ebp - 0x38], 0x69006e
mov dword [ebp - 0x34], 0x73006e
mov dword [ebp - 0x30], 0x610074
mov dword [ebp - 0x2c], 0x6c006c
mov dword [ebp - 0x28], 0x720020
mov dword [ebp - 0x24], 0x670065
mov dword [ebp - 0x20], 0x690020
mov dword [ebp - 0x1c], 0x650074
mov dword [ebp - 0x18], 0x6d
call fcn.00405dc0
push eax
push 0x19
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x80]
call fcn.00404e60
sub esp, 8
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x124]
call fcn.0040b430
mov byte [ebp - 4], 0x13
mov eax, 0x531ef4
mov esi, dword [ebp - 0x80]
test esi, esi
cmovne eax, esi
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00409e50
mov eax, dword [edi]
lea ecx, [ebp - 0x124]
add esp, 8
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x128], eax
lea ecx, [ebp - 0x120]
call fcn.0040c1d0
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x128], eax
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 0x14
push eax
mov dword [ebp - 0xd4], vtable.std::ios_base.0
call fcn.0041c00c
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0x11
or esi, 0xffffffff
add esp, 4
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dcf7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov edi, dword [ebp - 0x88]
test edi, edi
je 0x40dd24
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40dd24
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x40dd24
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0xb
call fcn.00419ef0
mov ecx, dword [ebp - 0x84]
push 0x28
call fcn.0040e130
mov dword [ebp - 0x2c], 0x6e0041
mov dword [ebp - 0x28], 0x740079
mov dword [ebp - 0x24], 0x690068
mov dword [ebp - 0x20], 0x67006e
mov dword [ebp - 0x1c], 0x760053
mov dword [ebp - 0x18], 0x63
call fcn.00405dc0
push eax
push 0xb
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
call fcn.00404e60
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, dword [ebp - 0x80]
mov esi, eax
test esi, esi
je 0x40dddf
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x40ddae
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call eax
jmp 0x40dddf
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0
push ecx
xorps xmm0, xmm0
push 1
push eax
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
push dword [ebp - 0x80]
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or esi, 0xffffffff
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40ddf9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x2c], 0x6e0041
mov dword [ebp - 0x28], 0x740079
mov dword [ebp - 0x24], 0x690068
mov dword [ebp - 0x20], 0x67006e
mov dword [ebp - 0x1c], 0x760053
mov dword [ebp - 0x18], 0x63
call fcn.00405dc0
push eax
push 0xb
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
call fcn.00404e60
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40de7d
push 0xf01ff
push dword [ebp - 0x80]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x40de6a
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40de7d
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
mov edx, dword [ebp - 0x80]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40de9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x84]
mov ecx, edi
call fcn.0040faf0
mov ecx, edi
call fcn.004104e0
push 0x53
mov ecx, edi
call fcn.0040e130
mov ecx, edi
call fcn.0040e310
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dedc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x60]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40def6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40df10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x7c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40df2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.00499723
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405ba0
push 0x80004005
call fcn.00405ba0
push 0x80004005
call fcn.00405ba0
push 0x80004005
call fcn.00405ba0
int3