Function at 0x1000a340
Capabilities:
Check if file exists
Create service
Delete registry value
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10027bb2
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x10031210]
xor eax, esp
mov dword [esp + 0x634], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10031210]
xor eax, esp
push eax
lea eax, [esp + 0x64c]
mov dword fs:[0], eax
mov edi, 0x208
push edi
xor ebp, ebp
lea eax, [esp + 0x23c]
push ebp
push eax
mov esi, ecx
call fcn.10015cf0
push esi
push 0x1002bdf0
push str._s_s
mov ecx, 0x104
lea ebx, [esp + 0x250]
call fcn.10009340
push edi
lea ecx, [esp + 0x45c]
push ebp
push ecx
call fcn.10015cf0
push esi
push 0x1002be28
push str._s_s
mov ecx, 0x104
lea ebx, [esp + 0x470]
call fcn.10009340
push edi
lea edx, [esp + 0x64]
push ebp
push edx
call fcn.10015cf0
add esp, 0x3c
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x23c]
push ecx
push 0x80000002
mov dword [esp + 0x30], 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1000a4da
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebp
push str.ImagePath
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ebx, [ebp + 1]
test eax, eax
je 0x1000a524
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.10009b30
push ebx
push 0x1002d268
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x660], ebp
call fcn.10007d30
push 9
push str.ImagePath
lea edx, [esp + 0x1c]
push edx
call fcn.10007d30
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
push str.SOFTWARE360Safe_softmgrDisableSVC3
push 0x80000002
mov dword [esp + 0x34], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1000a4e4
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x654], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000a4da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
jmp 0x1000a814
mov ecx, dword [esp + 0x14]
push ecx
push str.SOFTWARE360Safe_softmgrDisableSVC3
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov dword [esp + 0x654], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000a524
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
lea ecx, [esp + 0x34]
lea edx, [esp + 0x1c]
call fcn.1000adb0
add esp, 4
mov dword [esp + 0x654], ebx
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], ebx
jle 0x1000a557
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.10009930
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebp
test eax, eax
jne 0x1000a618
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 4], ebx
jle 0x1000a583
mov eax, dword [ecx - 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.10009930
mov ecx, dword [esp + 0x18]
lea edi, [esp + 0x14]
call fcn.1000a8e0
mov byte [esp + 0x654], 2
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], ebx
jle 0x1000a5ad
mov edx, dword [eax - 0xc]
push edx
mov eax, edi
push eax
call fcn.10009930
mov eax, dword [esp + 0x14]
push eax
call ebp
or edx, 0xffffffff
mov byte [esp + 0x654], bl
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x1000a5ff
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a5db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x654], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x1000a4ce
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a618
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 4], ebx
jle 0x1000a633
mov ecx, dword [ecx - 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.10009930
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x30]
call fcn.1000adb0
add esp, 4
lea edi, [esp + 0x18]
mov byte [esp + 0x654], 3
call fcn.100073c0
mov byte [esp + 0x654], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a679
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.10009b30
mov ebp, 0x208
push ebp
lea edx, [esp + 0x34]
push 0
mov byte [esp + 0x65c], 4
push edx
mov dword [esp + 0x28], ebp
call fcn.10015cf0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push str.DisplayName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000a6d8
lea edx, [esp + 0x30]
lea edi, [esp + 0x28]
call fcn.10009af0
mov edx, dword [0x100786a8]
mov eax, dword [edx + 0xc]
mov ecx, 0x100786a8
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push ebp
lea ecx, [esp + 0x34]
push 0
mov byte [esp + 0x65c], 5
push ecx
mov dword [esp + 0x28], ebp
call fcn.10015cf0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x1002d26c
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000a741
lea edx, [esp + 0x30]
lea edi, [esp + 0x14]
call fcn.10009af0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xe00f003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
je 0x1000a79c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x65c]
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push 0
push edi
push ecx
push ebx
push 3
push edx
push 0xf01ff
push eax
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x1000a799
push eax
call esi
push ebp
call esi
lea eax, [edi - 0x10]
mov byte [esp + 0x654], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a7c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x654], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a7e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x654], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a812
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x64c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x634]
xor ecx, esp
call fcn.10014002
add esp, 0x644
ret