Function at 0x401fb0
Capabilities:
Decode data using base64 via winapi
Encrypt data using dpapi
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422a48
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x433070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 2
mov esi, dword [ebp + 0xc]
jge 0x401ffc
mov edx, str.argv_Error_
mov ecx, 0x433f40
call fcn.00404ae0
push eax
call fcn.00404d90
add esp, 4
mov esi, dword [esi + 4]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x48], ebx
cmp ebx, 0xffffffff
jne 0x402069
mov edx, esi
mov ecx, 0x433f40
call fcn.00404ae0
push eax
call fcn.00404d90
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.open_file_failed_
mov ecx, 0x433f40
call fcn.00404ae0
mov edx, str.Error:
mov ecx, eax
call fcn.00404ae0
mov ecx, eax
call fcn.00402550
push eax
call fcn.00404d90
add esp, 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.0040ed98
push esi
mov ebx, eax
push 0
push ebx
call fcn.0040a8d0
add esp, 0x10
lea eax, [ebp - 0x5c]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [ebx], 0
jne 0x4020b7
xor ecx, ecx
jmp 0x4020c9
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4020c0
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.004042b0
push 0xd
push ecx
push str.encrypted_key
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00403040
push 0x11
push ecx
push str._encrypted_key_:_
lea ecx, [ebp - 0x28]
call fcn.00403040
push 0xffffffffffffffff
add eax, 0x11
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402370
push eax
lea ecx, [ebp - 0x28]
call fcn.00402420
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40215f
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x402156
test cl, 0x1f
je 0x402132
call fcn.0040ed48
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40213e
call fcn.0040ed48
sub ecx, eax
cmp ecx, 4
jae 0x40214a
call fcn.0040ed48
cmp ecx, 0x23
jbe 0x402154
call fcn.0040ed48
mov ecx, eax
push ecx
call fcn.00407ec4
add esp, 4
push 3
push ecx
push 0x4300dc
lea ecx, [ebp - 0x28]
call fcn.00403040
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402370
push eax
lea ecx, [ebp - 0x28]
call fcn.00402420
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x4021d1
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x4021c8
test cl, 0x1f
je 0x4021a4
call fcn.0040ed48
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4021b0
call fcn.0040ed48
sub ecx, eax
cmp ecx, 4
jae 0x4021bc
call fcn.0040ed48
cmp ecx, 0x23
jbe 0x4021c6
call fcn.0040ed48
mov ecx, eax
push ecx
call fcn.00407ec4
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x44]
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push ecx
push 0
push 1
push dword [ebp - 0x18]
mov dword [ebp - 0x44], 0
push eax
call edi
test eax, eax
jne 0x402217
mov edx, str.CryptStringToBinaryA_1_failed_
mov ecx, 0x433f40
call fcn.00404ae0
push eax
call fcn.00404d90
add esp, 4
mov eax, dword [ebp - 0x44]
inc eax
push eax
call fcn.0040ed98
mov esi, eax
add esp, 4
test esi, esi
jne 0x402242
mov edx, str.malloc_failed_
mov ecx, 0x433f40
call fcn.00404ae0
push eax
call fcn.00404d90
add esp, 4
mov eax, dword [ebp - 0x44]
inc eax
push eax
push 0
push esi
call fcn.0040a8d0
add esp, 0xc
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push ecx
push esi
push 1
push dword [ebp - 0x18]
push eax
call edi
test eax, eax
jne 0x40228a
mov edx, str.CryptStringToBinaryA_2_failed_
mov ecx, 0x433f40
call fcn.00404ae0
push eax
call fcn.00404d90
add esp, 4
lea eax, [esi + 5]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
add eax, 0xfffffffb
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x4022e8
xor esi, esi
cmp dword [ebp - 0x50], esi
jbe 0x4022db
nop dword [eax]
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + esi]
push eax
push str._02x
call fcn.004010e0
inc esi
add esp, 8
cmp esi, dword [ebp - 0x50]
jb 0x4022c0
push 0x430138
call fcn.004010e0
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x402332
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x402329
test cl, 0x1f
je 0x402305
call fcn.0040ed48
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x402311
call fcn.0040ed48
sub ecx, eax
cmp ecx, 4
jae 0x40231d
call fcn.0040ed48
cmp ecx, 0x23
jbe 0x402327
call fcn.0040ed48
mov ecx, eax
push ecx
call fcn.00407ec4
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004079d7
mov esp, ebp
pop ebp
ret