Function at 0x401b20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xe8], ebx
push esi
mov esi, edx
push edi
test ebx, ebx
je 0x401def
test esi, esi
je 0x401def
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401b60
sub ecx, edx
cmp ecx, 0x10
jb 0x401def
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x401b77
mov eax, dword [ebp - 0xf0]
sub edi, ecx
test eax, eax
je 0x401def
cmp eax, 0x64
jae 0x401bc3
lea eax, [edi + 1]
push eax
call fcn.00402a14
add esp, 4
mov dword [ebx], eax
sub eax, esi
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x401ba3
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00402a06
mov esp, ebp
pop ebp
ret
push edi
call fcn.00402a14
xor ch, ch
mov byte [ebp - 0xdd], 1
xor edx, edx
add esp, 4
mov ebx, eax
mov dword [ebp - 0xe4], edx
mov dword [ebp - 0xec], ebx
cmp byte [esi], ch
je 0x401de6
nop dword [eax]
cmp edx, edi
jae 0x401c42
mov dl, byte [esi]
inc esi
xor cl, cl
nop dword [eax]
movzx eax, cl
cmp byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_], dl
je 0x401c18
inc cl
mov al, cl
cmp cl, 0x40
jb 0x401c00
cmp al, 0x40
je case.default.0x401c25
movzx eax, byte [ebp - 0xdd]
dec eax
cmp eax, 3
ja case.default.0x401c25
jmp dword [eax*4 + 0x401f58]
mov ch, cl
shl ch, 2
inc byte [ebp - 0xdd]
mov edx, dword [ebp - 0xe4]
cmp byte [esi], 0
jne 0x401bf0
cmp edx, 0x15
jbe 0x401de6
mov al, byte [ebx]
cmp al, 1
je 0x401c59
cmp al, 2
jne 0x401de6
lea eax, [edx - 5]
or edx, 0xffffffff
mov edi, eax
mov dword [ebp - 0xf8], eax
lea esi, [ebx + 5]
mov dword [ebp - 0xf4], esi
test edi, edi
je 0x401c8e
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4043e0]
sub edi, 1
jne 0x401c74
movzx ecx, byte [ebx + 1]
not edx
movzx eax, byte [ebx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 4]
shl ecx, 8
or ecx, eax
cmp edx, ecx
jne 0x401de6
movups xmm0, xmmword [str.SmartLink700_Key]
xor esi, esi
lea edi, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
lea ebx, [esi + 0x10]
nop word [eax + eax]
mov eax, esi
lea ecx, [ebp - 0x28]
shr eax, 2
lea edi, [edi + 1]
mov edx, esi
add ecx, eax
mov al, byte [edi - 1]
and edx, 3
inc esi
mov byte [ecx + edx*4], al
sub ebx, 1
jne 0x401cd0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xdc]
call fcn.004015f0
mov ebx, dword [ebp - 0xf4]
lea ecx, [ebp - 0xdc]
push ebx
push dword [ebp - 0xf8]
mov edx, ebx
call fcn.004012f0
movzx ecx, byte [ebx]
add esp, 8
movzx eax, byte [ebx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 3]
mov ebx, dword [ebp - 0xec]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0xf0]
cmp ecx, eax
jne 0x401de6
movzx esi, byte [ebx + 0x11]
movzx eax, byte [ebx + 0x12]
shl esi, 8
or esi, eax
movzx eax, byte [ebx + 0x13]
shl esi, 8
or esi, eax
movzx eax, byte [ebx + 0x14]
shl esi, 8
or esi, eax
lea eax, [esi + 1]
push eax
call fcn.00402a14
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0xe8]
mov dword [eax], edi
cmp byte [ebx], 2
jne 0x401e6e
movzx ecx, byte [ebx + 0x15]
movzx edx, byte [ebx + 0x16]
movzx eax, byte [ebx + 0x17]
shl ecx, 8
or edx, ecx
lea ecx, [ebx + 0x19]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 0x18]
shl edx, 8
or edx, eax
lea eax, [ebp - 0xec]
push eax
push edi
call fcn.00401f70
add esp, 8
test al, al
je 0x401dcb
cmp dword [ebp - 0xec], esi
je 0x401eb7
mov edi, dword [ebp - 0xe8]
mov esi, dword [edi]
push esi
call fcn.00402a1d
add esp, 4
test esi, esi
je 0x401de6
mov dword [edi], 0x8123
push ebx
call fcn.00402a1d
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00402a06
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xe4]
mov al, cl
shr al, 4
or al, ch
mov ch, cl
shl ch, 4
mov byte [edx + ebx], al
inc edx
inc byte [ebp - 0xdd]
mov dword [ebp - 0xe4], edx
jmp 0x401c3d
mov edx, dword [ebp - 0xe4]
mov al, cl
shr al, 2
or al, ch
mov ch, cl
shl ch, 6
mov byte [edx + ebx], al
inc edx
inc byte [ebp - 0xdd]
mov dword [ebp - 0xe4], edx
jmp 0x401c3d
mov edx, dword [ebp - 0xe4]
or ch, cl
mov byte [ebp - 0xdd], 1
mov byte [edx + ebx], ch
inc edx
mov dword [ebp - 0xe4], edx
jmp 0x401c3d
mov eax, dword [ebp - 0xe4]
add eax, 0xffffffeb
cmp esi, eax
jbe 0x401ea9
push edi
call fcn.00402a1d
mov eax, dword [ebp - 0xe8]
push ebx
mov dword [eax], 0x8123
call fcn.00402a1d
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00402a06
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebx + 0x15]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0xe8]
or edx, 0xffffffff
mov eax, dword [ecx]
mov byte [esi + eax], 0
mov eax, dword [ecx]
mov edi, eax
mov dword [ebp - 0xec], eax
test esi, esi
je 0x401eee
movzx ecx, byte [edi]
lea edi, [edi + 1]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4043e0]
sub esi, 1
jne 0x401ed4
movzx ecx, byte [ebx + 0xd]
not edx
movzx eax, byte [ebx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x10]
shl ecx, 8
or ecx, eax
cmp edx, ecx
je 0x401f3b
mov esi, dword [ebp - 0xec]
push esi
call fcn.00402a1d
add esp, 4
test esi, esi
je 0x401de6
mov eax, dword [ebp - 0xe8]
mov dword [eax], 0x8123
jmp 0x401de6
push ebx
call fcn.00402a1d
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.00402a06
mov esp, ebp
pop ebp
ret