Function at 0x4b9500
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x50]
mov edi, dword [ebp]
mov ebx, dword [esi + 0x58]
add ebp, 8
mov ecx, dword [edx + 0x5c]
test eax, eax
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ecx
je 0x4b97b0
test edi, edi
je 0x4b9790
xor ebp, ebp
cmp ebp, dword [esp + 0x50]
jge 0x4b9822
lea esi, [esi]
lea edi, [edi]
cmp dword [esp + 0x1c], 0x4f
jg 0x4b98bc
mov eax, dword [esp + 0x4c]
xor ebx, ebx
mov bl, byte [eax]
mov esi, ebx
and esi, 0x7f
mov dl, byte [esi + 0x530080]
and edx, 0xff
mov esi, edx
or edx, 0x13
inc eax
cmp edx, 0xf3
mov dword [esp + 0x4c], eax
je 0x4b98b0
cmp edi, 0x4f
jg 0x4b9920
mov ecx, dword [esp + 0x14]
mov byte [edi + ecx], bl
inc dword [esp + 0x1c]
inc edi
cmp ebx, 0x3d
je 0x4b9900
cmp esi, 0xf1
je 0x4b98d0
cmp esi, 0xf0
je 0x4b9940
inc ebp
mov ecx, dword [esp + 0x50]
cmp ebp, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 4], ebp
je 0x4b9850
cmp esi, 0xf2
je 0x4b9890
cmp edi, 0x3f
jle 0x4b9814
cmp esi, 0xf2
je 0x4b961e
mov dword [esp + 0x18], 1
test edi, edi
jle 0x4b97db
xor edx, edx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], 0
mov dl, byte [ecx]
and edx, 0x7f
cmp byte [edx + 0x530080], 0xe0
mov ebp, dword [esp + 0x44]
mov ebx, edi
je 0x4b9770
cmp ebx, 3
jle 0x4b9670
xor eax, eax
mov al, byte [ecx + ebx - 1]
and eax, 0x7f
mov dl, byte [eax + 0x530080]
or edx, 0x13
cmp dl, 0xf3
jne 0x4b9670
dec ebx
cmp ebx, 3
jg 0x4b9651
mov esi, esi
test bl, 3
mov eax, 0xffffffff
jne 0x4b9758
mov dword [esp + 0x10], 0
cmp dword [esp + 0x10], ebx
jge 0x4b9754
xor eax, eax
mov al, byte [ecx]
and eax, 0x7f
xor edx, edx
mov dl, byte [eax + 0x530080]
mov dword [esp + 8], edx
xor eax, eax
mov al, byte [ecx + 1]
and eax, 0x7f
mov dl, byte [eax + 0x530080]
xor eax, eax
and edx, 0xff
mov al, byte [ecx + 2]
and eax, 0x7f
mov esi, edx
xor edx, edx
mov dl, byte [eax + 0x530080]
xor eax, eax
mov al, byte [ecx + 3]
and eax, 0x7f
mov al, byte [eax + 0x530080]
and eax, 0xff
mov edi, eax
mov eax, dword [esp + 8]
shr eax, 7
add ecx, 4
test eax, eax
jne 0x4b996a
mov eax, esi
shr eax, 7
test eax, eax
jne 0x4b996a
mov eax, edx
shr eax, 7
test eax, eax
jne 0x4b996a
mov eax, edi
shr eax, 7
test eax, eax
jne 0x4b996a
mov eax, dword [esp + 8]
shl eax, 0x12
shl esi, 0xc
shl edx, 6
or eax, esi
or eax, edx
or eax, edi
mov edx, eax
shr edx, 0x10
mov byte [ebp], dl
mov edx, eax
shr edx, 8
mov byte [ebp + 1], dl
mov byte [ebp + 2], al
add dword [esp + 0x10], 4
add ebp, 3
add dword [esp + 0xc], 3
cmp dword [esp + 0x10], ebx
jl 0x4b9690
mov eax, dword [esp + 0xc]
xor edi, edi
test eax, eax
mov edx, eax
js 0x4b97b0
mov esi, eax
sub esi, dword [esp + 0x24]
add dword [esp + 0x20], esi
jmp 0x4b97f0
inc ecx
xor eax, eax
mov al, byte [ecx]
and eax, 0x7f
dec ebx
cmp byte [eax + 0x530080], 0xe0
jne 0x4b964c
test ebx, ebx
jg 0x4b9770
jmp 0x4b964c
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov al, byte [ecx]
and eax, 0x7f
cmp byte [eax + 0x530080], 0xf2
jne 0x4b9557
nop
lea esi, [esi]
xor edx, edx
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x20]
mov dword [ebp], ebx
mov ecx, dword [esp + 0x1c]
mov dword [esi], edi
mov edi, dword [esp + 0x18]
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], edi
add esp, 0x2c
pop ebx
pop esi
pop edi
mov eax, edx
pop ebp
ret
mov dword [esp + 0x24], 1
xor edx, edx
lea esi, [esi]
lea edi, [edi]
mov ecx, dword [esp + 0x40]
cmp dword [ecx + 4], edx
jle 0x4b9801
mov ebp, dword [esp + 0x24]
test ebp, ebp
jne 0x4b97b0
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
test ebx, ebx
mov dword [eax + 4], edx
jns 0x4b97b0
add dword [esp + 0x44], edx
mov ebp, dword [esp + 4]
cmp ebp, dword [esp + 0x50]
jl 0x4b9570
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x20]
mov dword [ebp], ebx
mov ecx, dword [esp + 0x1c]
mov dword [esi], edi
mov edi, dword [esp + 0x18]
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], edi
add esp, 0x2c
pop ebx
pop esi
mov edx, 1
pop edi
mov eax, edx
pop ebp
ret
test edi, 3
je 0x4b9864
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x4b95f9
mov ebx, dword [esp + 0x14]
mov al, byte [ebx + edi - 1]
cmp al, 0x3d
sete dl
and edx, 0xff
mov dword [esp + 0x24], edx
cmp byte [ebx + edi - 2], 0x3d
mov esi, 0xf2
jne 0x4b9890
inc dword [esp + 0x24]
nop
lea esi, [esi]
test edi, 3
je 0x4b961e
jmp 0x4b9605
cmp esi, 0xff
jne 0x4b95bf
mov edx, 0xffffffff
jmp 0x4b97b2
mov ebx, dword [esp + 0x18]
lea edx, [ebp + 1]
test ebx, ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 4], edx
je 0x4b95e0
mov ebp, dword [esp + 4]
jmp 0x4b9818
cmp dword [esp + 0x28], 0xffffffff
je 0x4b9910
inc dword [esp + 0x24]
jmp 0x4b95c8
inc dword [esp + 0x24]
mov dword [esp + 0x28], edi
jmp 0x4b95c8
push eax
push str.n____int_sizeof_ctx__enc_data_
push 0x106
push str..cryptoevpencode.c
call sym._OpenSSLDie
add esp, 0x10
jmp 0x4b95b3
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x1c], 0
je 0x4b95e0
inc ebp
mov dword [esp + 4], ebp
mov ebp, dword [esp + 4]
mov dword [esp + 0x18], 0
jmp 0x4b9818
mov eax, 0xffffffff
jmp 0x4b9758