Function at 0x100216c0
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009a7f8
push 0x10055270
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
sub esp, 0xb8
mov eax, dword [0x100a1040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x98], edx
mov edi, ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0xa0], eax
test edi, edi
je 0x10021976
test eax, eax
je 0x10021976
test edx, edx
je 0x10021976
xor esi, esi
xorps xmm0, xmm0
movlpd qword [ebp - 0xa8], xmm0
mov dword [ebp - 4], esi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x88], 0x67452301
mov dword [ebp - 0x84], 0xefcdab89
mov dword [ebp - 0x80], 0x98badcfe
mov dword [ebp - 0x7c], 0x10325476
push edx
mov edx, edi
lea ecx, [ebp - 0x90]
call fcn.100224d0
add esp, 4
lea ecx, [ebp - 0x90]
call fcn.10022590
movups xmm0, xmmword [ebp - 0x38]
movups xmmword [ebp - 0xd4], xmm0
mov eax, dword [ebp - 0x98]
shr eax, 2
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xac], eax
test al, 1
je 0x100217c3
dec eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xac], eax
lea ecx, [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0xb4]
push ecx
push eax
mov edx, edi
lea ecx, [ebp - 0xd4]
call fcn.10021320
add esp, 0xc
test eax, eax
je 0x1002183a
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xb0]
push eax
mov edx, dword [ebp - 0x98]
push edx
mov edx, edi
lea ecx, [ebp - 0xd4]
call fcn.100214e0
add esp, 0xc
test eax, eax
je 0x1002183a
mov eax, dword [ebp - 0xb0]
xor eax, dword [ebp - 0xb4]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xb8]
xor eax, dword [ebp - 0xbc]
mov dword [ebp - 0xa4], eax
mov eax, 1
jmp 0x1002183c
xor eax, eax
test eax, eax
je 0x1002196b
xor eax, eax
mov dword [ebp - 0x9c], eax
xor edi, edi
mov dword [ebp - 0xc0], edi
mov esi, dword [ebp - 0xa0]
nop word [eax + eax]
mov dl, byte [ebp + eax - 0xa8]
inc eax
mov dword [ebp - 0x9c], eax
cmp eax, 8
jb 0x1002187c
mov byte [ebp - 0x91], 0
jmp 0x10021890
mov cl, byte [ebp + eax - 0xa8]
mov byte [ebp - 0x91], cl
inc eax
mov dword [ebp - 0x9c], eax
cmp eax, 8
jb 0x1002189e
mov byte [ebp - 0x92], 0
jmp 0x100218b2
mov cl, byte [ebp + eax - 0xa8]
mov byte [ebp - 0x92], cl
inc eax
mov dword [ebp - 0x9c], eax
movzx edx, dl
mov ecx, edx
shr ecx, 2
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [esi + edi*2], cx
movzx esi, byte [ebp - 0x91]
and edx, 3
shl edx, 4
mov ecx, esi
shr ecx, 4
or edx, ecx
movzx ecx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0xa0]
mov word [edx + edi*2 + 2], cx
movzx edx, byte [ebp - 0x92]
mov ecx, edx
shr ecx, 6
and esi, 0xf
shl esi, 2
or ecx, esi
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov esi, dword [ebp - 0xa0]
mov word [esi + edi*2 + 4], cx
and edx, 0x3f
movzx ecx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [esi + edi*2 + 6], cx
add edi, 4
mov dword [ebp - 0xc0], edi
cmp eax, 8
jb 0x10021860
mov dword [esi + edi*2 - 2], 0x3d
mov esi, 1
mov dword [ebp - 0xc4], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x10021978
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x10021978
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.100535a4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret