Function at 0x78e780
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x24]
shr ebp, 0xb
mov ecx, dword [edi]
movzx edx, byte [ecx + 1]
add ecx, 2
and ebp, 1
je 0x78e887
cmp edx, 0xc0
jb 0x78e887
movzx eax, byte [ecx]
and eax, 0x3f
test dl, 0x20
jne 0x78e7cb
and edx, 0x1f
shl edx, 6
or edx, eax
inc ecx
jmp 0x78e887
test dl, 0x10
jne 0x78e7ec
and edx, 0xf
shl edx, 6
or edx, eax
movzx eax, byte [ecx + 1]
shl edx, 6
and eax, 0x3f
or edx, eax
add ecx, 2
jmp 0x78e887
test dl, 8
jne 0x78e816
and edx, 7
shl edx, 6
or edx, eax
movzx eax, byte [ecx + 1]
shl edx, 6
and eax, 0x3f
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 6
and eax, 0x3f
or edx, eax
add ecx, 3
jmp 0x78e887
test dl, 4
jne 0x78e84c
and edx, 3
shl edx, 6
or edx, eax
movzx eax, byte [ecx + 1]
shl edx, 6
and eax, 0x3f
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 6
and eax, 0x3f
or edx, eax
movzx eax, byte [ecx + 3]
shl edx, 6
and eax, 0x3f
or edx, eax
add ecx, 4
jmp 0x78e887
and edx, 1
shl edx, 6
or edx, eax
movzx eax, byte [ecx + 1]
shl edx, 6
and eax, 0x3f
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 6
and eax, 0x3f
or edx, eax
movzx eax, byte [ecx + 3]
shl edx, 6
and eax, 0x3f
or edx, eax
movzx eax, byte [ecx + 4]
shl edx, 6
and eax, 0x3f
or edx, eax
add ecx, 5
lea eax, [ecx - 1]
mov dword [esp + 0x1c], eax
mov esi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
test edx, edx
jne 0x78e8ab
mov eax, dword [esp + 0x2c]
mov dword [eax], 1
jmp 0x78eb00
lea eax, [edx - 0x30]
cmp eax, 0x4a
ja 0x78eb00
lea ebx, [edx - 0x30]
movsx edi, word [ebx*2 + 0x858158]
test edi, edi
je 0x78e8d9
cmovg edx, edi
mov eax, edi
neg eax
xor ebx, ebx
test edi, edi
cmovle ebx, eax
jmp 0x78eba6
cmp eax, 0x48
ja case.0x78e8e9.10
movzx eax, byte [eax + 0x78ef24]
jmp dword [eax*4 + 0x78eefc]
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x25
jmp 0x78eafa
test dword [esp + 0x34], 0x2000000
je case.0x78e8e9.28
movzx ecx, byte [esi + 1]
test byte [ecx + 0x8582a8], 8
je 0x78eafa
movzx edi, byte [esi + 2]
test byte [edi + 0x8582a8], 8
je 0x78eafa
movzx ebx, byte [esi + 3]
test byte [ebx + 0x8582a8], 8
je 0x78eafa
lea eax, [esi + 4]
mov dword [esp + 0x18], eax
movzx eax, byte [eax]
mov dword [esp + 0x14], eax
test byte [eax + 0x8582a8], 8
je 0x78eafa
mov edx, dword [esp + 0x14]
lea eax, [ecx - 0x20]
cmp ecx, 0x61
lea esi, [ebx - 0x20]
cmovb eax, ecx
cmp edi, 0x61
lea ecx, [edi - 0x20]
cmovb ecx, edi
cmp ebx, 0x61
lea edi, [edx - 0x20]
cmovb esi, ebx
cmp edx, 0x61
cmovb edi, edx
cmp eax, 0x41
sbb edx, edx
add eax, 0xffffffc9
and edx, 7
add edx, eax
shl edx, 4
cmp ecx, 0x41
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x37
sub edx, eax
add edx, ecx
mov ecx, 0x10ffff
shl edx, 4
cmp esi, 0x41
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x37
sub edx, eax
add edx, esi
mov esi, dword [esp + 0x18]
shl edx, 4
cmp edi, 0x41
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x37
sub edx, eax
mov eax, 0xff
add edx, edi
test ebp, ebp
cmovne eax, ecx
cmp edx, eax
jbe 0x78ecd5
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x4c
jmp 0x78eafa
mov edi, dword [esp + 0x24]
xor ebx, ebx
test dword [esp + 0x34], 0x2000000
jne 0x78eb00
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x25
jmp 0x78eb00
cmp dword [esp + 0x38], 0
jne 0x78eafa
mov al, byte [esi + 1]
cmp al, 0x3c
je 0x78eb59
cmp al, 0x27
je 0x78eb59
cmp al, 0x7b
jne 0x78ea75
mov al, byte [esi + 2]
lea edi, [esi + 2]
test al, al
je 0x78ea58
nop dword [eax + eax]
cmp al, 0x7d
je 0x78ea61
cmp al, 0x2d
je 0x78ea50
cmp al, 0x30
jb 0x78ea61
cmp al, 0x39
ja 0x78ea61
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x78ea40
mov ebx, 1
mov esi, ecx
jmp 0x78ea77
mov al, byte [edi]
test al, al
je 0x78ea58
cmp al, 0x7d
je 0x78ea58
mov ebx, 0x1c
jmp 0x78eafc
xor ebx, ebx
mov ch, byte [esi + 1]
lea eax, [esi + 1]
cmp ch, 0x2d
mov byte [esp + 0x13], ch
cmove esi, eax
xor eax, eax
mov cl, byte [esi + 1]
lea edi, [esi + 1]
cmp cl, 0x30
jb 0x78eabc
cmp cl, 0x39
ja 0x78eab8
cmp eax, 0xccccccb
jg 0x78ead2
mov esi, edi
lea ecx, [eax + eax*4]
lea edi, [esi + 1]
movzx eax, byte [esi]
lea eax, [eax + ecx*2]
mov cl, byte [edi]
add eax, 0xffffffd0
cmp cl, 0x30
jae 0x78ea94
mov ch, byte [esp + 0x13]
test ebx, ebx
je 0x78eb27
inc esi
cmp byte [esi], 0x7d
je 0x78eb27
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x39
jmp 0x78eafa
mov al, byte [esi + 1]
lea ecx, [esi + 1]
cmp al, 0x30
jb 0x78eaf0
nop dword [eax]
cmp al, 0x39
ja 0x78eaf0
mov esi, ecx
mov al, byte [esi + 1]
lea ecx, [esi + 1]
cmp al, 0x30
jae 0x78eae0
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x3d
xor ebx, ebx
mov edi, dword [esp + 0x24]
test dword [esp + 0x34], 0x20000000
je 0x78eb15
lea ecx, [ebx - 6]
cmp ecx, 5
ja 0x78eb15
add ebx, 0x17
mov ecx, dword [esp + 0x28]
mov eax, ebx
mov dword [edi], esi
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
add esp, 0x10
ret
test eax, eax
jne 0x78eb37
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x3a
jmp 0x78eafa
cmp ch, 0x2d
jne 0x78eb55
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jle 0x78eb50
mov eax, dword [esp + 0x2c]
mov dword [eax], 0xf
jmp 0x78eafa
sub ecx, eax
lea eax, [ecx + 1]
mov ebx, eax
jmp 0x78eba4
mov ebx, 0x1b
jmp 0x78eafc
cmp dword [esp + 0x38], 0
jne 0x78ec09
mov al, byte [esi + 1]
lea ecx, [esi + 1]
cmp al, 0x30
jb 0x78eb99
cmp al, 0x39
ja 0x78eb99
cmp ebx, 0xccccccb
jg 0x78ebe0
mov esi, ecx
lea ecx, [ebx - 6]
lea ecx, [ebx + ecx*4]
movzx eax, byte [esi]
lea ebx, [eax + ecx*2]
mov al, byte [esi + 1]
lea ecx, [esi + 1]
cmp al, 0x30
jae 0x78eb75
cmp ebx, 8
jl 0x78eba4
cmp ebx, dword [esp + 0x30]
jg 0x78ec09
neg ebx
cmp ebx, 0xc
jne 0x78eafc
cmp byte [esi + 1], 0x7b
jne 0x78eafc
lea eax, [esi + 2]
push eax
call fcn.00795ec0
mov edi, dword [esp + 0x28]
add esp, 4
test eax, eax
jne 0x78eb00
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x25
jmp 0x78eb00
mov al, byte [esi + 1]
lea ecx, [esi + 1]
cmp al, 0x30
jb 0x78eaf0
nop
cmp al, 0x39
ja 0x78eaf0
mov esi, ecx
mov al, byte [esi + 1]
lea ecx, [esi + 1]
cmp al, 0x30
jae 0x78ebf0
jmp 0x78eaf0
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
movzx edx, byte [eax]
cmp edx, 0x38
jae 0x78eafa
mov esi, dword [esp + 0x1c]
sub edx, 0x30
mov al, byte [esi + 1]
inc edi
cmp al, 0x30
jb 0x78ec40
cmp al, 0x37
ja 0x78ec40
movzx eax, byte [esi + 1]
inc esi
add edx, 0xfffffffa
lea edx, [eax + edx*8]
cmp edi, 2
jl 0x78ec24
test ebp, ebp
jne 0x78eafa
mov edi, dword [esp + 0x24]
xor ebx, ebx
cmp edx, 0xff
jbe 0x78eb00
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x33
jmp 0x78eb00
cmp byte [esi + 1], 0x7b
je 0x78ec7e
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x51
jmp 0x78eafa
cmp byte [esi + 2], 0x7d
lea eax, [esi + 2]
jne 0x78ec96
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x56
jmp 0x78eafa
mov esi, eax
xor edx, edx
mov al, byte [esi]
cmp al, 0x30
jb 0x78ecd0
mov edi, 0x10ffff
cmp al, 0x37
ja 0x78ecd0
inc esi
movzx eax, al
test edx, edx
jne 0x78ecb6
cmp eax, 0x30
je 0x78ecca
add eax, 0xffffffd0
test ebp, ebp
lea edx, [eax + edx*8]
mov eax, 0xff
cmovne eax, edi
cmp edx, eax
ja 0x78ed03
mov al, byte [esi]
cmp al, 0x30
jae 0x78eca5
cmp byte [esi], 0x7d
jne 0x78ed2b
test ebp, ebp
je 0x78eafa
mov edi, dword [esp + 0x24]
lea eax, [edx - 0xd800]
xor ebx, ebx
cmp eax, 0x7ff
ja 0x78eb00
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x49
jmp 0x78eb00
mov al, byte [esi]
cmp al, 0x30
jb 0x78ed1c
nop dword [eax]
cmp al, 0x37
ja 0x78ed1c
mov al, byte [esi + 1]
inc esi
cmp al, 0x30
jae 0x78ed10
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x22
jmp 0x78eafa
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x50
jmp 0x78eafa
test dword [esp + 0x34], 0x2000000
je 0x78ed9f
movzx ecx, byte [esi + 1]
test byte [ecx + 0x8582a8], 8
je 0x78eafa
movzx edi, byte [esi + 2]
test byte [edi + 0x8582a8], 8
je 0x78eafa
cmp ecx, 0x61
lea eax, [ecx - 0x20]
cmovb eax, ecx
cmp edi, 0x61
lea ecx, [edi - 0x20]
cmovb ecx, edi
cmp eax, 0x41
sbb edx, edx
add eax, 0xffffffc9
and edx, 7
add edx, eax
shl edx, 4
cmp ecx, 0x41
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x37
sub edx, eax
add edx, ecx
add esi, 2
jmp 0x78eafa
cmp byte [esi + 1], 0x7b
jne 0x78ee5d
mov al, byte [esi + 2]
add esi, 2
cmp al, 0x7d
jne 0x78edc2
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x56
jmp 0x78eafa
movzx eax, al
xor edx, edx
test byte [eax + 0x8582a8], 8
je 0x78ee14
mov edi, 0x10ffff
inc esi
test edx, edx
jne 0x78eddf
cmp eax, 0x30
je 0x78ee08
cmp eax, 0x61
lea ecx, [eax - 0x20]
cmovb ecx, eax
cmp ecx, 0x41
sbb eax, eax
shl edx, 4
and eax, 0xfffffff9
add eax, 0x37
sub edx, eax
mov eax, 0xff
add edx, ecx
test ebp, ebp
cmovne eax, edi
cmp edx, eax
ja 0x78ee2c
movzx eax, byte [esi]
test byte [eax + 0x8582a8], 8
jne 0x78edd5
cmp byte [esi], 0x7d
je 0x78ecd5
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x4f
jmp 0x78eafa
movzx eax, byte [esi]
test byte [eax + 0x8582a8], 8
je 0x78ed1c
nop dword [eax]
movzx eax, byte [esi + 1]
inc esi
test byte [eax + 0x8582a8], 8
jne 0x78ee40
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x22
jmp 0x78eafa
xor edx, edx
nop
movzx eax, byte [esi + 1]
inc edi
test byte [eax + 0x8582a8], 8
je 0x78eafa
movzx eax, byte [esi + 1]
inc esi
cmp eax, 0x61
lea ecx, [eax - 0x20]
cmovb ecx, eax
cmp ecx, 0x41
sbb eax, eax
shl edx, 4
and eax, 0xfffffff9
add eax, 0x37
sub edx, eax
add edx, ecx
cmp edi, 2
jl 0x78ee60
jmp 0x78eafa
movzx edx, byte [esi + 1]
inc esi
test edx, edx
jne 0x78eeb4
mov eax, dword [esp + 0x2c]
mov dword [eax], 2
jmp 0x78eafa
cmp edx, 0x7f
jbe 0x78eec8
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x44
jmp 0x78eafa
lea eax, [edx - 0x61]
cmp eax, 0x19
ja 0x78eed3
sub edx, 0x20
xor edx, 0x40
jmp 0x78eafa
mov edi, dword [esp + 0x24]
xor ebx, ebx
test byte [esp + 0x34], 0x40
je 0x78eb00
mov eax, dword [esp + 0x2c]
mov dword [eax], 3
jmp 0x78eb00