Function at 0x5b4458
Capabilities:
Encode data using base64

Disassembly:
test dword [0x7eda90], 0xffffff80
jne 0x5b4480
test dword [0x7eda90], 0xffffffff
jne 0x5b469c
call fcn.006a6b5c
jmp fcn.005b4458
push edi
push esi
push ebp
push ebx
sub esp, 0x18
mov ebx, edx
mov dword [esp + 0xc], ecx
lea edx, [ebx + 2]
mov eax, 0xaaaaaaab
mul edx
mov ebp, edx
shr ebp, 1
lea ecx, [ebp*4 + 0x47]
mov eax, 0x38e38e39
mul ecx
shr edx, 4
add edx, edx
lea ecx, [edx + ebp*4 + 1]
mov dword [esp + 4], ecx
call fcn.004dbd48
mov esi, eax
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
test edx, edx
je 0x5b4691
xor ecx, ecx
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 8], edx
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
movzx ecx, byte [edx + edi]
movzx ebx, byte [edx + edi + 1]
movzx edi, byte [edx + edi + 2]
add edx, 3
mov dword [esp + 0x10], edx
mov edx, ecx
and edx, 0xfc
shr edx, 2
movzx edx, byte [edx + 0x6f1660]
mov byte [ebp + esi], dl
and ecx, 3
shl ecx, 4
mov edx, ebx
and edx, 0xf0
shr edx, 4
or ecx, edx
movzx ecx, byte [ecx + 0x6f1660]
mov byte [ebp + esi + 1], cl
and ebx, 0xf
shl ebx, 2
mov edx, edi
and edx, 0xc0
shr edx, 6
or ebx, edx
movzx ebx, byte [ebx + 0x6f1660]
mov byte [ebp + esi + 2], bl
and edi, 0x3f
movzx edx, byte [edi + 0x6f1660]
mov byte [ebp + esi + 3], dl
add eax, 4
add ebp, 4
lea edx, [eax + 4]
inc dword [esp + 0x14]
cmp edx, 0x48
jbe 0x5b458e
mov ecx, 0x6c3a50
movzx edx, byte [ecx]
mov byte [ebp + esi], dl
inc ebp
movsx edx, byte [ecx + 1]
test edx, edx
je 0x5b458c
mov byte [ebp + esi], dl
inc ebp
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x14]
cmp edx, ecx
jb 0x5b44e3
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp]
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea edi, [edx + edx*2]
sub ebx, edi
cmp ebx, 1
jne 0x5b45f9
mov edi, dword [esp + 0xc]
movzx ebx, byte [ecx + edi]
mov edx, ebx
and edx, 0xfc
shr edx, 2
movzx ecx, byte [edx + 0x6f1660]
mov byte [ebp + esi], cl
and ebx, 3
shl ebx, 4
movzx edx, byte [ebx + 0x6f1660]
mov byte [ebp + esi + 1], dl
mov edx, 0x3d
mov byte [ebp + esi + 2], dl
mov byte [ebp + esi + 3], dl
add ebp, 4
jmp 0x5b4656
cmp ebx, 2
jne 0x5b4656
mov ebx, dword [esp + 0xc]
movzx edx, byte [ecx + ebx]
movzx edi, byte [ecx + ebx + 1]
mov ecx, edx
and ecx, 0xfc
shr ecx, 2
movzx ecx, byte [ecx + 0x6f1660]
mov byte [ebp + esi], cl
and edx, 3
shl edx, 4
mov ecx, edi
and ecx, 0xf0
shr ecx, 4
or edx, ecx
movzx edx, byte [edx + 0x6f1660]
mov byte [ebp + esi + 1], dl
and edi, 0xf
movzx edx, byte [edi*4 + 0x6f1660]
mov byte [ebp + esi + 2], dl
mov byte [ebp + esi + 3], 0x3d
add ebp, 4
mov ecx, 0x6c3a50
movzx edx, byte [ecx]
mov byte [ebp + esi], dl
lea ebx, [ebp + 1]
movsx edx, byte [ecx + 1]
test edx, edx
je 0x5b4673
mov byte [ebx + esi], dl
lea ebx, [ebp + 2]
mov byte [ebx + esi], 0
mov edx, dword [esp + 0x2c]
mov dword [edx], esi
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 4]
mov dword [ecx], eax
add esp, 0x18
pop ebx
pop ebp
pop esi
pop edi
ret 8
xor ecx, ecx
xor ebp, ebp
jmp 0x5b45a5
push edi
push esi
push ebp
push ebx
sub esp, 0x18
mov esi, edx
mov dword [esp + 0xc], ecx
lea edx, [esi + 2]
mov eax, 0xaaaaaaab
mul edx
mov ebx, edx
shr ebx, 1
lea ecx, [ebx*4 + 0x47]
mov eax, 0x38e38e39
mul ecx
shr edx, 4
add edx, edx
lea ecx, [edx + ebx*4 + 1]
mov dword [esp + 4], ecx
call fcn.004dbd48
mov ebx, eax
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
test edx, edx
je 0x5b48a7
xor edi, edi
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x14], edi
mov dword [esp], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edx
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
movzx eax, byte [edx + esi]
movzx edi, byte [edx + esi + 1]
movzx esi, byte [edx + esi + 2]
mov edx, eax
and edx, 0xfc
shr edx, 2
movzx edx, byte [edx + 0x6f1660]
mov byte [ecx + ebx], dl
and eax, 3
shl eax, 4
mov edx, edi
and edx, 0xf0
shr edx, 4
or eax, edx
movzx edx, byte [eax + 0x6f1660]
mov byte [ecx + ebx + 1], dl
and edi, 0xf
shl edi, 2
mov edx, esi
and edx, 0xc0
shr edx, 6
or edi, edx
movzx edx, byte [edi + 0x6f1660]
mov byte [ecx + ebx + 2], dl
and esi, 0x3f
movzx edx, byte [esi + 0x6f1660]
mov byte [ecx + ebx + 3], dl
add ebp, 4
add dword [esp + 0x14], 3
add ecx, 4
lea edx, [ebp + 4]
inc dword [esp + 0x10]
cmp edx, 0x48
jbe 0x5b47a6
mov ebp, 0x6c3a50
movzx edx, byte [ebp]
mov byte [ecx + ebx], dl
inc ecx
movsx edx, byte [ebp + 1]
test edx, edx
je 0x5b47a4
mov byte [ecx + ebx], dl
inc ecx
xor ebp, ebp
mov esi, dword [esp + 8]
mov edx, dword [esp + 0x10]
cmp edx, esi
jb 0x5b46ff
mov edi, dword [esp + 0x14]
mov esi, dword [esp]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
lea ebp, [edx + edx*2]
sub esi, ebp
cmp esi, 1
jne 0x5b4810
mov ebp, dword [esp + 0xc]
movzx edi, byte [edi + ebp]
mov esi, edi
and esi, 0xfc
shr esi, 2
movzx edx, byte [esi + 0x6f1660]
mov byte [ecx + ebx], dl
and edi, 3
shl edi, 4
movzx edx, byte [edi + 0x6f1660]
mov byte [ecx + ebx + 1], dl
mov edx, 0x3d
mov byte [ecx + ebx + 2], dl
mov byte [ecx + ebx + 3], dl
add ecx, 4
jmp 0x5b486c
cmp esi, 2
jne 0x5b486c
mov esi, dword [esp + 0xc]
movzx ebp, byte [edi + esi]
movzx edi, byte [edi + esi + 1]
mov edx, ebp
and edx, 0xfc
shr edx, 2
movzx edx, byte [edx + 0x6f1660]
mov byte [ecx + ebx], dl
and ebp, 3
shl ebp, 4
mov edx, edi
and edx, 0xf0
shr edx, 4
or ebp, edx
movzx edx, byte [ebp + 0x6f1660]
mov byte [ecx + ebx + 1], dl
and edi, 0xf
movzx edx, byte [edi*4 + 0x6f1660]
mov byte [ecx + ebx + 2], dl
mov byte [ecx + ebx + 3], 0x3d
add ecx, 4
mov ebp, 0x6c3a50
movzx edx, byte [ebp]
mov byte [ecx + ebx], dl
lea esi, [ecx + 1]
movsx edx, byte [ebp + 1]
test edx, edx
je 0x5b4889
mov byte [esi + ebx], dl
lea esi, [ecx + 2]
mov byte [esi + ebx], 0
mov edx, dword [esp + 0x2c]
mov dword [edx], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 4]
mov dword [ecx], eax
add esp, 0x18
pop ebx
pop ebp
pop esi
pop edi
ret 8
xor edi, edi
xor ecx, ecx
jmp 0x5b47bd