Function at 0x401700
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440960
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x45504c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x8a4], edx
test edx, edx
je 0x401a03
xor eax, eax
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x838], 7
lea esi, [ecx + 2]
mov word [ebp - 0x84c], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401760
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x84c]
call fcn.00401ec0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x838]
mov eax, edx
mov ecx, dword [ebp - 0x83c]
sub eax, ecx
cmp eax, 4
jb 0x4017cc
cmp edx, 8
lea esi, [ebp - 0x84c]
push 8
cmovae esi, dword [ebp - 0x84c]
lea edi, [ecx + 4]
push str..cmd
mov dword [ebp - 0x83c], edi
lea eax, [esi + ecx*2]
push eax
call fcn.0040aea0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4017ed
push 4
push str..cmd
mov byte [ebp - 0x834], 0
lea ecx, [ebp - 0x84c]
push dword [ebp - 0x834]
push 4
call fcn.00401ca0
cmp dword [ebp - 0x838], 8
lea eax, [ebp - 0x84c]
push 0
cmovae eax, dword [ebp - 0x84c]
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x4019c7
cmp edi, 0xffffffff
je 0x4019c7
push 0
lea eax, [ebp - 0x834]
push eax
push 0x219
push str._echo_off_r_nrem__r_nrem_logmein_remotecontrol.exe.cmd__________________________Applet___clean_up_r_nrem_r_nrem_Copyright__c__2016_2020_LogMeIn__Inc._All_rights_reserved._r_nrem__r_n_r_n____set__self_0__r_n_r_n:RemoveFile_r_n____if___1______goto_:end_r_n____del___1____nul_r_n____if_not_exist___1__shiftgoto_:RemoveFile_r_n____timeout__T_3___nul_r_n____goto_:RemoveFile_r_n_r_n:end_r_n_r_n____del___self_____nul_r_n_r_n:EOF_r_n
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
call edi
test esi, esi
je 0x4019c7
push 0x820
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.0040b420
xorps xmm0, xmm0
xor eax, eax
push str.cmd.exe__S__C___
mov word [ebp - 0x84e], ax
lea eax, [ebp - 0x830]
push 0x410
push eax
movlpd qword [ebp - 0x88c], xmm0
movlpd qword [ebp - 0x884], xmm0
movlpd qword [ebp - 0x87c], xmm0
movlpd qword [ebp - 0x874], xmm0
movlpd qword [ebp - 0x86c], xmm0
movlpd qword [ebp - 0x85e], xmm0
movlpd qword [ebp - 0x856], xmm0
movups xmmword [ebp - 0x8a0], xmm0
call fcn.0040ce7b
cmp dword [ebp - 0x838], 8
lea eax, [ebp - 0x84c]
cmovae eax, dword [ebp - 0x84c]
push eax
lea eax, [ebp - 0x830]
push 0x410
push eax
call fcn.0040cedf
push 0x44fd0c
lea eax, [ebp - 0x830]
push 0x410
push eax
call fcn.0040cedf
push 0x44fd10
lea eax, [ebp - 0x830]
push 0x410
push eax
call fcn.0040cedf
push dword [ebp - 0x8a4]
lea eax, [ebp - 0x830]
push 0x410
push eax
call fcn.0040cedf
add esp, 0x48
lea eax, [ebp - 0x830]
push 0x44fd18
push 0x410
push eax
call fcn.0040cedf
add esp, 0xc
mov dword [ebp - 0x890], 0x44
xor eax, eax
mov dword [ebp - 0x864], 1
mov word [ebp - 0x860], ax
lea eax, [ebp - 0x8a0]
push eax
lea eax, [ebp - 0x890]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [ebp - 0x89c]
test eax, eax
je 0x4019b0
push eax
call edi
mov dword [ebp - 0x89c], 0
mov eax, dword [ebp - 0x8a0]
test eax, eax
je 0x4019c7
push eax
call edi
mov dword [ebp - 0x8a0], 0
mov edx, dword [ebp - 0x838]
cmp edx, 8
jb 0x401a03
mov ecx, dword [ebp - 0x84c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4019f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a1e
push edx
push ecx
call fcn.00408f7a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408f46
mov esp, ebp
pop ebp
ret
call fcn.0040ce2a
int3