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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa98
push esi
push edi
push 0x208
lea eax, [esp + 0x48c]
push 0
push eax
call fcn.00404230
add esp, 0xc
lea eax, [esp + 0x78]
push 0x208
push 0
push eax
call fcn.00404230
add esp, 0xc
lea eax, [esp + 0x280]
push 0x208
push 0
push eax
call fcn.00404230
add esp, 0xc
lea eax, [esp + 0x690]
push 0x410
push 0
push eax
call fcn.00404230
add esp, 0xc
mov dword [esp + 0x18], 0
lea eax, [esp + 0x30]
push 0x44
push 0
push eax
call fcn.00404230
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x494]
add esp, 0xc
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push 0x208
call fcn.00402290
add esp, 4
test eax, eax
je 0x402fc9
push 0x104
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push 2
push 0
push 7
push 0xc0000000
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x402fc9
lea ecx, [esp + 0x78]
call fcn.00401140
lea ecx, [esp + 0x78]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402d20
sub ecx, edx
sar ecx, 1
push 0xffff
push 8
push dword [0x4204b8]
lea eax, [esp + ecx*2 + 0x7e]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x402fa5
mov esi, dword [ebp + 0xc]
mov ecx, esi
mov edi, dword [ebp + 0x10]
or ecx, edi
je 0x402df4
test edi, edi
jl 0x402dbf
jg 0x402d76
cmp esi, 0xffff
jbe 0x402dbf
mov ecx, dword [ebp + 8]
push 0xffff
call fcn.00402290
add esp, 4
test eax, eax
je 0x402f9f
push 0
lea eax, [esp + 0x1c]
push eax
push 0xffff
push dword [esp + 0x1c]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f9f
mov edx, dword [esp + 0x10]
add esi, 0xffff0001
adc edi, 0xffffffff
jmp 0x402d68
mov ecx, dword [ebp + 8]
push esi
call fcn.00402290
mov edi, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x402fa7
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push edi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fa7
jmp 0x402df6
mov edi, eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x1c]
mov ecx, 0x41ca08
mov dword [esp + 0x30], 0x44
mov eax, edx
mov dword [esp + 0x5c], 1
nop dword [eax + eax]
mov si, word [eax]
cmp si, word [ecx]
jne 0x402e46
test si, si
je 0x402e42
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x402e46
add eax, 4
add ecx, 4
test si, si
jne 0x402e20
xor eax, eax
jmp 0x402e4b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402e75
xor ecx, ecx
nop dword [eax]
nop word [eax + eax]
movzx eax, word [esp + ecx + 0x78]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x27e], ax
test ax, ax
jne 0x402e60
mov ecx, 0x41cae0
mov eax, edx
nop dword [eax]
mov si, word [eax]
cmp si, word [ecx]
jne 0x402ea6
test si, si
je 0x402ea2
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x402ea6
add eax, 4
add ecx, 4
test si, si
jne 0x402e80
xor eax, eax
jmp 0x402eab
sbb eax, eax
or eax, 1
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x402ee7
push 0x104
lea eax, [esp + 0x284]
push eax
push str._WINDIR_System32_rundll32.exe
call esi
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x694]
push str.rundll32___ws__d
push eax
call fcn.00401110
mov edx, dword [esp + 0x28]
add esp, 0xc
mov eax, 0x41cec0
nop dword [eax]
mov cx, word [edx]
cmp cx, word [eax]
jne 0x402f16
test cx, cx
je 0x402f12
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x402f16
add edx, 4
add eax, 4
test cx, cx
jne 0x402ef0
xor eax, eax
jmp 0x402f1b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402f55
push 0x104
lea eax, [esp + 0x284]
push eax
push str._WINDIR_System32cmd.exe
call esi
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x284]
push eax
lea eax, [esp + 0x698]
push str._ws__c___ws_
push eax
call fcn.00401110
add esp, 0x10
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x6b0]
push eax
lea eax, [esp + 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402f92
push eax
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x402fba
push eax
call esi
jmp 0x402fba
mov edi, dword [esp + 0x10]
jmp 0x402fa7
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402fb6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x402fc9
push edi
push 0
push dword [0x4204b8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret