Function at 0x401220
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403e50
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x407008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x100], esi
push 0xb8
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x100], esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 0x10
jb 0x401281
mov edi, dword [edi]
sub esp, 0xc
lea ecx, [ebp - 0xfc]
push edi
call fcn.00402850
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xfc], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x100], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0xa0], 0
jne 0x40133a
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
push 0x405279
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00402b40
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xfc], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov ecx, dword [ebp - 0xfc]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x70]
mov dword [ebp + edx - 0x100], ecx
lea ecx, [ebp - 0xec]
call fcn.004025c0
lea ecx, [ebp - 0xe4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x8c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, esi
jmp 0x401576
push 2
push 0
push 0
lea ecx, [ebp - 0xfc]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xfc]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
push 0
push 0
push 0
mov edi, dword [eax + 8]
add edi, dword [eax]
mov ecx, dword [eax + 0xc]
adc ecx, dword [eax + 4]
mov dword [ebp - 0x100], ecx
lea ecx, [ebp - 0xfc]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
xor esi, esi
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
xor eax, eax
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], eax
test edi, edi
je 0x401400
cmp edi, 0x7fffffff
ja 0x401591
cmp edi, 0x1000
jb 0x4013da
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x401596
push eax
call fcn.004030ec
add esp, 4
test eax, eax
je 0x40151a
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4013e5
push edi
call fcn.004030ec
add esp, 4
mov esi, eax
push edi
lea eax, [esi + edi]
mov dword [ebp - 0x38], esi
push 0
push esi
mov dword [ebp - 0x30], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x34], eax
push 0
push edi
push esi
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0x40000001
push edi
push esi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x100], eax
test eax, eax
jne 0x401461
mov dword [ebp - 0x1c], eax
mov byte [ebp + eax - 0x2c], al
jmp 0x40149d
cmp eax, 0xf
ja 0x401485
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x100]
add esp, 0xc
mov byte [ebp + eax - 0x2c], 0
jmp 0x40149d
push ecx
push eax
mov byte [ebp - 0x100], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x100]
push eax
call fcn.00402d70
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0x40000001
push edi
push esi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov edi, dword [ebp - 0x108]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [ebp - 0x2c]
mov byte [ebp - 0x2c], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
test esi, esi
je 0x40152a
mov ecx, dword [ebp - 0x30]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x401520
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401520
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.0040311c
add esp, 8
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xfc], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x100], eax
lea ecx, [ebp - 0xec]
call fcn.004025c0
lea ecx, [ebp - 0xe4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x8c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004030de
mov esp, ebp
pop ebp
ret
call fcn.00403040
call fcn.004010d0
int3