Function at 0x416500
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.00434930
push ebx
push 0x7f6
lea eax, [esp + 0x60]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41654e
cmp dword [esp + 0x1860], ebx
jne 0x4168de
mov ecx, dword [str.WinVNC]
push 0x30
push ecx
push str.Unable_to_install_WinVNC_service
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ebx
add esp, 0x1858
ret
lea eax, [esp + 0x5c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x416555
sub eax, edx
add eax, 0xc
cmp eax, 0x800
jae 0x4168de
push esi
push edi
push 0x449f14
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x86c]
push str.__s___s
push eax
call fcn.004324fb
mov eax, dword [0x457c84]
add esp, 0x10
sub eax, 1
je 0x416798
sub eax, 1
jne 0x4168dc
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebx
jne 0x4165e7
cmp dword [esp + 0x1868], ebx
jne 0x4168dc
mov ecx, dword [str.WinVNC]
push 0x30
push ecx
push str.The_Service_Control_Manager_could_not_be_contacted___the_WinVNC_service_was_not_registered
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1858
ret
push ebx
push ebx
push 0x44938c
push ebx
push ebx
lea edx, [esp + 0x878]
push edx
push 1
push 2
push 0x110
push 0xf01ff
push str.VNC_Server
push str.winvnc
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
cmp esi, ebx
jne 0x416680
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x1868], ebx
jne 0x41666d
cmp eax, 0x431
push 0x30
jne 0x41665a
mov eax, dword [str.WinVNC]
push eax
push str.The_WinVNC_service_is_already_registered
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1858
ret
mov ecx, dword [str.WinVNC]
push ecx
push str.The_WinVNC_service_could_not_be_registered
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1858
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
lea edx, [esp + 0xc]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4166cb
cmp dword [esp + 0x1868], ebx
jne 0x4168dc
mov eax, dword [str.WinVNC]
push 0x30
push eax
push str.WARNING:Unable_to_install_the_ServiceHelper_hook_nGlobal_user_specific_registry_settings_will_not_be_loaded
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x416776
lea eax, [esp + 0x64]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4166d2
sub eax, edx
add eax, 0x12
cmp eax, 0x800
jae 0x4168dc
push 0x449f20
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x106c]
push str.__s___s
push edx
call fcn.004324fb
lea eax, [esp + 0x1074]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x416714
mov ecx, dword [str.WinVNC]
sub eax, edx
mov edx, dword [esp + 0xc]
add eax, 1
push eax
lea eax, [esp + 0x1068]
push eax
push 1
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov esi, dword [esp + 0x1868]
je 0x416763
cmp esi, ebx
jne 0x416763
mov eax, dword [str.WinVNC]
push 0x30
push eax
push str.WARNING:Unable_to_install_the_ServiceHelper_hook_nGlobal_user_specific_registry_settings_will_not_be_loaded
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x4168dc
mov edx, dword [str.WinVNC]
push 0x40
push edx
push str.The_WinVNC_service_was_successfully_registered_nThe_service_may_be_started_from_the_Control_Panel__and_will_nautomatically_be_run_the_next_time_this_machine_is_reset
call fcn.00425600
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1858
ret
lea eax, [esp + 0xc]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4167df
cmp dword [esp + 0x1868], ebx
jne 0x4168dc
mov ecx, dword [str.WinVNC]
push 0x30
push ecx
push str.The_SCM_could_not_be_contacted___the_WinVNC_service_was_not_installed
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1858
ret
lea eax, [esp + 0x864]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4167f0
mov ecx, dword [esp + 0xc]
sub eax, edx
add eax, 1
push eax
mov eax, dword [str.WinVNC]
lea edx, [esp + 0x868]
push edx
push 1
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x416857
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x1868], ebx
jne 0x4168dc
mov eax, dword [str.WinVNC]
push 0x30
push eax
push str.The_WinVNC_service_could_not_be_registered
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1858
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x1868]
cmp esi, ebx
jne 0x416883
mov edx, dword [str.WinVNC]
push 0x40
push edx
push str.The_WinVNC_service_was_successfully_installed_nThe_service_will_start_now_and_will_automatically_nbe_run_the_next_time_this_machine_is_reset
call fcn.00425600
add esp, 0xc
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea edx, [esp + 0x884]
push edx
push ebx
mov dword [esp + 0x38], 0x44
mov word [esp + 0x6a], bx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4168dc
cmp esi, ebx
jne 0x4168dc
mov eax, dword [str.WinVNC]
push 0x10
push eax
push str.The_WinVNC_service_failed_to_start
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1858
ret