Function at 0x52ac60
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x10]
push edi
shr ebx, 0xb
xor edi, edi
mov esi, dword [esi]
movzx edx, byte [esi + 1]
add esi, 2
and ebx, 1
je 0x52ad64
cmp edx, 0xc0
jb 0x52ad64
movzx eax, byte [esi]
and eax, 0x3f
test dl, 0x20
jne 0x52aca8
and edx, 0x1f
shl edx, 6
or edx, eax
inc esi
jmp 0x52ad64
test dl, 0x10
jne 0x52acc9
and edx, 0xf
shl edx, 6
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 6
and eax, 0x3f
or edx, eax
add esi, 2
jmp 0x52ad64
test dl, 8
jne 0x52acf3
and edx, 7
shl edx, 6
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 6
and eax, 0x3f
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 6
and eax, 0x3f
or edx, eax
add esi, 3
jmp 0x52ad64
test dl, 4
jne 0x52ad29
and edx, 3
shl edx, 6
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 6
and eax, 0x3f
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 6
and eax, 0x3f
or edx, eax
movzx eax, byte [esi + 3]
shl edx, 6
and eax, 0x3f
or edx, eax
add esi, 4
jmp 0x52ad64
and edx, 1
shl edx, 6
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 6
and eax, 0x3f
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 6
and eax, 0x3f
or edx, eax
movzx eax, byte [esi + 3]
shl edx, 6
and eax, 0x3f
or edx, eax
movzx eax, byte [esi + 4]
shl edx, 6
and eax, 0x3f
or edx, eax
add esi, 5
dec esi
test edx, edx
jne 0x52ad7c
mov eax, dword [esp + 0x1c]
mov dword [eax], 1
mov ecx, dword [esp + 0x24]
jmp 0x52afb5
lea eax, [edx - 0x30]
cmp eax, 0x4a
ja 0x52ad73
lea ecx, [edx - 0x30]
movsx edi, word [ecx*2 + 0x5f8e88]
push ebp
test edi, edi
je 0x52ada1
jle 0x52b0ee
mov edx, edi
jmp 0x52afae
cmp eax, 0x48
ja case.0x52adb1.10
movzx eax, byte [eax + 0x52b3e0]
jmp dword [eax*4 + 0x52b3b8]
mov eax, dword [esp + 0x20]
mov dword [eax], 0x25
jmp 0x52afae
test dword [esp + 0x28], 0x2000000
je case.0x52adb1.28
movzx eax, byte [esi + 1]
test byte [eax + 0x5f9ea0], 8
je 0x52afae
movzx ecx, byte [esi + 2]
test byte [ecx + 0x5f9ea0], 8
je 0x52afae
movzx edi, byte [esi + 3]
test byte [edi + 0x5f9ea0], 8
je 0x52afae
lea ebp, [esi + 4]
mov dword [esp + 0x10], ebp
movzx ebp, byte [ebp]
test byte [ebp + 0x5f9ea0], 8
je 0x52afae
mov edx, eax
cmp edx, 0x61
jb 0x52ae26
sub edx, 0x20
cmp edx, 0x41
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x37
sub edx, eax
cmp ecx, 0x61
jb 0x52ae3b
sub ecx, 0x20
cmp ecx, 0x41
sbb eax, eax
shl edx, 4
and eax, 0xfffffff9
add eax, 0x37
sub edx, eax
add edx, ecx
cmp edi, 0x61
jb 0x52ae55
sub edi, 0x20
cmp edi, 0x41
sbb eax, eax
shl edx, 4
and eax, 0xfffffff9
add eax, 0x37
sub edx, eax
add edx, edi
cmp ebp, 0x61
jb 0x52ae6f
sub ebp, 0x20
mov esi, dword [esp + 0x10]
cmp ebp, 0x41
sbb eax, eax
shl edx, 4
and eax, 0xfffffff9
add eax, 0x37
sub edx, eax
mov eax, ebx
add edx, ebp
neg eax
sbb eax, eax
and eax, 0x10ff00
add eax, 0xff
cmp edx, eax
jbe 0x52b2aa
mov eax, dword [esp + 0x20]
mov dword [eax], 0x4c
jmp 0x52afae
mov ecx, dword [esp + 0x28]
xor edi, edi
test ecx, 0x2000000
jne 0x52afb4
mov eax, dword [esp + 0x20]
mov dword [eax], 0x25
jmp 0x52afb4
cmp dword [esp + 0x2c], 0
jne 0x52afae
mov al, byte [esi + 1]
cmp al, 0x3c
je 0x52b00f
cmp al, 0x27
je 0x52b00f
cmp al, 0x7b
jne 0x52af31
mov al, byte [esi + 2]
lea ecx, [esi + 2]
test al, al
je 0x52af18
lea esp, [esp]
cmp al, 0x7d
je 0x52af20
cmp al, 0x2d
je 0x52af10
cmp al, 0x30
jb 0x52af20
cmp al, 0x39
ja 0x52af20
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x52af00
mov ebx, 1
inc esi
jmp 0x52af33
mov al, byte [ecx]
test al, al
je 0x52af18
cmp al, 0x7d
je 0x52af18
mov edi, 0x1c
jmp 0x52afb0
xor ebx, ebx
cmp byte [esi + 1], 0x2d
jne 0x52af41
mov ebp, 1
inc esi
jmp 0x52af43
xor ebp, ebp
mov cl, byte [esi + 1]
lea edi, [esi + 1]
xor eax, eax
cmp cl, 0x30
jb 0x52af74
cmp cl, 0x39
ja 0x52af74
cmp eax, 0xccccccb
jg 0x52af8a
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 0x52af50
test ebx, ebx
je 0x52afdb
inc esi
cmp byte [esi], 0x7d
je 0x52afdb
mov eax, dword [esp + 0x20]
mov dword [eax], 0x39
jmp 0x52afae
mov al, byte [esi + 1]
lea ecx, [esi + 1]
cmp al, 0x30
jb 0x52afa4
cmp al, 0x39
ja 0x52afa4
mov esi, ecx
mov al, byte [esi + 1]
lea ecx, [esi + 1]
cmp al, 0x30
jae 0x52af94
mov eax, dword [esp + 0x20]
mov dword [eax], 0x3d
xor edi, edi
mov ecx, dword [esp + 0x28]
pop ebp
test ecx, 0x20000000
je 0x52afc8
lea ecx, [edi - 6]
cmp ecx, 5
ja 0x52afc8
add edi, 0x17
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov dword [ecx], edx
pop ebx
pop ecx
ret
test eax, eax
jne 0x52afeb
mov eax, dword [esp + 0x20]
mov dword [eax], 0x3a
jmp 0x52afae
test ebp, ebp
je 0x52b008
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jle 0x52b003
mov eax, dword [esp + 0x20]
mov dword [eax], 0xf
jmp 0x52afae
sub ecx, eax
lea eax, [ecx + 1]
mov edi, eax
jmp 0x52b0ee
mov edi, 0x1b
jmp 0x52afb0
cmp dword [esp + 0x2c], 0
jne 0x52b06f
mov al, byte [esi + 1]
lea ebp, [esi + 1]
mov dword [esp + 0x10], esi
cmp al, 0x30
jb 0x52b058
jmp 0x52b030
cmp al, 0x39
ja 0x52b058
cmp ecx, 0xccccccb
jg 0x52b0c5
mov esi, ebp
lea ecx, [ecx + ecx*4]
lea ecx, [ecx - 0x18]
lea ebp, [esi + 1]
movzx eax, byte [esi]
lea ecx, [eax + ecx*2]
mov al, byte [ebp]
cmp al, 0x30
jae 0x52b030
cmp ecx, 8
jl 0x52b0ec
cmp ecx, dword [esp + 0x24]
jle 0x52b0ec
mov esi, dword [esp + 0x10]
movzx edx, byte [esi]
cmp edx, 0x38
jae 0x52afae
sub edx, 0x30
mov edi, edi
mov al, byte [esi + 1]
inc edi
cmp al, 0x30
jb 0x52b09c
cmp al, 0x37
ja 0x52b09c
movzx eax, byte [esi + 1]
inc esi
add edx, 0xfffffffa
lea edx, [eax + edx*8]
cmp edi, 2
jl 0x52b080
test ebx, ebx
jne 0x52afae
mov ecx, dword [esp + 0x28]
xor edi, edi
cmp edx, 0xff
jbe 0x52afb4
mov eax, dword [esp + 0x20]
mov dword [eax], 0x33
jmp 0x52afb4
mov al, byte [esi + 1]
lea ecx, [esi + 1]
cmp al, 0x30
jb 0x52afa4
cmp al, 0x39
ja 0x52afa4
mov esi, ecx
mov al, byte [esi + 1]
lea ecx, [esi + 1]
cmp al, 0x30
jae 0x52b0d3
jmp 0x52afa4
mov edi, ecx
neg edi
cmp edi, 0xc
jne 0x52afb0
cmp byte [esi + 1], 0x7b
jne 0x52afb0
lea eax, [esi + 2]
push eax
call fcn.005321b0
mov ecx, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x52afb4
mov eax, dword [esp + 0x20]
mov dword [eax], 0x25
jmp 0x52afb4
cmp byte [esi + 1], 0x7b
je 0x52b13f
mov eax, dword [esp + 0x20]
mov dword [eax], 0x51
jmp 0x52afae
cmp byte [esi + 2], 0x7d
lea eax, [esi + 2]
jne 0x52b157
mov eax, dword [esp + 0x20]
mov dword [eax], 0x56
jmp 0x52afae
mov esi, eax
xor edx, edx
mov al, byte [esi]
cmp al, 0x30
jb 0x52b192
cmp al, 0x37
ja 0x52b192
inc esi
movzx eax, al
test edx, edx
jne 0x52b172
cmp eax, 0x30
je 0x52b18c
add eax, 0xffffffd0
lea edx, [eax + edx*8]
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0x10ff00
add eax, 0xff
cmp edx, eax
ja 0x52b1aa
mov al, byte [esi]
cmp al, 0x30
jae 0x52b161
cmp byte [esi], 0x7d
je 0x52b2aa
mov eax, dword [esp + 0x20]
mov dword [eax], 0x50
jmp 0x52afae
mov al, byte [esi]
cmp al, 0x30
jb 0x52b1bc
cmp al, 0x37
ja 0x52b1bc
mov al, byte [esi + 1]
inc esi
cmp al, 0x30
jae 0x52b1b0
mov eax, dword [esp + 0x20]
mov dword [eax], 0x22
jmp 0x52afae
test dword [esp + 0x28], 0x2000000
je 0x52b230
movzx eax, byte [esi + 1]
test byte [eax + 0x5f9ea0], 8
je 0x52afae
movzx ecx, byte [esi + 2]
test byte [ecx + 0x5f9ea0], 8
je 0x52afae
mov edx, eax
cmp edx, 0x61
jb 0x52b201
sub edx, 0x20
cmp edx, 0x41
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x37
sub edx, eax
cmp ecx, 0x61
jb 0x52b216
sub ecx, 0x20
cmp ecx, 0x41
sbb eax, eax
shl edx, 4
and eax, 0xfffffff9
add eax, 0x37
sub edx, eax
add edx, ecx
add esi, 2
jmp 0x52afae
cmp byte [esi + 1], 0x7b
jne 0x52b31c
mov al, byte [esi + 2]
add esi, 2
cmp al, 0x7d
jne 0x52b253
mov eax, dword [esp + 0x20]
mov dword [eax], 0x56
jmp 0x52afae
movzx ecx, al
xor edx, edx
test byte [ecx + 0x5f9ea0], 8
je 0x52b2a5
inc esi
test edx, edx
jne 0x52b26b
cmp ecx, 0x30
je 0x52b299
cmp ecx, 0x61
jb 0x52b273
sub ecx, 0x20
cmp ecx, 0x41
sbb eax, eax
shl edx, 4
and eax, 0xfffffff9
add eax, 0x37
sub edx, eax
mov eax, ebx
add edx, ecx
neg eax
sbb eax, eax
and eax, 0x10ff00
add eax, 0xff
cmp edx, eax
ja 0x52b2d8
movzx ecx, byte [esi]
test byte [ecx + 0x5f9ea0], 8
jne 0x52b261
cmp byte [esi], 0x7d
jne 0x52b30d
test ebx, ebx
je 0x52afae
mov ecx, dword [esp + 0x28]
lea eax, [edx - 0xd800]
xor edi, edi
cmp eax, 0x7ff
ja 0x52afb4
mov eax, dword [esp + 0x20]
mov dword [eax], 0x49
jmp 0x52afb4
movzx eax, byte [esi]
test byte [eax + 0x5f9ea0], 8
je 0x52b1bc
jmp 0x52b2f0
movzx eax, byte [esi + 1]
inc esi
test byte [eax + 0x5f9ea0], 8
jne 0x52b2f0
mov eax, dword [esp + 0x20]
mov dword [eax], 0x22
jmp 0x52afae
mov eax, dword [esp + 0x20]
mov dword [eax], 0x4f
jmp 0x52afae
xor edx, edx
mov edi, edi
movzx eax, byte [esi + 1]
inc edi
test byte [eax + 0x5f9ea0], 8
je 0x52afae
movzx ecx, byte [esi + 1]
inc esi
cmp ecx, 0x61
jb 0x52b33f
sub ecx, 0x20
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 0x52b320
jmp 0x52afae
movzx edx, byte [esi + 1]
inc esi
test edx, edx
jne 0x52b373
mov eax, dword [esp + 0x20]
mov dword [eax], 2
jmp 0x52afae
cmp edx, 0x7f
jbe 0x52b387
mov eax, dword [esp + 0x20]
mov dword [eax], 0x44
jmp 0x52afae
lea eax, [edx - 0x61]
cmp eax, 0x19
ja 0x52b392
sub edx, 0x20
xor edx, 0x40
jmp 0x52afae
mov ecx, dword [esp + 0x28]
xor edi, edi
test cl, 0x40
je 0x52afb4
mov eax, dword [esp + 0x20]
mov dword [eax], 3
jmp 0x52afb4