Function at 0x10046720
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 0xffffffffffffffff
push 0x101ae669
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x100
mov eax, dword [0x10221008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0xec], edi
mov dword [ebp - 0xf0], 0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 0x24]
lea ecx, [eax*4]
mov eax, 0x55555556
imul ecx
mov eax, edx
add edx, 0x20
shr eax, 0x1f
add eax, edx
push eax
mov dword [ebp - 0x90], eax
call fcn.1018bdcd
movups xmm0, xmmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dword [ebp - 0xe0], eax
lea ecx, [ebx + 0x14]
mov eax, dword [ebx + 0x24]
add esp, 4
cmp dword [ebx + 0x28], 0x10
movups xmmword [ebp - 0x60], xmm0
cmovae ecx, dword [ebx + 0x14]
xor edx, edx
movups xmm0, xmmword [0x101ee110]
mov dword [ebp - 0x74], eax
xor esi, esi
mov al, byte [0x101ee140]
movups xmmword [ebp - 0x50], xmm0
mov byte [ebp - 0x20], al
movups xmm0, xmmword [0x101ee120]
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xe4], ecx
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [0x101ee130]
movups xmmword [ebp - 0x30], xmm0
test eax, eax
jle 0x10046e19
mov edi, eax
neg edi
mov dword [ebp - 0xe8], edi
nop word [eax + eax]
movzx eax, byte [esi + ecx]
shr eax, 2
movzx eax, byte [ebp + eax - 0x60]
cmp edi, 0xffffffff
jne 0x1004685a
mov edi, dword [ebp - 0xe0]
mov byte [edi + edx], al
movzx eax, byte [esi + ecx]
and eax, 3
add eax, eax
movzx eax, byte [ebp + eax*8 - 0x60]
mov byte [edi + edx + 1], al
mov eax, edi
mov word [eax + edx + 2], 0x3d3d
jmp 0x10046906
cmp edi, 0xfffffffe
mov edi, dword [ebp - 0xe0]
mov byte [edi + edx], al
mov eax, dword [ebp - 0xe4]
movzx ecx, byte [esi + ecx]
movzx eax, byte [esi + eax + 1]
jne 0x100468ad
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ebp + ecx - 0x60]
mov ecx, edi
mov byte [ecx + edx + 1], al
mov ecx, dword [ebp - 0xe4]
movzx eax, byte [esi + ecx + 1]
and eax, 0xf
movzx eax, byte [ebp + eax*4 - 0x60]
mov byte [edi + edx + 2], al
mov eax, edi
mov byte [eax + edx + 3], 0x3d
jmp 0x10046906
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ebp + ecx - 0x60]
mov ecx, edi
mov byte [ecx + edx + 1], al
mov eax, dword [ebp - 0xe4]
movzx ecx, byte [esi + eax + 1]
movzx eax, byte [esi + eax + 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movzx eax, byte [ebp + ecx - 0x60]
mov ecx, edi
mov byte [ecx + edx + 2], al
mov ecx, dword [ebp - 0xe4]
movzx eax, byte [esi + ecx + 2]
and eax, 0x3f
movzx eax, byte [ebp + eax - 0x60]
mov byte [edi + edx + 3], al
mov eax, dword [ebp - 0xe0]
mov edi, dword [ebp - 0xe8]
add esi, 3
add edi, 3
add edx, 4
mov dword [ebp - 0xe8], edi
cmp esi, dword [ebp - 0x74]
jl 0x10046820
test edx, edx
jle 0x10046e13
cmp edx, dword [ebp - 0x90]
jge 0x10046e13
mov ecx, eax
mov byte [edx + eax], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046941
mov esi, dword [ebp - 0xe0]
sub ecx, edx
push ecx
push esi
lea ecx, [ebx + 0x14]
call fcn.10014010
push esi
call fcn.1018bacf
mov eax, dword [ebx + 0x24]
add esp, 4
mov esi, dword [ebx + 0x28]
xor ecx, ecx
mov edi, dword [ebx + 0x14]
test eax, eax
je 0x1004699c
cmp esi, 0x10
lea eax, [ebx + 0x14]
cmovae eax, edi
cmp byte [eax + ecx], 0x3d
jne 0x10046994
cmp esi, 0x10
lea eax, [ebx + 0x14]
cmovae eax, edi
mov byte [eax + ecx], 0x7c
mov esi, dword [ebx + 0x28]
mov edi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x24]
inc ecx
cmp ecx, eax
jb 0x10046972
lea ecx, [ebp - 0x70]
cmp esi, 0x10
push ecx
lea edx, [ebx + 0x14]
cmovae edx, edi
lea ecx, [ebp - 0xd8]
push eax
call fcn.100a77f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
call fcn.1009f300
push 0xfde9
lea edx, [ebp - 0xd8]
lea ecx, [ebp - 0xc0]
call fcn.1009e670
add esp, 0xc
mov byte [ebp - 4], 3
mov edi, dword [ebx + 0x24]
and edi, 0x80000001
jns 0x100469f1
dec edi
or edi, 0xfffffffe
inc edi
mov ecx, 0xf
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
mov byte [ebp - 4], 4
xor esi, esi
cmp dword [ebp - 0xb0], esi
jbe 0x10046aae
nop
mov eax, esi
and eax, 1
cmp eax, edi
jne 0x10046aa5
cmp dword [ebp - 0xac], 0x10
lea eax, [ebp - 0xc0]
mov edx, dword [ebp - 0x98]
cmovae eax, dword [ebp - 0xc0]
mov al, byte [eax + esi]
mov byte [ebp - 0x74], al
cmp edx, ecx
jae 0x10046a83
lea eax, [edx + 1]
cmp ecx, 0x10
mov cl, byte [ebp - 0x74]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xa8]
cmovae eax, dword [ebp - 0xa8]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x10046a9f
push dword [ebp - 0x74]
mov byte [ebp - 0x90], 0
push dword [ebp - 0x90]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.1004d400
mov ecx, dword [ebp - 0x94]
inc esi
cmp esi, dword [ebp - 0xb0]
jb 0x10046a30
movups xmm3, xmmword [ebp - 0xa8]
lea ecx, [ebp - 0xc0]
movq xmm1, qword [ebp - 0xb0]
movups xmm2, xmmword [ebp - 0xc0]
movups xmmword [ebp - 0xc0], xmm3
movq xmm0, qword [ebp - 0x98]
movd eax, xmm3
movq qword [ebp - 0xb0], xmm0
cmp dword [ebp - 0xac], 0x10
mov dword [ebp - 0xc0], eax
push dword [ebp - 0xb0]
cmovae ecx, eax
movq qword [ebp - 0xfc], xmm1
push ecx
lea ecx, [ebx + 0x14]
movq qword [ebp - 0x98], xmm1
movups xmmword [ebp - 0x10c], xmm2
movups xmmword [ebp - 0xa8], xmm2
call fcn.10049280
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c]
push dword [ebx + 0x24]
call fcn.10048e20
mov edx, dword [ebx + 0x28]
lea ecx, [ebx + 0x14]
mov edi, dword [ebx + 0x14]
cmp edx, 0x10
mov eax, dword [ebx + 0x24]
cmovae ecx, edi
add eax, ecx
cmp edx, 0x10
lea ecx, [ebx + 0x14]
mov esi, eax
cmovae ecx, edi
cmp esi, ecx
je 0x10046bda
mov dl, byte [eax - 1]
mov ecx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x78]
mov byte [ebp - 0x90], dl
cmp ecx, edi
jae 0x10046bb6
lea eax, [ecx + 1]
cmp edi, 0x10
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
lea eax, [esi - 1]
mov edx, dword [ebx + 0x28]
mov edi, dword [ebx + 0x14]
jmp 0x10046b6b
push dword [ebp - 0x90]
mov byte [ebp - 0x74], 0
push dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.1004d400
mov edx, dword [ebx + 0x28]
lea eax, [esi - 1]
mov edi, dword [ebx + 0x14]
jmp 0x10046b6b
mov edi, dword [ebp - 0x7c]
cmp edi, 5
jbe 0x10046c39
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
mov edx, dword [ebp - 0x8c]
lea ecx, [ebp - 0x8c]
cmovae eax, edx
cmovae ecx, edx
mov al, byte [eax + 5]
mov byte [ebp - 0xd9], al
lea eax, [ebp - 0x8c]
cmovae eax, edx
mov dl, byte [ebp - 0xd9]
movzx eax, byte [edi + eax - 5]
mov byte [ecx + 5], al
lea ecx, [ebp - 0x8c]
cmp dword [ebp - 0x78], 0x10
mov eax, dword [ebp - 0x7c]
cmovae ecx, dword [ebp - 0x8c]
mov byte [eax + ecx - 5], dl
mov edi, dword [ebp - 0x7c]
test edi, edi
je 0x10046c8f
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
mov edx, dword [ebp - 0x8c]
lea ecx, [ebp - 0x8c]
cmovae eax, edx
cmovae ecx, edx
mov al, byte [eax]
mov byte [ebp - 0xd9], al
lea eax, [ebp - 0x8c]
cmovae eax, edx
mov dl, byte [ebp - 0xd9]
movzx eax, byte [edi + eax - 1]
mov byte [ecx], al
lea ecx, [ebp - 0x8c]
cmp dword [ebp - 0x78], 0x10
mov eax, dword [ebp - 0x7c]
cmovae ecx, dword [ebp - 0x8c]
mov byte [eax + ecx - 1], dl
push ecx
lea ecx, [ebp - 0x8c]
call fcn.100ab030
mov esi, dword [ebp - 0xec]
add esp, 4
movups xmm0, xmmword [ebp - 0x8c]
mov byte [ebp - 0x8c], 0
mov dword [ebp - 0xf0], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x7c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 4], 4
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xf8]
cmp edx, 0x10
jb 0x10046d3e
mov ecx, dword [ebp - 0x10c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10046d34
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046d34
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1018b735
add esp, 8
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xac]
cmp edx, 0x10
jb 0x10046d99
mov ecx, dword [ebp - 0xc0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10046d8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046d8f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1018b735
add esp, 8
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd8]
call fcn.10004a00
mov byte [ebp - 4], 0
mov edx, dword [ebx + 0x28]
cmp edx, 0x10
jb 0x10046dfd
mov ecx, dword [ebx + 0x14]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10046df3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046df3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1018b735
add esp, 8
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0xf
mov byte [ebx + 0x14], 0
mov eax, esi
jmp 0x10046e90
mov edi, dword [ebp - 0xec]
push dword [ebp - 0xe0]
call fcn.1018bacf
mov dword [edi + 0x10], 0
add esp, 4
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 0xf0], 1
mov byte [ebp - 4], 0
mov edx, dword [ebx + 0x28]
cmp edx, 0x10
jb 0x10046e7c
mov ecx, dword [ebx + 0x14]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10046e72
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046e72
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1018b735
add esp, 8
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0xf
mov byte [ebx + 0x14], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1018b6f4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x24