Function at 0x421e70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x14a0]
cmp dword [esi + 0x990], eax
lea ecx, [esi + 0x990]
jne 0x421e93
pop esi
add esp, 8
jmp fcn.004270c0
mov ecx, dword [ecx]
sub ecx, eax
and ecx, dword [esi + 0x24]
cmp ecx, 0x101
jb 0x421ea7
mov ecx, 0x101
mov dword [esi + 0x8d4], ecx
mov ecx, dword [esi]
movzx edx, byte [ecx + eax]
push ebx
add ecx, eax
push ebp
push edi
movzx edi, byte [ecx + 1]
shl edi, 5
xor edi, edx
mov ecx, dword [esi]
movzx edx, byte [eax + ecx + 2]
mov ecx, dword [esi + 0x10]
shl edi, 5
xor edx, edi
and edx, 0x7fff
mov edi, edx
mov edx, dword [esi + 0x24]
and edx, dword [ecx + edi*4]
lea ecx, [ecx + edi*4]
mov dword [ecx], eax
mov eax, dword [esi + 0x14a0]
mov ecx, dword [esi + 0x14]
mov dword [ecx + eax*4], edx
mov eax, 3
cmp dword [esi + 0x8d4], eax
mov dword [esp + 0x10], edx
mov dword [esi + 0x58], 1
jle 0x4220ec
mov dword [esp + 0x14], eax
nop
mov eax, dword [esi + 0x58]
cmp eax, 3
jl 0x421f31
mov ecx, dword [esi]
lea ebx, [eax + ecx]
add eax, ecx
mov ecx, dword [esi + 0x14a0]
mov al, byte [eax + ecx]
cmp al, byte [ebx + edx]
jne 0x421faf
mov eax, dword [esi]
mov ecx, dword [esi + 0x14a0]
lea ebp, [eax + ecx]
lea ebx, [eax + edx]
mov al, byte [ebp]
cmp al, byte [ebx]
jne 0x421faf
mov al, byte [ebp + 1]
cmp al, byte [ebx + 1]
jne 0x421faf
mov al, byte [ebp + 2]
cmp al, byte [ebx + 2]
jne 0x421faf
mov eax, 3
cmp dword [esi + 0x8d4], eax
jle 0x421f78
mov dl, byte [eax + ebp]
cmp dl, byte [ebx + eax]
jne 0x421f74
inc eax
cmp eax, dword [esi + 0x8d4]
jl 0x421f63
mov edx, dword [esp + 0x10]
cmp eax, dword [esi + 0x58]
jle 0x421faf
sub ecx, edx
and ecx, dword [esi + 0x24]
cmp ecx, dword [esi + 0x28]
ja 0x421faf
test ecx, ecx
je 0x421faf
cmp eax, 4
jg 0x421fa9
jne 0x421f9c
cmp ecx, 0x40000
jb 0x421fa9
jmp 0x421faf
cmp eax, 3
jne 0x421faf
cmp ecx, 0x2000
jae 0x421faf
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], eax
sub dword [esp + 0x14], 1
je 0x421fc8
mov eax, dword [esi + 0x14]
mov edx, dword [eax + edx*4]
and edx, dword [esi + 0x24]
mov dword [esp + 0x10], edx
jmp 0x421f10
mov eax, dword [esi + 0x58]
cmp eax, 3
jl 0x4220ec
cmp byte [esi + 0x14a5], 0
jne 0x421fec
mov ecx, dword [esi + 0x54]
cmp ecx, dword [esi + 0x14a0]
ja 0x4220ec
mov edx, dword [esi + 0x54]
push edx
push eax
mov ecx, esi
call fcn.00421b50
mov ecx, dword [esi + 0x14a0]
mov edx, dword [esi + 0x24]
mov eax, dword [esi]
inc ecx
and ecx, edx
mov dword [esi + 0x14a0], ecx
movzx eax, byte [ecx + eax + 2]
shl edi, 5
xor eax, edi
mov edi, dword [esi + 0x10]
and eax, 0x7fff
and edx, dword [edi + eax*4]
mov dword [edi + eax*4], ecx
mov ecx, dword [esi + 0x14a0]
lea edi, [edi + eax*4]
mov edi, dword [esi + 0x14]
mov dword [edi + ecx*4], edx
mov ecx, dword [esi + 0x14a0]
mov edi, dword [esi + 0x24]
mov edx, dword [esi]
inc ecx
and ecx, edi
mov dword [esi + 0x14a0], ecx
movzx edx, byte [ecx + edx + 2]
shl eax, 5
xor edx, eax
mov eax, dword [esi + 0x10]
and edx, 0x7fff
and edi, dword [eax + edx*4]
mov dword [eax + edx*4], ecx
mov ecx, dword [esi + 0x14a0]
lea eax, [eax + edx*4]
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4], edi
mov ecx, dword [esi + 0x14a0]
inc ecx
and ecx, dword [esi + 0x24]
or ebx, 0xffffffff
add dword [esi + 0x58], ebx
mov ebp, 2
cmp dword [esi + 0x58], ebp
mov edi, edx
mov dword [esi + 0x14a0], ecx
jle 0x42213e
jmp 0x4220a0
mov edx, dword [esi + 0x14a0]
mov eax, dword [esi]
movzx eax, byte [edx + eax + 2]
mov ecx, dword [esi + 0x10]
shl edi, 5
xor eax, edi
and eax, 0x7fff
lea edi, [ecx + eax*4]
mov ecx, dword [esi + 0x24]
and ecx, dword [edi]
mov dword [edi], edx
mov edx, dword [esi + 0x14a0]
mov edi, dword [esi + 0x14]
mov dword [edi + edx*4], ecx
mov edi, eax
mov eax, dword [esi + 0x14a0]
inc eax
and eax, dword [esi + 0x24]
mov dword [esi + 0x14a0], eax
add dword [esi + 0x58], ebx
cmp dword [esi + 0x58], ebp
jg 0x4220a0
jmp 0x42213e
mov ecx, dword [esi + 0x14a0]
mov edx, dword [esi]
mov dl, byte [ecx + edx]
mov eax, dword [esi + 0x63e4]
mov ebx, dword [esi + 0x63e0]
lea ecx, [esi + 0x63c8]
lea eax, [eax + eax*2]
mov byte [ebx + eax*4], 0
mov eax, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x18]
lea eax, [eax + eax*2]
mov byte [ebx + eax*4 + 1], dl
inc dword [ecx + 0x1c]
cmp dword [ecx + 0x1c], 0x4000
jb 0x42212e
call fcn.0040d9a0
mov ecx, dword [esi + 0x14a0]
inc ecx
and ecx, dword [esi + 0x24]
mov dword [esi + 0x14a0], ecx
mov eax, dword [esi + 0x14a0]
mov edx, dword [esi + 0x990]
lea ecx, [esi + 0x990]
sub edx, eax
and edx, dword [ecx + 0x410]
cmp edx, 0x111
jae 0x421ec1
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
jmp fcn.004270c0