Function at 0x45ba20
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x5f5618]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x130], eax
cmp dword [ebp + 0xc], 0
je 0x45ba4b
cmp dword [ebp - 0x130], 0
jne 0x45ba52
mov al, 1
jmp 0x45bf1e
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0045ad10
add esp, 8
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00428680
movzx ecx, al
test ecx, ecx
jne 0x45ba85
xor al, al
jmp 0x45bf1e
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
jmp 0x45bab2
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 3
div ecx
cmp dword [ebp - 0xc], eax
jae 0x45bc25
mov edx, dword [ebp - 0x130]
add edx, dword [ebp - 0x128]
movsx eax, byte [edx]
and eax, 0xff
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x128]
add ecx, 1
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x130]
add edx, dword [ebp - 0x128]
movsx eax, byte [edx]
and eax, 0xff
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x128]
add ecx, 1
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x130]
add edx, dword [ebp - 0x128]
movsx eax, byte [edx]
and eax, 0xff
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x128]
add ecx, 1
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 8]
and edx, 0xfc
shr edx, 2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dl, byte [ecx + edx]
mov byte [ebp + eax - 0x120], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
and ecx, 3
shl ecx, 4
mov edx, dword [ebp - 0x134]
and edx, 0xf0
shr edx, 4
or ecx, edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov cl, byte [edx + ecx]
mov byte [ebp + eax - 0x120], cl
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x134]
and eax, 0xf
shl eax, 2
mov ecx, dword [ebp - 0x12c]
and ecx, 0xc0
shr ecx, 6
or eax, ecx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov al, byte [ecx + eax]
mov byte [ebp + edx - 0x120], al
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x12c]
and edx, 0x3f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dl, byte [ecx + edx]
mov byte [ebp + eax - 0x120], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jl 0x45bc20
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.00428cb0
movzx eax, al
test eax, eax
jne 0x45bc19
xor al, al
jmp 0x45bf1e
mov dword [ebp - 4], 0
jmp 0x45baa9
cmp dword [ebp - 4], 0
je 0x45bc53
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.00428cb0
movzx eax, al
test eax, eax
jne 0x45bc4c
xor al, al
jmp 0x45bf1e
mov dword [ebp - 4], 0
mov byte [ebp - 0xd], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 3
div ecx
mov dword [ebp - 0x148], edx
cmp dword [ebp - 0x148], 1
je 0x45bc89
cmp dword [ebp - 0x148], 2
je 0x45bdaf
jmp 0x45bf1b
mov edx, dword [ebp - 0x130]
add edx, dword [ebp - 0x128]
movsx eax, byte [edx]
and eax, 0xff
mov dword [ebp - 0x13c], eax
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x45bcdd
mov edx, dword [ebp - 0x13c]
and edx, 0xfc
sar edx, 2
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + edx]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004270c0
movzx edx, al
test edx, edx
je 0x45bcdd
mov dword [ebp - 0x14c], 1
jmp 0x45bce7
mov dword [ebp - 0x14c], 0
mov al, byte [ebp - 0x14c]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x45bd27
mov edx, dword [ebp - 0x13c]
and edx, 3
shl edx, 4
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + edx]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004270c0
movzx edx, al
test edx, edx
je 0x45bd27
mov dword [ebp - 0x150], 1
jmp 0x45bd31
mov dword [ebp - 0x150], 0
mov al, byte [ebp - 0x150]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x45bd5f
push 0x3d
mov ecx, dword [ebp + 0x14]
call fcn.004270c0
movzx edx, al
test edx, edx
je 0x45bd5f
mov dword [ebp - 0x154], 1
jmp 0x45bd69
mov dword [ebp - 0x154], 0
mov al, byte [ebp - 0x154]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x45bd97
push 0x3d
mov ecx, dword [ebp + 0x14]
call fcn.004270c0
movzx edx, al
test edx, edx
je 0x45bd97
mov dword [ebp - 0x158], 1
jmp 0x45bda1
mov dword [ebp - 0x158], 0
mov al, byte [ebp - 0x158]
mov byte [ebp - 0xd], al
jmp 0x45bf1b
mov ecx, dword [ebp - 0x130]
add ecx, dword [ebp - 0x128]
movsx edx, byte [ecx]
and edx, 0xff
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 0x128]
add eax, 1
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x130]
add ecx, dword [ebp - 0x128]
movsx edx, byte [ecx]
and edx, 0xff
mov dword [ebp - 0x144], edx
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x45be2e
mov ecx, dword [ebp - 0x140]
and ecx, 0xfc
sar ecx, 2
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + ecx]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.004270c0
movzx ecx, al
test ecx, ecx
je 0x45be2e
mov dword [ebp - 0x15c], 1
jmp 0x45be38
mov dword [ebp - 0x15c], 0
mov dl, byte [ebp - 0x15c]
mov byte [ebp - 0xd], dl
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x45be89
mov ecx, dword [ebp - 0x140]
and ecx, 3
shl ecx, 4
mov edx, dword [ebp - 0x144]
and edx, 0xf0
sar edx, 4
or ecx, edx
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + ecx]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004270c0
movzx edx, al
test edx, edx
je 0x45be89
mov dword [ebp - 0x160], 1
jmp 0x45be93
mov dword [ebp - 0x160], 0
mov al, byte [ebp - 0x160]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x45bed0
mov edx, dword [ebp - 0x144]
and edx, 0xf
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + edx*4]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004270c0
movzx edx, al
test edx, edx
je 0x45bed0
mov dword [ebp - 0x164], 1
jmp 0x45beda
mov dword [ebp - 0x164], 0
mov al, byte [ebp - 0x164]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x45bf08
push 0x3d
mov ecx, dword [ebp + 0x14]
call fcn.004270c0
movzx edx, al
test edx, edx
je 0x45bf08
mov dword [ebp - 0x168], 1
jmp 0x45bf12
mov dword [ebp - 0x168], 0
mov al, byte [ebp - 0x168]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00541cc8
mov esp, ebp
pop ebp
ret