Function at 0x54d570
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0054d930
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
shl eax, 6
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
shr ecx, 0x1a
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x58]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x10]
jae 0x54d5c4
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
shl edx, 3
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
shl eax, 3
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
shr ecx, 0x1d
or ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x58], 0x38
jge 0x54d638
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x58]
mov edx, dword [ebp + 8]
mov byte [edx + ecx + 0x18], 0x80
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x58]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x58], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x58], 0x38
jge 0x54d636
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x58]
mov eax, dword [ebp + 8]
mov byte [eax + edx + 0x18], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x58]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x58], edx
jmp 0x54d60e
jmp 0x54d6a0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x58]
mov eax, dword [ebp + 8]
mov byte [eax + edx + 0x18], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x58]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x58], edx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x58], 0x40
jge 0x54d67d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x58]
mov ecx, dword [ebp + 8]
mov byte [ecx + eax + 0x18], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x58]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x58], eax
jmp 0x54d655
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0054d930
add esp, 0xc
push 0x38
push 0
mov eax, dword [ebp + 8]
add eax, 0x18
push eax
call fcn.004fec20
add esp, 0xc
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
mov edx, 1
imul eax, edx, 0x38
mov edx, dword [ebp + 8]
mov byte [edx + eax + 0x18], cl
mov eax, dword [ebp - 0xc]
shr eax, 0x10
mov ecx, 1
imul edx, ecx, 0x39
mov ecx, dword [ebp + 8]
mov byte [ecx + edx + 0x18], al
mov edx, dword [ebp - 0xc]
shr edx, 8
mov eax, 1
imul ecx, eax, 0x3a
mov eax, dword [ebp + 8]
mov byte [eax + ecx + 0x18], dl
mov ecx, 1
imul edx, ecx, 0x3b
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0xc]
mov byte [eax + edx + 0x18], cl
mov edx, dword [ebp - 8]
shr edx, 0x18
mov eax, 1
imul ecx, eax, 0x3c
mov eax, dword [ebp + 8]
mov byte [eax + ecx + 0x18], dl
mov ecx, dword [ebp - 8]
shr ecx, 0x10
mov edx, 1
imul eax, edx, 0x3d
mov edx, dword [ebp + 8]
mov byte [edx + eax + 0x18], cl
mov eax, dword [ebp - 8]
shr eax, 8
mov ecx, 1
imul edx, ecx, 0x3e
mov ecx, dword [ebp + 8]
mov byte [ecx + edx + 0x18], al
mov edx, 1
imul eax, edx, 0x3f
mov ecx, dword [ebp + 8]
mov dl, byte [ebp - 8]
mov byte [ecx + eax + 0x18], dl
mov eax, dword [ebp + 8]
add eax, 0x18
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0054da70
add esp, 8
mov edx, dword [ebp + 8]
add edx, 0x18
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
shr ecx, 0x18
mov edx, dword [ebp - 4]
mov byte [edx], cl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
shr edx, 0x10
mov eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
shr eax, 8
mov ecx, dword [ebp - 4]
mov byte [ecx], al
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
xor ecx, ecx
jne 0x54d75e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
shr eax, 0x18
mov ecx, dword [ebp - 4]
mov byte [ecx], al
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shr ecx, 0x10
mov edx, dword [ebp - 4]
mov byte [edx], cl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 8
mov eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 4]
mov byte [edx], cl
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
xor eax, eax
jne 0x54d7b7
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
shr edx, 0x18
mov eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
shr eax, 0x10
mov ecx, dword [ebp - 4]
mov byte [ecx], al
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
shr ecx, 8
mov edx, dword [ebp - 4]
mov byte [edx], cl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov al, byte [edx + 8]
mov byte [ecx], al
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
xor edx, edx
jne 0x54d814
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
shr ecx, 0x18
mov edx, dword [ebp - 4]
mov byte [edx], cl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
shr edx, 0x10
mov eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
shr eax, 8
mov ecx, dword [ebp - 4]
mov byte [ecx], al
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 0xc]
mov byte [eax], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
xor ecx, ecx
jne 0x54d871
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
shr eax, 0x18
mov ecx, dword [ebp - 4]
mov byte [ecx], al
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
shr ecx, 0x10
mov edx, dword [ebp - 4]
mov byte [edx], cl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
shr edx, 8
mov eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x10]
mov byte [edx], cl
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
xor eax, eax
jne 0x54d8ce
mov esp, ebp
pop ebp
ret