Function at 0x676290
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x20
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x40]
mov dword [esp + 0xc], 0
mov edx, dword [eax]
add eax, 8
mov dword [esp + 0x14], eax
test edx, edx
jle 0x6762bf
cmp byte [eax + edx - 1], 0x3d
je 0x6763b2
mov ecx, dword [esp + 0x44]
xor eax, eax
test ecx, ecx
je 0x67639a
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x44]
mov ecx, 0x852860
test byte [eax + 0x5c], 2
mov eax, 0x8527e0
cmove eax, ecx
test ebp, ebp
mov edi, eax
mov dword [esp + 0x1c], eax
jle 0x6765d7
movzx ecx, byte [esi]
test cl, cl
js 0x6765a0
movzx eax, cl
movzx ebx, byte [edi + eax]
cmp ebx, 0xff
mov eax, ebx
je 0x6765a0
lea edi, [esi + 1]
add esi, dword [esp + 0x44]
mov dword [esp + 0x44], 0
mov dword [esp + 4], edi
mov dword [esp + 0x18], esi
nop
lea esi, [esi]
cmp cl, 0x3d
je 0x6763e0
mov esi, dword [esp + 0xc]
test esi, esi
je 0x6763ee
or eax, 0x13
cmp al, 0xf3
jne 0x676395
cmp ebx, 0xf2
je 0x676603
cmp edx, 0x40
je 0x67641d
mov esi, dword [esp + 0x18]
cmp dword [esp + 4], esi
je 0x6765e0
add dword [esp + 4], 1
mov eax, dword [esp + 4]
movzx ecx, byte [eax - 1]
test cl, cl
js 0x676395
mov edi, dword [esp + 0x1c]
movzx eax, cl
movzx ebx, byte [edi + eax]
cmp ebx, 0xff
mov eax, ebx
jne 0x676330
mov eax, 0xffffffff
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], esi
mov esi, dword [esp + 0x34]
mov dword [esi], edx
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edx, 1
mov dword [esp + 0xc], 1
je 0x6762bf
cmp byte [eax + edx - 2], 0x3d
sete al
movzx eax, al
add eax, 1
mov dword [esp + 0xc], eax
jmp 0x6762bf
add dword [esp + 0xc], 1
mov edi, dword [esp + 0xc]
cmp edi, 3
je 0x676395
cmp ebx, 0xf2
je 0x676679
or eax, 0x13
cmp al, 0xf3
je 0x676358
cmp edx, 0x3f
jg 0x676395
mov eax, dword [esp + 0x14]
mov byte [eax + edx], cl
add edx, 1
cmp edx, 0x40
jne 0x676361
mov eax, dword [esp + 0x34]
mov ecx, 0x8527e0
test byte [eax + 0x5c], 2
mov eax, 0x852860
cmovne eax, ecx
mov ebp, eax
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 8]
test al, al
js 0x676660
cmp byte [ebp + eax], 0xe0
mov ecx, dword [esp + 0x14]
je 0x676465
jmp 0x676660
cmp byte [ebp + eax], 0xe0
jne 0x676473
test edx, edx
mov ecx, edi
je 0x676580
movzx eax, byte [ecx + 1]
sub edx, 1
lea edi, [ecx + 1]
test al, al
jns 0x676454
cmp edx, 3
jle 0x67656d
movzx eax, byte [ecx + edx]
test al, al
js 0x6764a1
movzx eax, byte [ebp + eax]
or eax, 0x13
cmp al, 0xf3
jne 0x6764a1
sub edx, 1
cmp edx, 3
je 0x6764a1
movzx eax, byte [edi + edx - 1]
test al, al
jns 0x676484
test dl, 3
jne 0x676590
sub edx, 1
mov esi, dword [esp + 0x38]
shr edx, 2
lea eax, [edx + edx*2 + 3]
add eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
jmp 0x676553
movzx eax, byte [ebp + eax]
mov byte [esp + 0xb], al
mov byte [esp + 0xa], al
movzx edx, byte [edi + 1]
mov eax, 0xff
test dl, dl
js 0x6764e4
movzx eax, byte [ebp + edx]
movzx ecx, byte [edi + 2]
mov edx, 0xff
test cl, cl
js 0x6764f6
movzx edx, byte [ebp + ecx]
add edi, 4
movzx ebx, byte [edi - 1]
mov ecx, 0xff
test bl, bl
js 0x67650b
movzx ecx, byte [ebp + ebx]
cmp byte [esp + 0xa], 0
js 0x676590
test al, al
js 0x676590
test dl, dl
js 0x676590
test cl, cl
js 0x676590
movzx ebx, byte [esp + 0xb]
shl eax, 0xc
shl edx, 6
add esi, 3
shl ebx, 0x12
or eax, ebx
or eax, edx
or eax, ecx
mov edx, eax
mov byte [esi - 2], ah
shr edx, 0x10
mov byte [esi - 3], dl
mov edx, esi
sub edx, dword [esp + 0x38]
cmp esi, dword [esp + 0x10]
mov byte [esi - 1], al
je 0x6765d0
movzx eax, byte [edi]
test al, al
jns 0x6764c5
mov byte [esp + 0xa], 0xff
mov byte [esp + 0xb], 0xff
jmp 0x6764d2
test dl, 3
jne 0x676590
test edx, edx
jne 0x6764aa
lea esi, [esi]
xor eax, eax
mov esi, dword [esp + 0xc]
cmp edx, esi
jge 0x6765b2
lea esi, [esi]
xor edx, edx
mov eax, 0xffffffff
jmp 0x67639a
mov dword [esp + 0x44], 0
mov eax, 0xffffffff
jmp 0x67639a
test al, al
jne 0x676590
sub edx, esi
add dword [esp + 0x44], edx
add dword [esp + 0x38], edx
xor edx, edx
jmp 0x676361
mov eax, edx
shr eax, 0x1f
jmp 0x676582
mov dword [esp + 0x44], 0
nop
test edx, edx
jle 0x6765eb
mov ebx, edx
and ebx, 3
je 0x676620
mov ecx, dword [esp + 0xc]
test edx, edx
setne al
test ecx, ecx
sete cl
or eax, ecx
movzx eax, al
jmp 0x67639a
xor eax, eax
test edx, edx
jle 0x67639a
test dl, 3
mov eax, 0xffffffff
jne 0x67639a
mov ebx, 1
mov dword [esp], edx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
call sym._evp_decodeblock_int
test eax, eax
js 0x676590
mov edi, dword [esp + 0xc]
cmp eax, edi
jl 0x676590
sub eax, edi
xor edx, edx
add dword [esp + 0x44], eax
test ebx, ebx
je 0x6765eb
xor eax, eax
jmp 0x67639a
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
movzx eax, byte [eax + 0x47]
test al, al
jns 0x676484
jmp 0x6764aa
test edx, edx
jle 0x676654
test dl, 3
jne 0x676395
jmp 0x67661b