Function at 0x419450
Capabilities:
Decode data using base64 via winapi
Encode data using base64 via winapi
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x419493
xor al, al
jmp 0x419715
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
push 0
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x4194d0
xor al, al
jmp 0x419715
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
jmp 0x419513
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x20
jae 0x419536
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov dl, byte [eax]
mov byte [ebp + ecx - 0x94], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x41950a
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x20
jmp 0x41954f
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0x70
jae 0x419572
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov cl, byte [edx]
mov byte [ebp + eax - 0xe4], cl
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x419546
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x70
jmp 0x41958b
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 8]
jae 0x4195ad
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov cl, byte [edx]
mov byte [ebp + eax - 0x54], cl
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x419582
push 0x4293d0
call fcn.004173b0
add esp, 4
push 0x42a4f8
lea eax, [ebp - 0x74]
push eax
call fcn.00401530
add esp, 8
push 0x42a4f8
lea ecx, [ebp - 0x74]
push ecx
push 0
push 0x50
lea edx, [ebp - 0xe4]
push edx
lea eax, [ebp - 0x164]
push eax
call fcn.00401420
add esp, 0x18
test eax, eax
je 0x4195f9
xor al, al
jmp 0x419715
lea ecx, [ebp - 0x164]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0x50
lea eax, [ebp - 0x94]
push eax
push 0x42a4f8
call fcn.00401540
add esp, 0x18
test eax, eax
je 0x419627
xor al, al
jmp 0x419715
push 0x100
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0x40000001
push 0x20
push 0x42a4f8
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x419661
xor al, al
jmp 0x419715
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 0x40000001
push 0x20
push 0x42a4f8
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x419686
xor al, al
jmp 0x419715
lea ecx, [ebp - 0x36c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x41daa0
lea edx, [ebp - 0x36c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
push 2
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x24]
push eax
push 1
push 0x41dab4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret