Function at 0x10017e80
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov edi, dword [esp + 0x4c]
cmp byte [esp + 0x50], 0
mov esi, dword [esp + 0x54]
call 0x10017e99
pop eax
mov ebx, 0x10100b48
mov dword [esp + 0x2c], eax
mov eax, 0x10100a48
lea ecx, [edi + edi*2]
cmovne ebx, eax
shr ecx, 2
push ecx
push dword [esi + 8]
push esi
call fcn.1000f580
mov edx, esi
add esp, 0xc
mov eax, edi
mov ecx, 8
mov esi, edi
mov edi, dword [edx + 8]
mov dword [esp + 0x1c], ebx
and eax, 7
cmovne ecx, eax
xor eax, eax
sub esi, ecx
cmovb esi, eax
mov dword [esp + 4], edi
mov eax, esi
mov dword [esp], esi
shr eax, 2
and eax, 0xfffffffe
lea esi, [eax + eax*2]
lea ecx, [edi + esi + 2]
cmp edi, ecx
jae 0x10017f3d
lea edi, [eax + eax*2 + 2]
push edi
push dword [esp + 8]
push edx
call fcn.1000f580
add esp, 0xc
mov eax, dword [esp + 0x54]
mov ecx, esi
or ecx, 1
mov ebx, dword [eax]
mov eax, dword [esp + 0x54]
mov ebp, dword [eax + 8]
lea eax, [ebx + ebp]
push ecx
push 0
push eax
call fcn.100f20e0
mov edx, dword [esp + 0x60]
add esp, 0xc
add esi, ebp
mov ecx, edi
mov byte [ebx + esi + 1], 0
mov ebx, dword [esp + 0x1c]
add ecx, ebp
mov eax, dword [esp + 0x48]
cmp dword [esp], 0
mov dword [edx + 8], ecx
je 0x100180b4
mov edx, dword [edx]
xor esi, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edx
cmp esi, 0xfffffff8
je 0x1001833e
mov edx, dword [esp + 0x4c]
lea edi, [esi + 8]
cmp edi, edx
ja 0x1001834e
mov eax, dword [eax + esi]
bswap eax
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ebx + ecx]
cmp cl, 0xff
je 0x10018224
mov byte [esp + 0x18], cl
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ebx + ecx]
cmp cl, 0xff
je 0x10018223
mov byte [esp + 0x14], cl
movzx ecx, ah
mov dh, byte [ebx + ecx]
cmp dh, 0xff
je 0x10018235
movzx eax, al
movzx ecx, byte [ebx + eax]
cmp cl, 0xff
je 0x1001823a
mov eax, dword [esp + 0x48]
mov ebp, ebx
mov ebx, dword [eax + esi + 4]
bswap ebx
mov eax, ebx
shr eax, 0x18
movzx eax, byte [ebp + eax]
cmp al, 0xff
je 0x1001823f
mov byte [esp + 0xc], cl
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov dl, byte [ebp + ecx]
cmp dl, 0xff
je 0x10018244
movzx ecx, bh
mov ah, byte [ebp + ecx]
cmp ah, 0xff
je 0x10018249
movzx ecx, bl
movzx ecx, byte [ebp + ecx]
cmp cl, 0xff
je 0x1001824e
mov ebx, dword [esp + 4]
lea esi, [ebx + 8]
cmp ebx, 0xfffffff7
ja 0x1001835d
cmp dword [esp + 0x10], esi
jb 0x1001836c
movzx esi, byte [esp + 0x18]
movzx ebx, dh
movzx edx, dl
movzx ecx, cl
shl ebx, 0xe
shl ecx, 0x10
shl esi, 0x1a
or ebx, esi
movzx esi, byte [esp + 0xc]
shl esi, 8
or esi, ebx
movzx ebx, al
movzx eax, ah
shl ebx, 2
shl eax, 0x16
or ebx, esi
mov esi, edx
shr edx, 4
or ecx, eax
mov eax, dword [esp + 8]
or edx, ebx
movzx ebx, byte [esp + 0x14]
shl esi, 0x1c
or ecx, esi
mov esi, dword [esp + 4]
bswap ecx
shl ebx, 0x14
or edx, ebx
mov dword [eax + esi + 4], ecx
mov ebx, dword [esp + 0x1c]
bswap edx
mov dword [eax + esi], edx
add esi, 6
cmp edi, dword [esp]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x48]
mov dword [esp + 4], esi
mov esi, edi
jb 0x10017f5a
mov ecx, dword [edx + 8]
cmp ecx, 2
jb 0x100180bf
add ecx, 0xfffffffe
mov dword [edx + 8], ecx
mov edx, dword [esp + 0x4c]
cmp dword [esp], edx
ja 0x1001838c
je 0x1001830b
mov ebp, eax
mov eax, dword [esp]
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 4], 0
lea edi, [ebp + eax]
lea eax, [ebp + edx - 1]
add ebp, edx
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x28], ebp
sub ebp, edi
xor esi, esi
nop word cs:[eax + eax]
nop
movzx edx, byte [edi + esi]
lea ebx, [ecx + esi]
cmp edx, 0x3d
jne 0x1001814a
mov edx, dword [esp + 4]
add edx, esi
test dl, 2
je 0x10018208
test ebx, ebx
cmove eax, edx
inc esi
cmp ebp, esi
jne 0x10018120
jmp 0x100181d2
test ebx, ebx
jg 0x1001831d
mov ecx, dword [esp + 0x1c]
mov cl, byte [ecx + edx]
cmp cl, 0xff
je 0x10018325
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0xc]
sub edx, edi
inc ebp
lea edi, [edi + esi + 1]
mov dword [esp + 0x20], edx
movzx edx, cl
lea ecx, [ebp + ebp]
mov dword [esp + 0xc], ebp
xor ebp, ebp
lea ecx, [ecx + ecx*2]
neg ecx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
and cl, 0x3e
shld ebp, edx, cl
mov ecx, dword [esp + 8]
and cl, 0x1e
shl edx, cl
test byte [esp + 8], 0x20
mov ecx, 0
cmovne ebp, edx
cmovne edx, ecx
mov ecx, dword [esp + 4]
or dword [esp + 0x14], ebp
or dword [esp + 0x18], edx
cmp dword [esp + 0x20], esi
mov ebp, dword [esp + 0x28]
lea ecx, [ecx + esi + 1]
mov dword [esp + 4], ecx
mov ecx, ebx
jne 0x10018111
mov ecx, dword [esp + 0xc]
cmp ecx, 8
ja 0x1001839b
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x10]
mov dword [esp], 8
add eax, dword [ecx*4 + 0x100183b4]
jmp eax
mov eax, dword [esp]
add eax, dword [esp + 4]
add eax, esi
mov ebp, dword [esp + 0x44]
mov word [ebp], 0x3d01
mov dword [ebp + 4], eax
jmp 0x10018313
inc esi
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x44]
cmp esi, edx
jb 0x10018265
jmp 0x1001837b
add esi, 2
jmp 0x10018251
add esi, 3
jmp 0x10018251
add esi, 4
jmp 0x10018251
add esi, 5
jmp 0x10018251
add esi, 6
jmp 0x10018251
add esi, 7
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x44]
cmp esi, edx
jae 0x1001837b
mov al, byte [eax + esi]
mov byte [ebp], 1
mov byte [ebp + 1], al
mov dword [ebp + 4], esi
jmp 0x10018313
mov ebp, dword [esp + 0x44]
mov byte [ebp], 3
mov eax, ebp
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
add eax, dword [esp]
jmp 0x10018211
mov eax, dword [esp]
mov ebp, dword [esp + 0x44]
add eax, dword [esp + 4]
mov byte [ebp], 1
mov byte [ebp + 1], dl
add eax, esi
mov dword [ebp + 4], eax
jmp 0x10018313
add esi, 8
push esi
push 0xfffffffffffffff8
call fcn.100e21d0
add esp, 8
ud2
add esi, 8
push edx
push esi
call fcn.100e2170
add esp, 8
ud2
push esi
push dword [esp + 8]
call fcn.100e21d0
add esp, 8
ud2
push dword [esp + 0x10]
push esi
call fcn.100e2170
add esp, 8
ud2
push edx
push esi
push 0x10100c48
call fcn.100df2b0
add esp, 0xc
ud2
push edx
push dword [esp + 4]
call fcn.100e21d0
add esp, 8
ud2
push 0x10100c94
push 0x3a
push str.Impossible:_must_only_have_0_to_4_input_bytes_in_last_quad
call fcn.10018400
add esp, 0xc
ud2