Function at 0x4038c0
Capabilities:
Create process on windows
Delete file
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x425aa7
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x4321e0]
xor eax, esp
mov dword [esp + 0x294], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4321e0]
xor eax, esp
push eax
lea eax, [esp + 0x2ac]
mov dword fs:[0], eax
mov eax, dword [0x433174]
mov edi, 0x42bccc
shr edi, 0x10
mov dword [esp + 0x18], eax
test di, di
jne 0x40392a
mov ecx, 0x42bccc
movzx ecx, cx
lea edx, [esp + 0x18]
call fcn.00401f90
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x40396c
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x42bccc
call ebp
mov esi, eax
test esi, esi
je 0x40396c
mov ecx, esi
lea edx, [esp + 0x18]
call fcn.00402150
test eax, eax
je 0x40396c
mov edx, dword [esp + 0x18]
lea eax, [esi + esi]
push eax
push 0x42bccc
add eax, 2
push eax
push edx
call fcn.00417bf9
push eax
call fcn.00401e70
add esp, 0x14
mov dword [esp + 0x2b4], 0
mov eax, dword [0x433174]
mov dword [esp + 0x14], eax
test di, di
jne 0x403998
mov ecx, 0x42bccc
movzx ecx, cx
lea edx, [esp + 0x14]
call fcn.00401f90
jmp 0x4039d4
push 0x42bccc
call ebp
mov esi, eax
test esi, esi
je 0x4039d4
mov ecx, esi
lea edx, [esp + 0x14]
call fcn.00402150
test eax, eax
je 0x4039d4
mov edx, dword [esp + 0x14]
lea eax, [esi + esi]
push eax
push 0x42bccc
add eax, 2
push eax
push edx
call fcn.00417bf9
push eax
call fcn.00401e70
add esp, 0x14
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xaa]
mov byte [esp + 0x2bc], 1
push ecx
mov word [esp + 0xac], ax
call fcn.0041a210
add esp, 0xc
push 0x104
lea edx, [esp + 0xa4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x403ae3
lea eax, [esp + 0xa0]
push eax
mov ecx, eax
push ecx
call ebp
mov ebx, eax
lea esi, [esp + 0x1c]
call fcn.004021f0
mov edi, esi
call fcn.00402270
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_CharLowerW]
push str.service
mov eax, esi
push eax
call fcn.004065a0
lea ecx, [esp + 0xa0]
push ecx
mov edx, ecx
push edx
call ebp
mov ebx, eax
lea esi, [esp + 0x18]
call fcn.004021f0
mov esi, dword [esp + 0x14]
push 0x5c
push esi
call fcn.004182f9
add esp, 8
test eax, eax
je 0x403b0c
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x403b0c
lea ecx, [eax + 1]
lea eax, [esp + 0x1c]
push eax
lea ebx, [esp + 0x18]
call fcn.00406470
mov edi, eax
mov eax, ebx
mov byte [esp + 0x2b4], 2
call fcn.00406520
mov byte [esp + 0x2b4], 1
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x433164
je 0x403ae3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403ae3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00417bee
add esp, 4
mov edx, dword [0x433174]
mov eax, str.cmd.exe
shr eax, 0x10
mov dword [esp + 0x1c], edx
test eax, eax
jne 0x403b4b
mov ecx, str.cmd.exe
movzx ecx, cx
lea edx, [esp + 0x1c]
call fcn.00401f90
jmp 0x403b87
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [esi - 0xc]
cmp edx, 0x433164
je 0x403b30
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x403b30
push esi
call fcn.00417bee
add esp, 4
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x433164
je 0x403dcc
lea esi, [eax - 0xc]
jmp 0x403dbc
push str.cmd.exe
call ebp
mov esi, eax
test esi, esi
je 0x403b87
mov ecx, esi
lea edx, [esp + 0x1c]
call fcn.00402150
test eax, eax
je 0x403b87
mov edx, dword [esp + 0x1c]
lea eax, [esi + esi]
push eax
push str.cmd.exe
add eax, 2
push eax
push edx
call fcn.00417bf9
push eax
call fcn.00401e70
add esp, 0x14
mov ecx, str._c_sc_stop_D01259F5_68D1_434a_B0F7_ADE98CBB2A5C
mov byte [esp + 0x2b4], 3
mov eax, dword [0x433174]
shr ecx, 0x10
mov dword [esp + 0x20], eax
test ecx, ecx
jne 0x403bb7
mov edx, str._c_sc_stop_D01259F5_68D1_434a_B0F7_ADE98CBB2A5C
movzx ecx, dx
lea edx, [esp + 0x20]
call fcn.00401f90
jmp 0x403bf3
push str._c_sc_stop_D01259F5_68D1_434a_B0F7_ADE98CBB2A5C
call ebp
mov esi, eax
test esi, esi
je 0x403bf3
mov ecx, esi
lea edx, [esp + 0x20]
call fcn.00402150
test eax, eax
je 0x403bf3
lea eax, [esi + esi]
push eax
add eax, 2
push str._c_sc_stop_D01259F5_68D1_434a_B0F7_ADE98CBB2A5C
push eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.00417bf9
push eax
call fcn.00401e70
add esp, 0x14
push 0x3c
lea ecx, [esp + 0x2c]
push 0
push ecx
mov byte [esp + 0x2c0], 4
call fcn.0041a210
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [esp + 0x44], edx
add esp, 0xc
lea edx, [esp + 0x28]
mov ebp, 0x40
push edx
mov dword [esp + 0x2c], 0x3c
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 0
mov dword [esp + 0x30], ebp
call edi
test eax, eax
je 0x403c62
mov eax, dword [esp + 0x60]
test eax, eax
je 0x403c62
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str._c_sc_delete_D01259F5_68D1_434a_B0F7_ADE98CBB2A5C
push str._c_sc_delete_D01259F5_68D1_434a_B0F7_ADE98CBB2A5C
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea esi, [esp + 0x24]
call fcn.004021f0
push 0x3c
xor esi, esi
lea eax, [esp + 0x68]
push esi
push eax
call fcn.0041a210
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
add esp, 0xc
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x68], 0x3c
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], esi
mov dword [esp + 0x6c], ebp
call edi
test eax, eax
je 0x403cdf
mov eax, dword [esp + 0x9c]
cmp eax, esi
je 0x403cdf
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403cf0
mov ecx, dword [esp + 0x18]
push ecx
call ebp
test eax, eax
jne 0x403d08
push 0x3e8
call edi
inc esi
cmp esi, 0xa
jl 0x403cf0
lea edx, [esp + 0x24]
push edx
push 0xf003f
push 0
push str.SYSTEMControlSet001_services_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403d43
mov eax, dword [esp + 0x24]
push str.D01259F5_68D1_434a_B0F7_ADE98CBB2A5C
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [ebx - 0xc]
cmp edx, 0x433164
je 0x403d67
lea esi, [ebx - 0xc]
push esi
call edi
test eax, eax
jg 0x403d67
push esi
call fcn.00417bee
add esp, 4
mov esi, dword [esp + 0x1c]
lea eax, [esi - 0xc]
cmp eax, 0x433164
je 0x403d88
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x403d88
push esi
call fcn.00417bee
add esp, 4
mov esi, dword [esp + 0x14]
lea ecx, [esi - 0xc]
cmp ecx, 0x433164
je 0x403daa
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x403daa
push esi
call fcn.00417bee
add esp, 4
mov esi, dword [esp + 0x18]
lea edx, [esi - 0xc]
cmp edx, 0x433164
je 0x403dcc
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x403dcc
push esi
call fcn.00417bee
add esp, 4
mov ecx, dword [esp + 0x2ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.004178c7
add esp, 0x2a4
ret