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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449f50
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x45f094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x84c], eax
test eax, eax
je 0x40810a
push eax
lea ecx, [ebp - 0x848]
call fcn.00404930
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x834]
mov eax, ecx
mov edi, dword [ebp - 0x838]
sub eax, edi
cmp eax, 4
jb 0x407eda
cmp ecx, 8
lea esi, [ebp - 0x848]
lea eax, [edi + 4]
cmovae esi, dword [ebp - 0x848]
push 8
mov dword [ebp - 0x838], eax
push str..cmd
lea eax, [esi + edi*2]
push eax
call fcn.004257e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 8], ax
jmp 0x407ef4
push 4
push str..cmd
push dword [ebp - 0x84c]
lea ecx, [ebp - 0x848]
push 4
call fcn.00408210
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
push 0
cmovae eax, dword [ebp - 0x848]
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 0x4080ce
cmp edi, 0xffffffff
je 0x4080ce
push 0
lea eax, [ebp - 0x860]
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_2021_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 0x4080ce
push 0x820
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00425d60
xorps xmm0, xmm0
xor eax, eax
push str.cmd.exe__S__C___
mov word [ebp - 0x862], ax
lea eax, [ebp - 0x830]
push 0x410
push eax
movlpd qword [ebp - 0x8a0], xmm0
movlpd qword [ebp - 0x898], xmm0
movlpd qword [ebp - 0x890], xmm0
movlpd qword [ebp - 0x888], xmm0
movlpd qword [ebp - 0x880], xmm0
movlpd qword [ebp - 0x872], xmm0
movlpd qword [ebp - 0x86a], xmm0
movups xmmword [ebp - 0x85c], xmm0
call fcn.0042e741
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x830]
push 0x410
push eax
call fcn.004294b6
push 0x458f2c
lea eax, [ebp - 0x830]
push 0x410
push eax
call fcn.004294b6
push 0x458f30
lea eax, [ebp - 0x830]
push 0x410
push eax
call fcn.004294b6
push dword [ebp - 0x84c]
lea eax, [ebp - 0x830]
push 0x410
push eax
call fcn.004294b6
add esp, 0x48
lea eax, [ebp - 0x830]
push 0x458f38
push 0x410
push eax
call fcn.004294b6
add esp, 0xc
mov dword [ebp - 0x8a4], 0x44
xor eax, eax
mov dword [ebp - 0x878], 1
mov word [ebp - 0x874], ax
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x8a4]
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 - 0x858]
test eax, eax
je 0x4080b7
push eax
call edi
mov dword [ebp - 0x858], 0
mov eax, dword [ebp - 0x85c]
test eax, eax
je 0x4080ce
push eax
call edi
mov dword [ebp - 0x85c], 0
mov ecx, dword [ebp - 0x834]
cmp ecx, 8
jb 0x40810a
mov edx, dword [ebp - 0x848]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408100
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408125
push ecx
push edx
call fcn.00423d59
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.00423d11
mov esp, ebp
pop ebp
ret
call fcn.0042e6f0
int3