Function at 0x436c70
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.0044a8b0
push ebx
push esi
push edi
mov edi, 0x4584c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x7fe
sub eax, ecx
lea ecx, [esp + 0x64]
push eax
xor ebx, ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x436cd4
cmp dword [esp + 0x1868], ebx
jne 0x43705d
mov edx, dword [str.WinVNC]
push 0x30
push edx
push 0x480250
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1858
ret
mov edi, 0x4584c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x64]
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 0x43705d
lea ecx, [esp + 0x64]
push 0x4584c0
push ecx
lea edx, [esp + 0x86c]
push str.__s___s
push edx
call fcn.0044a04f
mov eax, dword [0x480160]
add esp, 0x10
dec eax
je 0x436f28
dec eax
jne 0x43705d
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebx
jne 0x436d72
cmp dword [esp + 0x1868], ebx
jne 0x43705d
mov eax, dword [str.WinVNC]
push 0x30
push eax
push 0x481118
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 0x46f3a0
push ebx
lea ecx, [esp + 0x874]
push ebx
push ecx
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 0x436e0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x1868], ebx
jne 0x436df8
cmp eax, 0x431
push 0x30
jne 0x436de6
mov edx, dword [str.WinVNC]
push edx
push 0x480e90
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 eax, dword [str.WinVNC]
push eax
push 0x4809b0
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 ecx, [esp + 0xc]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x436e57
cmp dword [esp + 0x1868], ebx
jne 0x43705d
mov edx, dword [str.WinVNC]
push 0x30
push edx
push 0x4804a0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x436f06
mov edi, 0x4584cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x64]
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 0x43705d
lea ecx, [esp + 0x64]
push 0x4584cc
push ecx
lea edx, [esp + 0x106c]
push str.__s___s
push edx
call fcn.0044a04f
lea edi, [esp + 0x1074]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x1064]
not ecx
push ecx
mov ecx, dword [str.WinVNC]
push eax
push 1
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [esp + 0x1868]
test eax, eax
je 0x436ef3
cmp esi, ebx
jne 0x436ef3
mov eax, dword [str.WinVNC]
push 0x30
push eax
push 0x4804a0
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 0x43705d
mov edx, dword [str.WinVNC]
push 0x40
push edx
push 0x480cc0
call fcn.00438320
add esp, 0xc
xor eax, eax
pop edi
pop esi
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 0x436f6f
cmp dword [esp + 0x1868], ebx
jne 0x43705d
mov ecx, dword [str.WinVNC]
push 0x30
push ecx
push 0x481528
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1858
ret
lea edi, [esp + 0x864]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x864]
repne scasb al, byte es:[edi]
mov eax, dword [str.WinVNC]
not ecx
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 1
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x436fd8
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x1868], ebx
jne 0x43705d
mov eax, dword [str.WinVNC]
push 0x30
push eax
push 0x4809b0
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 0x437004
mov edx, dword [str.WinVNC]
push 0x40
push edx
push 0x4809f0
call fcn.00438320
add esp, 0xc
lea eax, [esp + 0x54]
lea ecx, [esp + 0x10]
push eax
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
lea edx, [esp + 0x880]
push ebx
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 0x43705d
cmp esi, ebx
jne 0x43705d
mov eax, dword [str.WinVNC]
push 0x10
push eax
push 0x480360
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1858
ret