Function at 0x140001d50
Capabilities:
Check os version
Create service
Delete registry value
Delete service
Initialize winsock library
Persist via run registry key
Persist via windows service
Set registry value
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2250
call fcn.1400236c0
sub rsp, rax
mov rax, qword [0x140057c30]
xor rax, rsp
mov qword [rsp + 0x2240], rax
mov rdi, rdx
mov ebx, ecx
xor ebp, ebp
lea rdx, [rsp + 0xa0]
mov ecx, 0x101
mov esi, ebp
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea rcx, [0x14005c880]
mov dword [0x14005c880], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
lea rax, [0x140057430]
mov qword [0x140057320], rax
lea eax, [rbx - 2]
cmp eax, 1
ja 0x14000208d
mov rcx, qword [rdi + 8]
lea rdx, str.__install
call fcn.140029290
test eax, eax
jne 0x14000208d
mov r9, qword [str.3proxy_tiny_proxy_server]
lea rdx, str._s_will_be_installed_and_started._nBy_clicking_Yes_you_confirm_you_read_and_accepted_License_Agreement._nYou_can_use_Administration_Services_to_control__s_service.
mov r8, qword [str.3proxy]
lea rcx, [rsp + 0x240]
call fcn.140002420
mov r8, qword [0x140057320]
lea r9d, [rbp + 0x44]
lea rdx, [rsp + 0x240]
xor ecx, ecx
mov r8, qword [r8 + 0x10]
call qword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x140002392
mov rdx, qword [rdi]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea r8, [0x140042634]
lea rax, [rsp + 0x241]
mov byte [rsp + 0x240], SQLSetConnectAttr
mov r9d, pe_nt_image_headers64
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SearchPathA]
movsxd rdx, eax
test eax, eax
jne 0x140001e7f
lea rcx, str.Failed_to_find_executable_filename
call fcn.140025f70
xor eax, eax
jmp 0x140002397
lea rcx, [rsp + 0x240]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x140001e90
mov eax, dword [0x140042664]
mov dword [rcx], eax
cmp ebx, 3
jne 0x140001ead
mov rcx, qword [rdi + 0x10]
jmp 0x140001ebb
mov rax, qword [0x140057320]
mov rcx, qword [rax + 0xc8]
lea r8, [rsp + 0x244]
add r8, rdx
lea r9, [rsp + 0x78]
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x140001eed
lea rcx, str.Failed_to_find_config_filename
call fcn.140025f70
xor eax, eax
jmp 0x140002397
lea rcx, [rsp + 0x240]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x140001f00
cmp dword [0x14005c890], 2
movsd xmm0, qword [str.____service]
mov eax, dword [0x140042690]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
jne 0x140001fed
xor edx, edx
xor ecx, ecx
mov r8d, 0x40000010
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
jne 0x140001f54
lea rcx, str.Failed_to_open_Service_Manager
call fcn.140025f70
xor eax, eax
jmp 0x140002397
mov rdx, qword [0x140057320]
lea rcx, [rsp + 0x240]
mov qword [rsp + 0x60], rbp
mov r9d, 0x20000000
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rbp
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 8]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rcx
mov rcx, rax
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
jne 0x140001fc4
lea rcx, str.Failed_to_create_service
call fcn.140025f70
xor eax, eax
jmp 0x140002397
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x1400022ee
lea rcx, str.Failed_to_start_service
call fcn.140025f70
xor eax, eax
jmp 0x140002397
lea rax, [rsp + 0x70]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000202b
lea rcx, str.Failed_to_open_registry
call fcn.140025f70
xor eax, eax
jmp 0x140002397
lea rcx, [rsp + 0x240]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], sil
jne 0x140002037
mov rdx, qword [0x140057320]
inc eax
mov rcx, qword [rsp + 0x70]
mov r9d, 2
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x240]
mov rdx, qword [rdx + 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400022ee
lea rcx, str.Failed_to_set_registry_value
call fcn.140025f70
xor eax, eax
jmp 0x140002397
lea eax, [rbx - 2]
cmp eax, 1
ja 0x1400021c4
mov rcx, qword [rdi + 8]
lea rdx, str.__remove
call fcn.140029290
test eax, eax
jne 0x140002198
cmp dword [0x14005c890], 2
jne 0x140002138
xor edx, edx
xor ecx, ecx
mov r8d, 0x40000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
jne 0x1400020e2
lea rcx, str.Failed_to_open_Service_Manager_n
call fcn.140025f70
xor eax, eax
jmp 0x140002397
mov rdx, qword [0x140057320]
mov r8d, 0x10000
mov rcx, rax
mov rdx, qword [rdx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
jne 0x140002114
lea rcx, str.Failed_to_open_service
call fcn.140025f70
xor eax, eax
jmp 0x140002397
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400022ee
lea rcx, str.Failed_to_delete_service
call fcn.140025f70
xor eax, eax
jmp 0x140002397
lea rax, [rsp + 0x70]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002018
mov rdx, qword [0x140057320]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rdx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x1400022ee
lea rcx, str.Failed_to_clear_registry
call fcn.140025f70
xor eax, eax
jmp 0x140002397
cmp ebx, 3
jne 0x1400021c4
mov rcx, qword [rdi + 0x10]
lea rdx, str.__service
call fcn.140029290
test eax, eax
jne 0x1400021cf
mov dword [0x140058740], 1
lea ebx, [rax + 2]
mov rcx, qword [rdi + 8]
jmp 0x1400021d6
cmp ebx, 2
jne 0x1400021cf
mov rcx, qword [rdi + 8]
jmp 0x1400021d6
mov rcx, qword [str.3proxy.cfg]
call fcn.140031e4c
mov qword [0x1400571c8], rax
test rax, rax
je 0x1400021f4
cmp byte [rax], 0x2d
je 0x1400021f4
call fcn.14000b770
mov rsi, rax
cmp ebx, 2
jg 0x1400022f5
test rsi, rsi
je 0x1400022f5
lea rcx, [0x14005a200]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14005a1c0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14005a180]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14005a140]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14005a100]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14005a0c0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14005a060]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14005a400]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x140057190]
call fcn.14000acd0
mov rcx, rsi
call fcn.14000b430
inc dword [0x140057224]
test eax, eax
jne 0x1400022ee
cmp qword [0x14005a0b8], rbp
jne 0x14000229d
mov rcx, rsi
call fcn.1400259c8
cmp dword [0x140058740], ebp
je 0x1400022e9
mov rax, qword [0x140057320]
mov rcx, qword [rax + 8]
lea rax, [0x140001b40]
mov qword [rsp + 0x80], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x98], rbp
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x1400022ee
call fcn.140001320
xor eax, eax
jmp 0x140002397
mov ecx, 2
call fcn.1400258bc
mov r8, qword [rdi]
lea rdx, str.Usage:__s__conffile__n
mov rcx, rax
call fcn.1400023d0
mov rbx, qword [rdi]
mov ecx, 2
call fcn.1400258bc
mov rcx, rax
lea rdx, str._n_t_s___install__conffile__n_tto_install_as_service_n_n_t_s___remove_n_tto_remove_service_n
mov r9, rbx
mov r8, rbx
call fcn.1400023d0
lea rcx, [0x140042864]
call fcn.140003cf0
mov ecx, 2
mov rbx, rax
call fcn.1400258bc
mov rcx, rax
lea rdx, str.available_socket_options:_n_t_s_n
mov r8, rbx
call fcn.1400023d0
mov ecx, 2
call fcn.1400258bc
mov r8, qword [0x140057320]
lea rdx, str._n_s__s_n_s_n
mov rcx, rax
mov rax, qword [str._c_3APA3A__Vladimir_Dubrovin__3proxy.ru_nDocumentation_and_sources:_http:__3proxy.ru__nPlease_read_license_agreement_in_copying_file._nYou_may_not_use_this_program_without_accepting_license_agreement]
mov qword [rsp + 0x20], rax
mov r9, qword [r8 + 0x18]
mov r8, qword [r8 + 0x10]
call fcn.1400023d0
mov eax, 1
mov rcx, qword [rsp + 0x2240]
xor rcx, rsp
call fcn.140023730
lea r11, [rsp + 0x2250]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret