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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x221c
call fcn.00448330
mov eax, dword [0x461d34]
push ebx
mov dword [esp + 0x221c], eax
push esi
push edi
xor eax, eax
mov word [esp + 0x18], 0
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x18]
push eax
call fcn.004194a0
push 0x104
lea ecx, [esp + 0x20]
push str.R2PCSH.exe
push ecx
call fcn.004489c5
lea edx, [esp + 0x28]
push edx
push 1
push str.z2_register_code
push str.z2SoftwareKeyFile.Document
push 0x458ee0
call fcn.00445230
add esp, 0x24
lea eax, [esp + 0x14]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [0x462bd8]
test eax, eax
mov edi, dword [0x462bfc]
mov ebx, dword [0x462ce0]
jne 0x4353a5
push 0x45735c
lea ecx, [esp + 0x14]
call fcn.00406630
mov esi, dword [0x462c94]
lea ecx, [esp + 0x18]
push ecx
mov edx, ecx
push edx
call esi
push eax
lea ecx, [esp + 0x18]
call fcn.00407350
push 0x45735c
push 0x45735c
call esi
push eax
lea ecx, [esp + 0x18]
call fcn.00407350
mov esi, dword [esp + 0x10]
push esi
call fcn.004478ea
mov ecx, dword [esp + 0x18]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push str.z2_R2PC_Server_Helper
push ecx
call edi
test eax, eax
je 0x435376
mov eax, dword [ebp + 8]
test eax, eax
jne 0x435376
push 0x30
push str.z2_R2PC_Server
push str.WARNING:Unable_to_install_the_ServiceHelper_hook_nGlobal_user_specific_registry_settings_will_not_be_loaded
push 0
call ebx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x45f0f4]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x4353a5
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4353a5
push esi
call fcn.00447fc5
add esp, 4
push 0x7ff
lea ecx, [esp + 0x1224]
push ecx
push 0
call dword [0x462c44]
test eax, eax
jne 0x4353eb
mov eax, dword [ebp + 8]
test eax, eax
jne 0x43562c
push 0x30
push 0
push str.Unable_to_install_z2_R2PC_service
push 0
call ebx
xor eax, eax
mov ecx, dword [esp + 0x2224]
call fcn.00447d46
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x458ab4
call fcn.004478ea
lea edx, [esp + 0x1224]
push edx
mov esi, eax
call fcn.004478ea
lea eax, [esi + eax + 4]
add esp, 8
cmp eax, 0x800
jae 0x43562c
push 0x458ab4
lea ecx, [esp + 0x1224]
push ecx
lea edx, [esp + 0x228]
push str.__s___s
push edx
call fcn.00448079
mov eax, dword [0x468808]
add esp, 0x10
cmp eax, 1
jne 0x43551a
lea eax, [esp + 0x10]
push eax
push 0x457360
push 0x80000002
call dword [0x462bd8]
test eax, eax
je 0x43548f
mov eax, dword [ebp + 8]
test eax, eax
jne 0x43562c
push 0x30
push str.z2_R2PC_Server
push str.Can_not_open_RunService_registry_key___the_service_was_not_installed
push 0
call ebx
xor eax, eax
mov ecx, dword [esp + 0x2224]
call fcn.00447d46
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x220]
push ecx
call fcn.004478ea
add esp, 4
inc eax
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x224]
push edx
push 1
push 0
push str.z2_R2PC_Server_Helper
push eax
call edi
shl eax, 1
test eax, eax
je 0x4354fa
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x43562c
push 0x30
push str.z2_R2PC_Server
push str.z2_RTPC_service_could_not_be_registered
push 0
call ebx
xor eax, eax
mov ecx, dword [esp + 0x2224]
call fcn.00447d46
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x2224]
call fcn.00447d46
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x43562c
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x435567
mov eax, dword [ebp + 8]
test eax, eax
jne 0x43562c
push 0x30
push str.z2_R2PC_Server
push str.The_Service_Control_Manager_could_not_be_contacted___the_Agent_service_was_not_registered
push edi
call ebx
xor eax, eax
mov ecx, dword [esp + 0x2224]
call fcn.00447d46
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.TCPIP
push 0
push 0
lea eax, [esp + 0x234]
push eax
push 1
push 2
push 0x110
push 0xf01ff
push str.z2_Remote2PC_Server
push str.z2_R2PC_Server
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x435605
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x4355e9
cmp eax, 0x431
push 0x30
push str.z2_R2PC_Server
jne 0x4355e0
push str.The_agent_service_is_already_registered
push esi
call ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov ecx, dword [esp + 0x2224]
call fcn.00447d46
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.z2_R2PC_service_could_not_be_registered
push 0
call ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov ecx, dword [esp + 0x2224]
call fcn.00447d46
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x46891c]
test eax, eax
mov dword [esp + 0x10], str.Allows_authorized_mobile_device_user_securely_connects_to_this_computer__interactively_controls_applications_and_transfers_files.
je 0x435620
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
mov ecx, dword [esp + 0x2224]
xor eax, eax
call fcn.00447d46
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret