Function at 0x4217c3
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [esp + 0x74]
mov edi, dword [eax + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
cmp word [edi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x4216a0
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 4]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
mov eax, edx
cmp word [esi + edx + 2], 0
lea edx, [edx + 2]
jne 0x4216c0
mov dword [esp + 0x54], ecx
mov eax, ecx
sar eax, 1
sar edx, 1
lea ecx, [edx + eax]
mov dword [esp + 0x50], eax
add eax, edx
add eax, 0x1b
test eax, eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x4c], edx
jns 0x4216f6
mov eax, 0xffffffff
jmp 0x4216fd
lea eax, [ecx*2 + 0x36]
push eax
call fcn.0040cb10
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 8], 0x41b247a0
mov dword [esp + 0xc], 0x4daf43d1
mov dword [esp + 0x10], 0x49da4faf
mov dword [esp + 0x14], 0x75854b68
mov dword [esp + 0x18], 0x71ea77ec
mov dword [esp + 0x1c], 0x7de4739f
mov dword [esp + 0x20], 0x79957fe1
mov dword [esp + 0x24], 0x65ec7be9
mov dword [esp + 0x28], 0x619b6744
mov dword [esp + 0x2c], 0x6dfe638f
mov dword [esp + 0x30], 0x69856ff0
mov dword [esp + 0x34], 0x15836bfe
mov dword [esp + 0x38], 0x11f21789
mov word [esp + 0x3c], 0x1310
mov dword [esp + 0x3e], 0
mov word [esp + 0x42], 0
mov eax, 0x7a492291
nop
nop
nop
movzx ecx, byte [esp + eax - 0x7a492289]
xor ecx, eax
mov edx, ecx
and edx, 0x28
mov ebx, ecx
and ebx, 2
mov ebp, ebx
xor ebp, 2
imul ebp, edx
or edx, 2
imul edx, ebx
xor ecx, 0x2a
add ecx, ebp
add ecx, edx
inc cl
mov byte [esp + eax - 0x7a492289], cl
inc eax
cmp eax, 0x7a4922cd
jne 0x421790
movzx ecx, word [edi]
mov edx, dword [esp + 4]
mov eax, edx
test cx, cx
je 0x4217f1
add edi, 2
mov eax, edx
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x4217e0
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x421821
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x421810
mov word [eax], 0
movzx ecx, word [esi]
test cx, cx
je 0x421851
add esi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x421840
mov word [eax], 0
mov eax, dword [esp + 0x74]
mov ebp, dword [eax]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + eax + 2], 0
lea eax, [eax + 2]
jne 0x421870
mov edx, eax
and edx, 2
mov ecx, dword [esp + 0x74]
mov edi, dword [ecx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
cmp word [edi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x421890
sar eax, 1
mov esi, dword [esp + 0x78]
mov ebx, dword [esi]
mov esi, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + esi + 2], 0
lea esi, [esi + 2]
jne 0x4218b0
xor eax, 1
add edx, eax
sar ecx, 1
sar esi, 1
add ecx, edx
lea eax, [esi + ecx]
add eax, 0x12
test eax, eax
jns 0x4218d7
mov eax, 0xffffffff
jmp 0x4218e0
add ecx, esi
lea eax, [ecx*2 + 0x24]
push eax
call fcn.0040cb10
add esp, 4
movzx ecx, word [ebp]
mov dword [esp + 0x44], eax
mov esi, eax
test cx, cx
je 0x421912
add ebp, 2
mov esi, dword [esp + 0x44]
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x421900
mov word [esi], 0x2f
mov dword [esp + 8], 0x99519bad
mov dword [esp + 0xc], 0xa55aa760
mov dword [esp + 0x10], 0xa150a34f
mov dword [esp + 0x14], 0xad59af5d
mov dword [esp + 0x18], 0xa958ab5d
mov dword [esp + 0x1c], 0xb587b755
mov dword [esp + 0x20], 0xb3b4
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xdb
xor cl, byte [esp + eax + 8]
add cl, 0xb9
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 0x1c
jne 0x421960
add esi, 2
movzx eax, word [edi]
test ax, ax
je 0x4219a1
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x421990
mov word [esi], 0
movzx eax, word [esp + 8]
test ax, ax
je 0x4219d1
lea ecx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4219c0
mov word [esi], 0
movzx eax, word [ebx]
test ax, ax
je 0x421a01
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4219f0
mov word [esi], 0
mov dword [esp + 8], 0x8f8e8976
mov dword [esp + 0xc], 0
mov eax, 0x62
mov ecx, 0xd
mov edi, ecx
and edi, 8
mov edx, eax
and edx, 0x67
or edx, edi
xor dl, byte [esp + eax - 0x5a]
xor dl, 8
add dl, 0x16
mov byte [esp + eax - 0x5a], dl
inc eax
dec ecx
cmp eax, 0x6a
jne 0x421a20
lea eax, [esp + 8]
push 0
push 0
push 0xc00000
push eax
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x58]
push dword [esp + 0x88]
call fcn.00424d40
add esp, 0x1c
mov byte [esp + 3], al
jmp dword [0x44cc5c]