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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4721c0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x8a0
mov eax, dword [0x491130]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x854], edx
test edx, edx
je 0x40dc99
mov eax, edx
mov dword [ebp - 0x840], 0
xorps xmm0, xmm0
mov dword [ebp - 0x83c], 0
movups xmmword [ebp - 0x850], xmm0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40da54
sub eax, esi
lea ecx, [ebp - 0x850]
sar eax, 1
push eax
push edx
call fcn.0040ae60
push ecx
lea ecx, [ebp - 0x850]
mov dword [ebp - 4], 0
call fcn.0040dd90
cmp dword [ebp - 0x83c], 8
lea eax, [ebp - 0x850]
push 0
cmovae eax, dword [ebp - 0x850]
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 0x40dc5d
cmp edi, 0xffffffff
je 0x40dc5d
push 0
lea eax, [ebp - 0x868]
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 0x40dc5d
push 0x820
lea eax, [ebp - 0x838]
push 0
push eax
call fcn.0044e240
xorps xmm0, xmm0
xor eax, eax
push str.cmd.exe__S__C___
mov word [ebp - 0x86e], ax
lea eax, [ebp - 0x838]
push 0x410
push eax
movlpd qword [ebp - 0x8ac], xmm0
movlpd qword [ebp - 0x8a4], xmm0
movlpd qword [ebp - 0x89c], xmm0
movlpd qword [ebp - 0x894], xmm0
movlpd qword [ebp - 0x88c], xmm0
movlpd qword [ebp - 0x87e], xmm0
movlpd qword [ebp - 0x876], xmm0
movups xmmword [ebp - 0x864], xmm0
call fcn.00455af8
cmp dword [ebp - 0x83c], 8
lea eax, [ebp - 0x850]
cmovae eax, dword [ebp - 0x850]
push eax
lea eax, [ebp - 0x838]
push 0x410
push eax
call fcn.00451913
push 0x486854
lea eax, [ebp - 0x838]
push 0x410
push eax
call fcn.00451913
push 0x486858
lea eax, [ebp - 0x838]
push 0x410
push eax
call fcn.00451913
push dword [ebp - 0x854]
lea eax, [ebp - 0x838]
push 0x410
push eax
call fcn.00451913
add esp, 0x48
lea eax, [ebp - 0x838]
push 0x486860
push 0x410
push eax
call fcn.00451913
add esp, 0xc
mov dword [ebp - 0x8b0], 0x44
xor eax, eax
mov dword [ebp - 0x884], 1
mov word [ebp - 0x880], ax
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0x8b0]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x838]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [ebp - 0x860]
test eax, eax
je 0x40dc46
push eax
call edi
mov dword [ebp - 0x860], 0
mov eax, dword [ebp - 0x864]
test eax, eax
je 0x40dc5d
push eax
call edi
mov dword [ebp - 0x864], 0
mov ecx, dword [ebp - 0x83c]
cmp ecx, 8
jb 0x40dc99
mov edx, dword [ebp - 0x850]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40dc8f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dcb7
push ecx
push edx
call fcn.0044b9a2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044b98f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00451171
int3