Function at 0x51abc0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
shr eax, 0xb
and eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [edi]
movzx edx, byte [ecx + 1]
add ecx, 2
test eax, eax
je 0x51accc
cmp edx, 0xc0
jb 0x51accc
movzx eax, byte [ecx]
and eax, 0x3f
test dl, 0x20
jne 0x51ac10
and edx, 0x1f
shl edx, 6
or edx, eax
inc ecx
jmp 0x51accc
test dl, 0x10
jne 0x51ac31
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 0x51accc
test dl, 8
jne 0x51ac5b
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 0x51accc
test dl, 4
jne 0x51ac91
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 0x51accc
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 [ebp - 0x14], eax
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
test edx, edx
jne 0x51acec
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x51af2e
lea eax, [edx - 0x30]
cmp eax, 0x4a
ja 0x51af2e
lea ebx, [edx - 0x30]
movsx edi, word [ebx*2 + 0x58f1e8]
test edi, edi
je 0x51ad1a
cmovg edx, edi
mov eax, edi
neg eax
xor ebx, ebx
test edi, edi
cmovle ebx, eax
jmp 0x51afd0
cmp eax, 0x48
ja case.0x51ad2a.10
movzx eax, byte [eax + 0x51b340]
jmp dword [eax*4 + 0x51b318]
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x25
jmp 0x51af29
test dword [ebp + 0x18], 0x2000000
je case.0x51ad2a.28
movzx ecx, byte [esi + 1]
test byte [ecx + 0x58f338], 8
je 0x51af29
movzx edi, byte [esi + 2]
test byte [edi + 0x58f338], 8
je 0x51af29
movzx ebx, byte [esi + 3]
test byte [ebx + 0x58f338], 8
je 0x51af29
lea eax, [esi + 4]
mov dword [ebp - 0x10], eax
movzx eax, byte [eax]
mov dword [ebp - 0xc], eax
test byte [eax + 0x58f338], 8
je 0x51af29
mov edx, dword [ebp - 0xc]
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 [ebp - 0x10]
shl edx, 4
cmp edi, 0x41
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x37
sub edx, eax
mov eax, 0xff
add edx, edi
mov edi, dword [ebp - 8]
test edi, edi
cmovne eax, ecx
cmp edx, eax
jbe 0x51b100
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x4c
jmp 0x51af29
mov edi, dword [ebp + 8]
xor ebx, ebx
test dword [ebp + 0x18], 0x2000000
jne 0x51af2e
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x25
jmp 0x51af2e
cmp dword [ebp + 0x1c], 0
jne 0x51af29
mov al, byte [esi + 1]
cmp al, 0x3c
je 0x51af81
cmp al, 0x27
je 0x51af81
cmp al, 0x7b
jne 0x51aea9
mov al, byte [esi + 2]
lea edi, [esi + 2]
test al, al
je 0x51ae8c
cmp al, 0x7d
je 0x51ae95
cmp al, 0x2d
je 0x51ae84
cmp al, 0x30
jb 0x51ae95
cmp al, 0x39
ja 0x51ae95
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x51ae74
mov ebx, 1
mov esi, ecx
jmp 0x51aeab
mov al, byte [edi]
test al, al
je 0x51ae8c
cmp al, 0x7d
je 0x51ae8c
mov ebx, 0x1c
jmp 0x51af2b
xor ebx, ebx
mov ch, byte [esi + 1]
lea eax, [esi + 1]
cmp ch, 0x2d
mov byte [ebp - 1], ch
cmove esi, eax
xor eax, eax
mov cl, byte [esi + 1]
lea edi, [esi + 1]
cmp cl, 0x30
jb 0x51aeee
cmp cl, 0x39
ja 0x51aeeb
cmp eax, 0xccccccb
jg 0x51af03
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 0x51aec7
mov ch, byte [ebp - 1]
test ebx, ebx
je 0x51af52
inc esi
cmp byte [esi], 0x7d
je 0x51af52
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x39
jmp 0x51af29
mov al, byte [esi + 1]
lea ecx, [esi + 1]
cmp al, 0x30
jb 0x51af20
nop dword [eax]
cmp al, 0x39
ja 0x51af20
mov esi, ecx
mov al, byte [esi + 1]
lea ecx, [esi + 1]
cmp al, 0x30
jae 0x51af10
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x3d
xor ebx, ebx
mov edi, dword [ebp + 8]
test dword [ebp + 0x18], 0x20000000
je 0x51af42
lea ecx, [ebx - 6]
cmp ecx, 5
ja 0x51af42
add ebx, 0x17
mov ecx, dword [ebp + 0xc]
mov eax, ebx
mov dword [edi], esi
pop edi
pop esi
mov dword [ecx], edx
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x51af61
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x3a
jmp 0x51af29
cmp ch, 0x2d
jne 0x51af7d
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jle 0x51af78
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xf
jmp 0x51af29
sub ecx, eax
lea eax, [ecx + 1]
mov ebx, eax
jmp 0x51afce
mov ebx, 0x1b
jmp 0x51af2b
cmp dword [ebp + 0x1c], 0
jne 0x51b02f
mov al, byte [esi + 1]
lea ecx, [esi + 1]
cmp al, 0x30
jb 0x51afc4
nop dword [eax]
cmp al, 0x39
ja 0x51afc4
cmp ebx, 0xccccccb
jg 0x51b008
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 0x51afa0
cmp ebx, 8
jl 0x51afce
cmp ebx, dword [ebp + 0x14]
jg 0x51b02f
neg ebx
cmp ebx, 0xc
jne 0x51af2b
cmp byte [esi + 1], 0x7b
jne 0x51af2b
lea eax, [esi + 2]
push eax
call fcn.00521ef0
mov edi, dword [ebp + 8]
add esp, 4
test eax, eax
jne 0x51af2e
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x25
jmp 0x51af2e
mov al, byte [esi + 1]
lea ecx, [esi + 1]
cmp al, 0x30
jb 0x51af20
cmp al, 0x39
ja 0x51af20
mov esi, ecx
mov al, byte [esi + 1]
lea ecx, [esi + 1]
cmp al, 0x30
jae 0x51b016
jmp 0x51af20
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
movzx edx, byte [eax]
cmp edx, 0x38
jae 0x51af29
mov esi, dword [ebp - 0x14]
sub edx, 0x30
mov al, byte [esi + 1]
inc edi
cmp al, 0x30
jb 0x51b063
cmp al, 0x37
ja 0x51b063
movzx eax, byte [esi + 1]
inc esi
add edx, 0xfffffffa
lea edx, [eax + edx*8]
cmp edi, 2
jl 0x51b047
mov edi, dword [ebp - 8]
test edi, edi
jne 0x51af29
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edx, 0xff
jbe 0x51af2e
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x33
jmp 0x51af2e
cmp byte [esi + 1], 0x7b
je 0x51b0a1
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x51
jmp 0x51af29
cmp byte [esi + 2], 0x7d
lea eax, [esi + 2]
jne 0x51b0b8
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x56
jmp 0x51af29
mov edi, dword [ebp - 8]
mov esi, eax
xor edx, edx
mov al, byte [esi]
cmp al, 0x30
jb 0x51b0fb
mov ebx, 0x10ffff
nop word [eax + eax]
cmp al, 0x37
ja 0x51b0fb
inc esi
movzx eax, al
test edx, edx
jne 0x51b0e1
cmp eax, 0x30
je 0x51b0f5
add eax, 0xffffffd0
test edi, edi
lea edx, [eax + edx*8]
mov eax, 0xff
cmovne eax, ebx
cmp edx, eax
ja 0x51b12c
mov al, byte [esi]
cmp al, 0x30
jae 0x51b0d0
cmp byte [esi], 0x7d
jne 0x51b14c
test edi, edi
je 0x51af29
mov edi, dword [ebp + 8]
lea eax, [edx - 0xd800]
xor ebx, ebx
cmp eax, 0x7ff
ja 0x51af2e
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x49
jmp 0x51af2e
mov al, byte [esi]
cmp al, 0x30
jb 0x51b13e
cmp al, 0x37
ja 0x51b13e
mov al, byte [esi + 1]
inc esi
cmp al, 0x30
jae 0x51b132
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x22
jmp 0x51af29
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x50
jmp 0x51af29
test dword [ebp + 0x18], 0x2000000
je 0x51b1be
movzx ecx, byte [esi + 1]
test byte [ecx + 0x58f338], 8
je 0x51af29
movzx edi, byte [esi + 2]
test byte [edi + 0x58f338], 8
je 0x51af29
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 0x51af29
cmp byte [esi + 1], 0x7b
jne 0x51b27c
mov al, byte [esi + 2]
add esi, 2
cmp al, 0x7d
jne 0x51b1e0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x56
jmp 0x51af29
mov edi, dword [ebp - 8]
xor edx, edx
movzx eax, al
test byte [eax + 0x58f338], 8
je 0x51b235
mov ebx, 0x10ffff
inc esi
test edx, edx
jne 0x51b200
cmp eax, 0x30
je 0x51b229
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 edi, edi
cmovne eax, ebx
cmp edx, eax
ja 0x51b24c
movzx eax, byte [esi]
test byte [eax + 0x58f338], 8
jne 0x51b1f6
cmp byte [esi], 0x7d
je 0x51b100
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x4f
jmp 0x51af29
movzx eax, byte [esi]
test byte [eax + 0x58f338], 8
je 0x51b13e
nop dword [eax]
movzx eax, byte [esi + 1]
inc esi
test byte [eax + 0x58f338], 8
jne 0x51b260
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x22
jmp 0x51af29
xor edx, edx
nop
movzx eax, byte [esi + 1]
inc edi
test byte [eax + 0x58f338], 8
je 0x51af29
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 0x51b280
jmp 0x51af29
movzx edx, byte [esi + 1]
inc esi
test edx, edx
jne 0x51b2d3
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
jmp 0x51af29
cmp edx, 0x7f
jbe 0x51b2e6
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x44
jmp 0x51af29
lea eax, [edx - 0x61]
cmp eax, 0x19
ja 0x51b2f1
sub edx, 0x20
xor edx, 0x40
jmp 0x51af29
mov edi, dword [ebp + 8]
xor ebx, ebx
test byte [ebp + 0x18], 0x40
je 0x51af2e
mov eax, dword [ebp + 0x10]
mov dword [eax], 3
jmp 0x51af2e