Function at 0x6b695980
Capabilities:
Encode data using base64

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
mov dword [eax], 0
test ebx, ebx
jle 0x6b6959d3
mov ebp, dword [esp + 0x34]
mov eax, dword [ebp + 4]
mov dword [esp], eax
cmp eax, 0x51
jge 0x6b695d5d
mov esi, dword [esp + 0x40]
mov eax, dword [ebp]
mov edi, dword [esp]
sub edi, eax
cmp edi, ebx
jle 0x6b6959da
lea eax, [ebp + eax + 8]
push ebx
push esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [ebp], ebx
jmp 0x6b695d42
xor eax, eax
jmp 0x6b695d47
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc], edx
test eax, eax
je 0x6b695ad3
lea eax, [ebp + eax + 8]
push edi
push esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 4]
test byte [ebp + 0x5c], 2
mov edx, 0x6b7c4f4f
mov eax, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
cmove eax, edx
test ecx, ecx
jle 0x6b695ae2
mov dword [esp + 4], eax
mov dword [esp + 0x14], edi
lea edx, [ebp + 9]
mov dword [esp + 8], 4
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx - 1]
mov ebp, esi
shl ebp, 0x10
cmp ecx, 2
mov dword [esp], ecx
jle 0x6b695aec
movzx ebx, byte [edx]
shr esi, 2
mov eax, dword [esp + 4]
movzx eax, byte [eax + esi]
movzx esi, byte [edx + 1]
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0x38]
mov byte [ecx + edi - 4], al
shl ebx, 8
or ebp, ebx
shr ebp, 0xc
and ebp, 0x3f
mov ecx, dword [esp + 4]
movzx eax, byte [ecx + ebp]
mov ebp, dword [esp + 0x38]
mov byte [ebp + edi - 3], al
or ebx, esi
shr ebx, 6
and ebx, 0x3f
mov ebp, ecx
movzx eax, byte [ecx + ebx]
mov ecx, dword [esp + 0x38]
mov byte [ecx + edi - 2], al
and esi, 0x3f
movzx eax, byte [ebp + esi]
mov byte [ecx + edi - 1], al
mov ecx, dword [esp]
add edi, 4
mov dword [esp + 8], edi
add edx, 3
add ecx, 0xfffffffd
jne 0x6b695a30
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x38]
lea eax, [ecx + edx - 4]
add edx, 0xfffffffc
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
jmp 0x6b695b52
xor edx, edx
test edx, edx
jns 0x6b695b86
jmp 0x6b695d1f
xor edx, edx
mov ecx, dword [esp + 0x38]
mov eax, ecx
jmp 0x6b695b56
jne 0x6b695af6
movzx edx, byte [edx]
shl edx, 8
or ebp, edx
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov edx, ebp
shr edx, 0x12
mov ecx, dword [esp + 4]
mov dl, byte [ecx + edx]
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x38]
mov byte [edi + eax - 4], dl
mov edx, ebp
shr edx, 0xc
and edx, 0x3f
mov dl, byte [ecx + edx]
mov byte [edi + eax - 3], dl
mov dl, 0x3d
cmp dword [esp], 1
je 0x6b695b36
shr ebp, 6
and ebp, 0x3f
mov dl, byte [ecx + ebp]
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0x38]
lea eax, [edi + ecx]
mov byte [edi + ecx - 2], dl
mov edx, ecx
mov ecx, edi
mov byte [edi + edx - 1], 0x3d
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
mov byte [eax], 0
mov dword [ebp], 0
add ecx, edx
test byte [ebp + 0x5c], 1
jne 0x6b695b6d
mov byte [ecx], 0xa
inc ecx
inc edx
add esi, edi
sub ebx, edi
mov dword [esp + 0xc], ecx
mov byte [ecx], 0
mov eax, dword [ebp + 4]
mov dword [esp], eax
test edx, edx
js 0x6b695d1f
cmp ebx, dword [esp]
jl 0x6b695d1f
nop
mov dword [esp + 8], edx
test byte [ebp + 0x5c], 2
mov ecx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
mov eax, 0x6b7c4f4f
cmove ecx, eax
cmp dword [esp], 0
jle 0x6b695c70
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
lea ebp, [esi + 1]
mov esi, 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 4], esi
movzx ebx, byte [ebp - 1]
mov esi, ebx
shl esi, 0x10
cmp dword [esp], 2
jle 0x6b695c80
movzx edi, byte [ebp]
shr ebx, 2
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + ebx]
mov byte [esp + 0x13], al
movzx eax, byte [ebp + 1]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 4]
movzx edx, byte [esp + 0x13]
mov byte [ecx + ebx - 4], dl
shl edi, 8
or esi, edi
shr esi, 0xc
and esi, 0x3f
mov edx, dword [esp + 0x14]
movzx ebx, byte [edx + esi]
mov esi, dword [esp + 4]
mov byte [ecx + esi - 3], bl
or edi, eax
shr edi, 6
and edi, 0x3f
movzx ebx, byte [edx + edi]
mov byte [ecx + esi - 2], bl
and eax, 0x3f
movzx eax, byte [edx + eax]
mov byte [ecx + esi - 1], al
add esi, 4
add ebp, 3
add dword [esp], 0xfffffffd
jne 0x6b695bd0
mov ecx, dword [esp + 0xc]
lea eax, [ecx + esi - 4]
add esi, 0xfffffffc
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x34]
mov edx, esi
mov esi, dword [esp + 0x1c]
jmp 0x6b695ce5
xor edx, edx
mov ecx, dword [esp + 0xc]
mov eax, ecx
jmp 0x6b695ce5
jne 0x6b695c8b
movzx ebx, byte [ebp]
shl ebx, 8
or esi, ebx
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x34]
mov ebx, esi
shr ebx, 0x12
mov ecx, dword [esp + 0x14]
mov bl, byte [ecx + ebx]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
mov byte [eax + edx - 4], bl
mov ebx, esi
shr ebx, 0xc
and ebx, 0x3f
mov bl, byte [ecx + ebx]
mov byte [eax + edx - 3], bl
mov bl, 0x3d
cmp dword [esp], 1
je 0x6b695ccb
shr esi, 6
and esi, 0x3f
mov bl, byte [ecx + esi]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
lea eax, [ecx + edx]
mov byte [ecx + edx - 2], bl
mov byte [ecx + edx - 1], 0x3d
mov esi, dword [esp + 0x1c]
mov ebx, edi
mov byte [eax], 0
mov eax, dword [ebp + 4]
add ecx, edx
mov edi, ecx
mov ecx, dword [esp + 8]
add ecx, edx
mov edx, ecx
test byte [ebp + 0x5c], 1
jne 0x6b695d02
mov byte [edi], 0xa
inc edi
inc edx
add esi, eax
sub ebx, eax
mov byte [edi], 0
test edx, edx
js 0x6b695d1f
mov dword [esp + 0xc], edi
mov eax, dword [ebp + 4]
mov dword [esp], eax
cmp ebx, eax
jge 0x6b695b90
test edx, edx
js 0x6b695d4f
test ebx, ebx
je 0x6b695d39
lea eax, [ebp + 8]
push ebx
push esi
push eax
mov esi, edx
call sub.msvcrt.dll_memcpy
mov edx, esi
add esp, 0xc
mov dword [ebp], ebx
mov eax, dword [esp + 0x3c]
mov dword [eax], edx
mov eax, 1
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x3c]
mov dword [eax], 0
xor eax, eax
jmp 0x6b695d47
push 0
push 0x6b7c4dd1
push str.assertion_failed:_ctx__length____int_sizeof_ctx__enc_data_
call fcn.6b582b80
nop
nop