Function at 0x411de5
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
sub esp, 0x478
lea ebp, [esp - 4]
mov eax, dword [0x449e30]
xor eax, ebp
mov dword [ebp + 0x478], eax
push 0x4c
mov eax, 0x433d09
call fcn.004217ef
mov ebx, ecx
xor esi, esi
push esi
push str.CServiceModule::RegisterServer
lea ecx, [ebp]
call fcn.004107dc
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0040f806
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040ea31
cmp dword [ebx + 0xa4], esi
je 0x4120b4
call fcn.0040ac93
push 0x2000000
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 3
cmp eax, esi
jne 0x411e76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004014af
pop ecx
mov dword [ebp - 0x58], 0x10
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x50], 5
xor eax, eax
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [ebx + 0x88]
push 7
pop ecx
lea esi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov word [ebp + 0x270], di
push 0x206
push edi
lea eax, [ebp + 0x272]
push eax
call fcn.00421170
add esp, 0xc
call fcn.00408c40
test eax, eax
je 0x411ef6
cmp dword [ebx + 0x48], 8
jb 0x411ed4
mov eax, dword [ebx + 0x34]
jmp 0x411ed7
lea eax, [ebx + 0x34]
push 0x80
push eax
push str.__ls___d
lea eax, [ebp + 0x270]
push eax
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
call esi
add esp, 0x10
jmp 0x411f10
push dword [ebx + 0x7c]
push 0x43988c
lea eax, [ebp + 0x270]
push eax
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
call esi
add esp, 0xc
cmp dword [ebx + 0x48], 8
jb 0x411f1b
mov ecx, dword [ebx + 0x34]
jmp 0x411f1e
lea ecx, [ebx + 0x34]
cmp dword [ebx + 0x64], 8
jb 0x411f29
mov eax, dword [ebx + 0x50]
jmp 0x411f2c
lea eax, [ebx + 0x50]
push edi
push edi
push 0x43987c
push edi
push str.BiometricGroup
push ecx
push 1
push 2
push dword [ebx + 0x88]
push 0xf01ff
lea ecx, [ebp + 0x270]
push ecx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 4
test edi, edi
jne 0x411f74
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004014af
pop ecx
and word [ebp + 0x68], 0
push 0x206
push 0
lea eax, [ebp + 0x6a]
push eax
call fcn.00421170
add esp, 0xc
call fcn.00408c40
test eax, eax
je 0x411fb9
cmp dword [ebx + 0x48], 8
jb 0x411fa0
mov eax, dword [ebx + 0x34]
jmp 0x411fa3
lea eax, [ebx + 0x34]
push 0x81
push eax
push str.__ls___d
lea eax, [ebp + 0x68]
push eax
call esi
add esp, 0x10
jmp 0x411fca
push dword [ebx + 0x78]
push 0x43988c
lea eax, [ebp + 0x68]
push eax
call esi
add esp, 0xc
and dword [ebp - 0x28], 0
lea eax, [ebp + 0x68]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
call esi
call fcn.00408c40
test eax, eax
je 0x41201f
push str.Add_Per_Service_SID_and_Privilagies.
push 0
lea eax, [ebp]
push eax
call fcn.00410918
add esp, 0xc
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x30]
push eax
push 5
push edi
call esi
mov dword [ebp - 0x2c], str.SeChangeNotifyPrivilege
lea eax, [ebp - 0x2c]
push eax
push 6
push edi
call esi
xor edi, edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 5
mov esi, 0x2001f
push esi
push str.SYSTEMCurrentControlSetControlSafeBootNetwork
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
call fcn.00401169
test eax, eax
jne 0x41208e
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 6
cmp dword [ebx + 0x64], 8
jb 0x412056
mov eax, dword [ebx + 0x50]
jmp 0x412059
lea eax, [ebx + 0x50]
push edi
push edi
push esi
push edi
push edi
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.0040111b
test eax, eax
jne 0x412082
push 1
push str.Service
push 0x4376cc
lea ecx, [ebp - 0x1c]
call fcn.00407b9a
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.00401104
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00401104
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.004012d5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004012d5
xor esi, esi
push esi
push esi
mov ecx, ebx
call fcn.00411515
push eax
call fcn.0040149e
pop ecx
push esi
lea eax, [ebx + 0x68]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040d39c
mov byte [ebp - 4], 7
cmp dword [ebx + 0x64], 8
jb 0x4120e0
mov ebx, dword [ebx + 0x50]
jmp 0x4120e3
add ebx, 0x50
push 1
push ebx
push str.LocalService
lea ecx, [ebp - 0x20]
call fcn.00407b9a
push eax
call fcn.004014cf
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.0040ae12
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0040ae12
mov dword [ebp - 4], esi
push dword [ebp - 0x18]
push 0x4376ce
lea ecx, [ebp]
call fcn.00410b8f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00410891
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x478]
xor ecx, ebp
call fcn.004217ad
add ebp, 0x47c
leave
ret