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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7e98
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x529748]
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
mov eax, edx
mov dword [ebp - 0x24], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x40000001
push dword [eax]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x499deb
mov esi, dword [ebp - 0x14]
test esi, esi
jns 0x499d9e
push 0x80070057
call fcn.004162a0
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x499db9
push esi
mov ecx, edi
call fcn.00415fc0
mov ecx, dword [edi]
cmp esi, dword [ecx - 8]
jg 0x499d94
mov dword [ecx - 0xc], esi
mov eax, dword [edi]
mov byte [esi + eax], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x24]
push ecx
push 0x40000001
push dword [eax]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x499dfd
push ecx
mov ecx, edi
call fcn.0049bc60
mov ecx, edi
call fcn.00415e90
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49a011
mov ecx, dword [ebp - 0x14]
test ecx, ecx
js 0x499d94
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x499d94
mov dword [eax - 0xc], ecx
mov edx, str.Sks
mov eax, dword [edi]
mov byte [ecx + eax], 0
lea ecx, [ebp - 0x20]
call fcn.0049c1b0
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
jne 0x499e3b
push str.invalid_vector_T__subscript
call fcn.004bc548
push dword [0x5301ac]
push ecx
mov ecx, edi
call fcn.00499b40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x499e60
push eax
call fcn.004191e0
add esp, 4
mov edx, str.YnIL
lea ecx, [ebp - 0x3c]
call fcn.0049c1b0
mov esi, eax
mov edx, str.eg
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0049c1b0
mov byte [ebp - 4], 2
mov ecx, dword [esi + 4]
mov edx, dword [esi]
sub ecx, edx
jne 0x499e9a
push str.invalid_vector_T__subscript
call fcn.004bc548
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
jne 0x499ead
push str.invalid_vector_T__subscript
call fcn.004bc548
push edx
push ecx
mov ecx, edi
call fcn.00499b40
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x499edb
push eax
call fcn.004191e0
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x499ef2
push eax
call fcn.004191e0
add esp, 4
mov edx, str.YnMJ
lea ecx, [ebp - 0x3c]
call fcn.0049c1b0
mov esi, eax
mov edx, str.aA
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.0049c1b0
mov byte [ebp - 4], 4
mov ecx, dword [esi + 4]
mov edx, dword [esi]
sub ecx, edx
jne 0x499f2c
push str.invalid_vector_T__subscript
call fcn.004bc548
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
jne 0x499f3f
push str.invalid_vector_T__subscript
call fcn.004bc548
push edx
push ecx
mov ecx, edi
call fcn.00499b40
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x499f6d
push eax
call fcn.004191e0
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x499f84
push eax
call fcn.004191e0
add esp, 4
mov edx, str.YnMN
lea ecx, [ebp - 0x48]
call fcn.0049c1b0
mov esi, eax
mov edx, str.bA
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.0049c1b0
mov byte [ebp - 4], 6
mov ecx, dword [esi + 4]
mov edx, dword [esi]
sub ecx, edx
jne 0x499fbe
push str.invalid_vector_T__subscript
call fcn.004bc548
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
jne 0x499fd1
push str.invalid_vector_T__subscript
call fcn.004bc548
push edx
push ecx
mov ecx, edi
call fcn.00499b40
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x499fff
push eax
call fcn.004191e0
add esp, 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x49a00f
push eax
call fcn.004191e0
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.004bd963
mov esp, ebp
pop ebp
ret