Function at 0x4217b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
push edi
mov edi, dword [esi + 0x34]
or ebx, 0xffffffff
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ebx
lea esp, [esp]
mov eax, dword [ebp - 0x10]
sub eax, edi
cmp edx, eax
jb 0x4218bd
test eax, eax
mov dword [ebp - 0x1c], eax
jbe 0x421872
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
xor eax, eax
test ecx, 0xfffffffc
je 0x421850
shr ecx, 2
mov edi, edi
xor edx, dword [esi]
add esi, 4
mov al, dl
mov ebx, dword [eax*4 + 0x4cf408]
mov al, dh
shr edx, 0x10
xor ebx, dword [eax*4 + 0x4cf008]
mov al, dl
xor ebx, dword [eax*4 + 0x4cec08]
mov al, dh
xor ebx, dword [eax*4 + 0x4ce408]
mov edx, ebx
dec ecx
jne 0x421810
mov ecx, dword [ebp - 0x1c]
and ecx, 3
je 0x421860
lea esp, [esp]
lodsb al, byte [esi]
xor al, dl
shr edx, 8
xor edx, dword [eax*4 + 0x4ce408]
dec ecx
jne 0x421850
mov dword [ebp - 0x20], edx
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], ebx
sub edi, dword [ebp - 0x10]
mov eax, dword [esi + 0x18]
add edx, edi
inc ecx
cmp ecx, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
jne 0x42188f
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
cmp ecx, dword [esi + 0x50]
je 0x421938
mov edi, dword [esi + 0x20]
mov eax, ecx
imul eax, eax, 0x38
add eax, edi
mov edi, dword [eax + 0x2c]
mov eax, dword [eax + 0x10]
add eax, edi
test edx, edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
ja 0x4217e0
jmp 0x4219a8
test edx, edx
jbe 0x4219a8
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor eax, eax
test ecx, 0xfffffffc
je 0x421920
shr ecx, 2
jmp 0x4218e0
xor edx, dword [esi]
add esi, 4
mov al, dl
mov ebx, dword [eax*4 + 0x4cf408]
mov al, dh
shr edx, 0x10
xor ebx, dword [eax*4 + 0x4cf008]
mov al, dl
xor ebx, dword [eax*4 + 0x4cec08]
mov al, dh
xor ebx, dword [eax*4 + 0x4ce408]
mov edx, ebx
dec ecx
jne 0x4218e0
mov ecx, dword [ebp - 0xc]
and ecx, 3
je 0x421930
lea esp, [esp]
lodsb al, byte [esi]
xor al, dl
shr edx, 8
xor edx, dword [eax*4 + 0x4ce408]
dec ecx
jne 0x421920
mov dword [ebp - 0x20], edx
mov esi, dword [ebp - 0x18]
jmp 0x4219a2
test edx, edx
jbe 0x4219a8
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor eax, eax
test ecx, 0xfffffffc
je 0x421990
shr ecx, 2
nop
mov al, dl
mov ebx, dword [eax*4 + 0x4cf408]
mov al, dh
shr edx, 0x10
xor ebx, dword [eax*4 + 0x4cf008]
mov al, dl
xor ebx, dword [eax*4 + 0x4cec08]
mov al, dh
xor ebx, dword [eax*4 + 0x4ce408]
mov edx, ebx
dec ecx
jne 0x421950
mov ecx, dword [ebp - 0xc]
and ecx, 3
je 0x42199f
jmp 0x421990
mov al, dl
shr edx, 8
xor edx, dword [eax*4 + 0x4ce408]
dec ecx
jne 0x421990
mov dword [ebp - 0x20], edx
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
mov ecx, dword [esi + 0xc]
cmp ecx, dword [ebp + 0xc]
jb 0x421a35
ja 0x4219c2
mov edx, dword [esi + 8]
cmp edx, dword [ebp + 8]
jbe 0x421a35
mov eax, dword [esi + 8]
sub eax, dword [ebp + 8]
mov dword [ebp + 0xc], eax
je 0x421a35
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
xor eax, eax
test ecx, 0xfffffffc
je 0x421a20
shr ecx, 2
mov al, dl
mov ebx, dword [eax*4 + 0x4cf408]
mov al, dh
shr edx, 0x10
xor ebx, dword [eax*4 + 0x4cf008]
mov al, dl
xor ebx, dword [eax*4 + 0x4cec08]
mov al, dh
xor ebx, dword [eax*4 + 0x4ce408]
mov edx, ebx
dec ecx
jne 0x4219e0
mov ecx, dword [ebp + 0xc]
and ecx, 3
je 0x421a2f
jmp 0x421a20
mov al, dl
shr edx, 8
xor edx, dword [eax*4 + 0x4ce408]
dec ecx
jne 0x421a20
mov dword [ebp - 0x20], edx
mov ebx, dword [ebp - 0x20]
pop edi
not ebx
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8