Function at 0x421510
Capabilities:
Create process on windows
Create service
Persist via run registry key
Persist via windows service
Set registry value

Disassembly:
mov eax, 0x1858
call fcn.00423560
push ebx
push ebp
push esi
push edi
mov edi, 0x426fa8
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x7fe
sub eax, ecx
lea ecx, [esp + 0x68]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x421567
push 0x30
push 0x42b3d8
push 0x42cf74
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1858
ret
mov edi, 0x426fa8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x68]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 4]
cmp eax, 0x800
jae 0x421844
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x68]
push 0x426fa8
push ecx
lea edx, [esp + 0x870]
push str.__s___s
push edx
call ebx
mov eax, dword [0x42da7c]
add esp, 0x10
dec eax
je 0x421739
dec eax
jne 0x421844
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, ebp
jne 0x4215fb
push 0x30
push 0x42b3d8
push 0x42cf3c
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1858
ret
mov edi, dword [esp + 0x186c]
xor eax, eax
push ebp
cmp edi, ebp
push ebp
push 0x42d1a8
setne al
push ebp
lea ecx, [esp + 0x878]
push ebp
add eax, 2
push ecx
push 1
push eax
push 0x110
push 0xf01ff
push str.WiseNetbladeIf
push str.WiseNetbladeIf
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
cmp edi, ebp
je 0x42164d
push edi
call esi
lea edx, [esp + 0x10]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x42167e
push 0x30
push 0x42b3d8
push 0x42ceec
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x421718
mov edi, str._servicehelper
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x68]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 4]
cmp eax, 0x800
jae 0x421844
lea ecx, [esp + 0x68]
push str._servicehelper
push ecx
lea edx, [esp + 0x1070]
push str.__s___s
push edx
call ebx
add esp, 0x10
call sub.MFC42.DLL_AfxGetModuleState
mov edx, dword [eax + 0x10]
lea edi, [esp + 0x1068]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x1068]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push ebp
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42170d
push 0x30
push 0x42b3d8
push 0x42ceec
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40
push 0x42b3d8
push 0x42ce5c
call fcn.00422080
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1858
ret
lea eax, [esp + 0x10]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x421772
push 0x30
push 0x42b3d8
push 0x42cf3c
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1858
ret
call sub.MFC42.DLL_AfxGetModuleState
mov edx, dword [eax + 0x10]
lea edi, [esp + 0x868]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x86c]
push ecx
push 1
push ebp
push edx
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4217d1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x30
push 0x42b3d8
push 0x42ce40
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1858
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40
push 0x42b3d8
push 0x42cddc
call fcn.00422080
add esp, 0xc
lea edx, [esp + 0x58]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x868]
push edx
push eax
push ebp
push ebp
push 0x20
push ebp
push ebp
push ebp
push ecx
push ebp
mov dword [esp + 0x3c], 0x44
mov word [esp + 0x6e], bp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x421844
push 0x10
push 0x42b3d8
push 0x42cdc0
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1858
ret