Function at 0x422e85
Capabilities:
Create service
Modify service
Persist via run registry key
Persist via windows service

Disassembly:
mov eax, 0x43e7f0
call fcn.004036d1
sub esp, 0x11c
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
push 0x104
lea eax, [ebp - 0x127]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x128], 0x22
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [ebp - 0x128]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x422ecc
mov esi, 0x4230c8
movsw word es:[edi], word [esi]
call fcn.004044c3
cmp eax, 4
jne 0x422f45
mov ecx, dword [ebp - 0x18]
call fcn.004221d8
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push 0x41d50c
push 0x80000002
lea ecx, [ebp + 8]
call fcn.00420669
test eax, eax
jne 0x422f31
push 1
lea eax, [ebp - 0x128]
push eax
push 0x41d504
lea ecx, [ebp + 8]
call fcn.00420706
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x422f34
mov esi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00420652
jmp 0x42306e
cmp dword [ebp + 8], ebx
je 0x423064
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x423074
mov eax, dword [ebp - 0x18]
push ebx
push ebx
mov edi, 0x4230c0
push edi
push ebx
push ebx
lea edx, [ebp - 0x128]
push edx
push 1
push 2
mov esi, 0x110
push esi
push 0xf01ff
lea ecx, [eax + 0x50]
push ecx
add eax, 0x150
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x422fe7
mov eax, dword [ebp - 0x18]
push 2
add eax, 0x150
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x423059
mov eax, dword [ebp - 0x18]
add eax, 0x50
push eax
push ebx
push ebx
push edi
push ebx
push ebx
lea eax, [ebp - 0x128]
push eax
xor edi, edi
inc edi
push edi
push 2
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
jmp 0x422fea
xor edi, edi
inc edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
push 0xfa3
add ecx, 0x30
call fcn.0040b0e4
test eax, eax
jne 0x423040
push 0x41d558
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x423040
push 0x4230a8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x423039
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
push edi
push dword [ebp + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp + 8]
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42306b
mov dword [ebp - 0x14], 1
mov esi, dword [ebp - 0x14]
cmp esi, ebx
jne 0x423088
jmp 0x423077
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push ebx
push 0xc0001000
push dword [ebp + 0xc]
call fcn.00421373
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.004037c0
leave
ret 8