Function at 0x10037d40
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10096c09
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100b84c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x24], esi
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x18], 1
test edx, edx
jle 0x100380bc
lea esp, [esp]
mov al, byte [edi + esi]
inc edi
cmp edi, edx
je 0x10038076
mov cl, byte [edi + esi]
inc edi
mov byte [ebp - 0xd], cl
cmp edi, edx
je 0x1003802d
mov cl, byte [edi + esi]
movzx edx, al
mov eax, edx
shr eax, 2
mov byte [ebp - 0xf], cl
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebx + 0x10]
mov byte [ebp - 0xe], al
or eax, 0xffffffff
sub eax, ecx
inc edi
mov dword [ebp - 0x1c], edx
cmp eax, 1
jbe 0x10038023
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x10038023
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x10037e27
push ecx
push esi
mov ecx, ebx
call fcn.10015d70
mov edx, dword [ebp - 0x1c]
test esi, esi
je 0x10037e5f
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x10037e41
mov eax, dword [ebx]
jmp 0x10037e43
test esi, esi
jne 0x10037e1a
mov dword [ebx + 0x10], esi
cmp eax, 0x10
jb 0x10037e3a
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x10037e5f
mov eax, ebx
mov byte [eax], 0
jmp 0x10037e5f
mov eax, ebx
mov bl, byte [ebp - 0xe]
mov byte [eax + ecx], bl
mov ebx, dword [ebp - 0x14]
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x10037e59
mov eax, dword [ebx]
jmp 0x10037e5b
mov eax, ebx
mov byte [eax + esi], 0
movzx eax, byte [ebp - 0xd]
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x1c], eax
and edx, 3
shr eax, 4
shl edx, 4
or eax, edx
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
or eax, 0xffffffff
sub eax, ecx
mov byte [ebp - 0xe], dl
cmp eax, 1
jbe 0x10038023
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x10038023
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x10037ebb
push ecx
push esi
mov ecx, ebx
call fcn.10015d70
mov dl, byte [ebp - 0xe]
test esi, esi
je 0x10037eed
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x10037ed5
mov eax, dword [ebx]
jmp 0x10037ed7
test esi, esi
jne 0x10037eae
mov dword [ebx + 0x10], esi
cmp eax, 0x10
jb 0x10037ece
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x10037eed
mov eax, ebx
mov byte [eax], 0
jmp 0x10037eed
mov eax, ebx
mov byte [eax + ecx], dl
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x10037ee7
mov eax, dword [ebx]
jmp 0x10037ee9
mov eax, ebx
mov byte [eax + esi], 0
movzx edx, byte [ebp - 0xf]
mov ecx, dword [ebp - 0x1c]
and ecx, 0xf
mov eax, edx
shr eax, 6
shl ecx, 2
or eax, ecx
mov ecx, dword [ebx + 0x10]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0xf], al
or eax, 0xffffffff
sub eax, ecx
mov dword [ebp - 0x20], edx
cmp eax, 1
jbe 0x10038023
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x10038023
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x10037f4e
push ecx
push esi
mov ecx, ebx
call fcn.10015d70
mov edx, dword [ebp - 0x20]
test esi, esi
je 0x10037f86
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x10037f68
mov eax, dword [ebx]
jmp 0x10037f6a
test esi, esi
jne 0x10037f41
mov dword [ebx + 0x10], esi
cmp eax, 0x10
jb 0x10037f61
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x10037f86
mov eax, ebx
mov byte [eax], 0
jmp 0x10037f86
mov eax, ebx
mov bl, byte [ebp - 0xf]
mov byte [ecx + eax], bl
mov ebx, dword [ebp - 0x14]
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x10037f80
mov eax, dword [ebx]
jmp 0x10037f82
mov eax, ebx
mov byte [esi + eax], 0
mov ecx, dword [ebx + 0x10]
and edx, 0x3f
or eax, 0xffffffff
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
sub eax, ecx
mov byte [ebp - 0xf], dl
cmp eax, 1
jbe 0x10038023
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x10038023
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x10037fcf
push ecx
push esi
mov ecx, ebx
call fcn.10015d70
mov dl, byte [ebp - 0xf]
test esi, esi
je 0x10038001
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x10037fe9
mov eax, dword [ebx]
jmp 0x10037feb
test esi, esi
jne 0x10037fc2
mov dword [ebx + 0x10], esi
cmp eax, 0x10
jb 0x10037fe2
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x10038001
mov eax, ebx
mov byte [eax], 0
jmp 0x10038001
mov eax, ebx
mov byte [ecx + eax], dl
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x10037ffb
mov eax, dword [ebx]
jmp 0x10037ffd
mov eax, ebx
mov byte [esi + eax], 0
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x24]
cmp edi, edx
jl 0x10037db0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.10088f7b
movzx esi, al
mov eax, esi
shr eax, 2
mov ecx, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
push 1
call fcn.100205a0
movzx edi, byte [ebp - 0xd]
mov eax, edi
shr eax, 4
and esi, 3
shl esi, 4
or eax, esi
mov ecx, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
push 1
call fcn.100205a0
and edi, 0xf
movzx eax, byte [edi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
jmp 0x100380a8
movzx esi, al
mov eax, esi
shr eax, 2
mov ecx, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
push 1
call fcn.100205a0
and esi, 3
shl esi, 4
mov ecx, ebx
movzx eax, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
push 1
call fcn.100205a0
push 0x3d
push 1
mov ecx, ebx
call fcn.100205a0
push 0x3d
push 1
mov ecx, ebx
call fcn.100205a0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret