Function at 0x7ebfa1
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x20
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], 0
mov ecx, dword [eax]
add eax, 8
mov dword [esp + 0x1c], eax
test ecx, ecx
jle 0x7ebfcc
cmp byte [eax + ecx - 1], 0x3d
je 0x7ec309
mov ebp, dword [esp + 0x44]
xor ebx, ebx
test ebp, ebp
je 0x7ec178
mov eax, dword [esp + 0x34]
mov edx, 0x9f6700
mov edi, dword [esp + 0x44]
test byte [eax + 0x5c], 2
mov eax, 0x9f6780
cmovne eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jle 0x7ec383
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x44]
mov dword [esp + 0x44], 0
mov dword [esp + 0x18], eax
jmp 0x7ec04b
mov esi, dword [esp + 0xc]
test esi, esi
je 0x7ec090
or eax, 0x13
cmp al, 0xf3
jne 0x7ec173
cmp ebx, 0xf2
je 0x7ec341
cmp ecx, 0x40
je 0x7ec0bb
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x40]
je 0x7ec131
add dword [esp + 0x40], 1
mov eax, dword [esp + 0x40]
movzx edx, byte [eax - 1]
test dl, dl
js 0x7ec173
mov esi, dword [esp + 0x14]
movzx eax, dl
movzx ebx, byte [esi + eax]
mov eax, ebx
cmp ebx, 0xff
je 0x7ec173
cmp dl, 0x3d
jne 0x7ec019
add dword [esp + 0xc], 1
mov edi, dword [esp + 0xc]
cmp edi, 3
je 0x7ec173
cmp ebx, 0xf2
je 0x7ec341
or eax, 0x13
cmp al, 0xf3
je 0x7ec038
cmp ecx, 0x3f
jg 0x7ec173
mov eax, dword [esp + 0x1c]
mov byte [eax + ecx], dl
add ecx, 1
cmp ecx, 0x40
jne 0x7ec03d
mov eax, dword [esp + 0x34]
mov edx, 0x9f6700
mov ebp, dword [esp + 0x1c]
test byte [eax + 0x5c], 2
mov eax, 0x9f6780
cmovne eax, edx
mov edx, 0x40
mov edi, eax
lea esi, [esi]
movzx eax, byte [ebp]
mov ecx, edx
test al, al
js 0x7ec199
cmp byte [edi + eax], 0xe0
jne 0x7ec199
add ebp, 1
sub edx, 1
jne 0x7ec0e1
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x7ec171
xor eax, eax
mov edi, eax
xor ecx, ecx
sub edi, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
add dword [esp + 0x44], edi
add dword [esp + 0x38], edi
cmp eax, dword [esp + 0x40]
jne 0x7ec04b
lea esi, [esi]
nop
test ecx, ecx
jle 0x7ec13a
test cl, 3
je 0x7ec14f
mov eax, dword [esp + 0xc]
test ecx, ecx
setne bl
test eax, eax
sete al
or ebx, eax
movzx ebx, bl
jmp 0x7ec178
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov dword [esp], ecx
mov ecx, dword [esp + 0x1c]
call fcn.007eba51
cmp eax, dword [esp + 0xc]
jge 0x7ec390
lea esi, [esi]
xor ecx, ecx
mov ebx, 0xffffffff
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x44]
mov dword [eax], esi
mov eax, dword [esp + 0x34]
mov dword [eax], ecx
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], ecx
cmp edx, 3
jle 0x7ec171
mov edx, dword [esp + 0x10]
jmp 0x7ec1c3
movzx eax, byte [edi + eax]
or eax, 0x13
cmp al, 0xf3
jne 0x7ec1cf
mov edx, ecx
cmp ecx, 3
je 0x7ec171
movzx eax, byte [ebp + edx - 1]
lea ecx, [edx - 1]
test al, al
jns 0x7ec1b1
mov eax, edx
mov dword [esp + 0x10], edx
test al, 3
jne 0x7ec171
test edx, edx
jle 0x7ec101
xor eax, eax
mov dword [esp + 4], edi
xor esi, esi
mov edi, eax
jmp 0x7ec29e
mov ebx, dword [esp + 4]
movzx ebx, byte [ebx + eax]
movzx eax, byte [ebp + esi + 1]
mov byte [esp + 0xb], bl
test al, al
js 0x7ec2c9
mov ecx, dword [esp + 4]
movzx edx, byte [ecx + eax]
movzx eax, byte [ebp + esi + 2]
test al, al
js 0x7ec2e1
mov ecx, dword [esp + 4]
movzx eax, byte [ecx + eax]
movzx ecx, byte [ebp + esi + 3]
mov byte [esp + 0xa], al
test cl, cl
js 0x7ec2f9
mov eax, dword [esp + 4]
movzx ecx, byte [eax + ecx]
cmp byte [esp + 0xb], 0
js 0x7ec171
test dl, dl
js 0x7ec171
movzx eax, byte [esp + 0xa]
test al, al
js 0x7ec171
test cl, cl
js 0x7ec171
shl ebx, 0x12
shl edx, 0xc
add esi, 4
or edx, ebx
movzx ebx, al
shl ebx, 6
or ebx, edx
mov edx, dword [esp + 0x38]
mov eax, ebx
or ecx, ebx
shr eax, 0x10
mov byte [edx + edi + 1], bh
mov byte [edx + edi], al
mov byte [edx + edi + 2], cl
add edi, 3
cmp esi, dword [esp + 0x10]
jge 0x7ec331
movzx eax, byte [ebp + esi]
test al, al
jns 0x7ec1f1
movzx eax, byte [ebp + esi + 1]
mov byte [esp + 0xb], 0xff
mov ebx, 0xff
test al, al
jns 0x7ec20a
lea esi, [esi]
movzx eax, byte [ebp + esi + 2]
mov edx, 0xff
test al, al
jns 0x7ec21f
lea esi, [esi]
movzx ecx, byte [ebp + esi + 3]
mov byte [esp + 0xa], 0xff
test cl, cl
jns 0x7ec238
lea esi, [esi]
mov ecx, 0xff
jmp 0x7ec240
mov dword [esp + 0xc], 1
cmp ecx, 1
je 0x7ebfcc
cmp byte [eax + ecx - 2], 0x3d
sete al
movzx eax, al
add eax, 1
mov dword [esp + 0xc], eax
jmp 0x7ebfcc
mov eax, edi
jmp 0x7ec10b
xor ebx, ebx
test ecx, ecx
jle 0x7ec178
mov ebx, ecx
and ebx, 3
jne 0x7ec173
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov dword [esp], ecx
mov ecx, dword [esp + 0x1c]
call fcn.007eba51
mov esi, dword [esp + 0xc]
cmp esi, eax
jg 0x7ec171
sub eax, esi
xor ecx, ecx
add dword [esp + 0x44], eax
jmp 0x7ec178
mov dword [esp + 0x44], 0
jmp 0x7ec131
sub eax, dword [esp + 0xc]
xor ecx, ecx
add dword [esp + 0x44], eax
jmp 0x7ec13a