Function at 0x4d3691
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, edx
mov eax, ecx
mov dword [esp + 0xc], eax
push esi
push edi
test ebp, ebp
je 0x4d36ac
test eax, eax
je 0x4d38e2
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4d38e2
cmp dword [esp + 0x28], 0
je 0x4d38e2
mov esi, dword [0x7da7ec]
test ebp, ebp
jne 0x4d371f
mov eax, fcn.00648b01
test esi, esi
cmove esi, eax
xor ebx, ebx
inc ebx
mov ecx, esi
push ebx
call dword [0x6a630c]
call esi
pop ecx
test eax, eax
jne 0x4d370e
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x4d390e
push 3
pop ebx
mov ecx, ebx
mov dword [esi], ebx
call fcn.004d7d46
mov dword [esi + 0x10], 0xa9
jmp 0x4d38fd
mov byte [eax], 0
mov dword [edi], eax
mov eax, dword [esp + 0x28]
and dword [eax], 0
jmp 0x4d3910
push 3
xor edx, edx
lea eax, [ebp + 2]
pop ebx
div ebx
mov edi, eax
mov eax, fcn.00648b01
shl edi, 2
test esi, esi
mov dword [esp + 0x1c], edi
cmove esi, eax
lea ecx, [edi + 1]
push ecx
mov ecx, esi
call dword [0x6a630c]
call esi
mov edx, eax
pop ecx
test edx, edx
jne 0x4d3772
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x4d390e
mov ecx, ebx
mov dword [esi], ebx
call fcn.004d7d46
mov dword [esi + 0x10], 0xb9
jmp 0x4d38fd
push 2
pop eax
xor ecx, ecx
mov dword [esp + 0x18], eax
xor esi, esi
mov dword [esp + 0x10], ecx
cmp ebp, eax
jbe 0x4d381f
mov ecx, dword [esp + 0x14]
add ecx, eax
xor edi, edi
mov dword [esp + 0x10], ecx
movzx eax, byte [ecx - 2]
add esi, ebx
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edi + edx], al
movzx ecx, byte [ecx - 1]
mov eax, dword [esp + 0x10]
shr ecx, 4
movzx eax, byte [eax - 2]
shl eax, 4
or ecx, eax
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edi + edx + 1], al
mov eax, dword [esp + 0x10]
movzx ecx, byte [eax]
movzx eax, byte [eax - 1]
shl eax, 2
shr ecx, 6
or ecx, eax
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov ecx, dword [esp + 0x10]
mov byte [edi + edx + 2], al
movzx eax, byte [ecx]
add ecx, ebx
and eax, 0x3f
mov dword [esp + 0x10], ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edi + edx + 3], al
add edi, 4
mov eax, dword [esp + 0x18]
add eax, ebx
mov dword [esp + 0x18], eax
cmp eax, ebp
jb 0x4d3795
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp esi, ebp
jae 0x4d38ce
lea eax, [ebp - 1]
lea edi, [ecx + 1]
lfence
cmp eax, esi
jne 0x4d3876
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
movzx eax, byte [esi + ecx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edx + ebp], al
movzx eax, byte [esi + ecx]
and eax, ebx
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edi + edx], al
mov eax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
inc edi
cmp eax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
jne 0x4d38ce
mov word [edi + edx], 0x3d3d
add edi, 2
jmp 0x4d38ce
mov ebx, dword [esp + 0x14]
movzx eax, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx + edx], al
movzx ecx, byte [esi + ebx + 1]
movzx eax, byte [esi + ebx]
shl eax, 4
shr ecx, 4
or ecx, eax
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edi + edx], al
movzx eax, byte [esi + ebx + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edi + edx + 1], al
mov eax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
add edi, 2
cmp eax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
jne 0x4d38ce
mov byte [edi + edx], 0x3d
inc edi
mov eax, dword [esp + 0x24]
mov bl, 1
mov byte [edx + edi], 0
mov dword [eax], edx
mov eax, dword [esp + 0x28]
mov dword [eax], edi
jmp 0x4d3910
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x4d390e
xor ebx, ebx
inc ebx
mov ecx, ebx
mov dword [esi], ebx
call fcn.004d7d46
mov dword [esi + 0x10], 0x9f
mov dword [esi + 4], eax
mov dword [esi + 8], str._encode
mov dword [esi + 0xc], str.J:JenkinsWorkspaceWX_spark_client_framework_thirdpartycjose_source_src_base64.c
xor bl, bl
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret