Function at 0x47fa20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x4dd840]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [ebp - 0x470], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x458], eax
mov eax, dword [ebp + 0x20]
cmp dword [edi + 0xa4], 1
mov dword [ebp - 0x46c], eax
je 0x47fa77
mov eax, 0xffffbf80
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493329
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [edi + 4]
mov dword [ebp - 0x464], esi
lea eax, [esi - 0x10]
cmp eax, 0x3f0
ja 0x47fce5
mov ecx, dword [edi + 0xa8]
sub ecx, 3
cmp ecx, 6
ja 0x47fce5
call fcn.00471690
mov dword [ebp - 0x454], eax
test eax, eax
je 0x47fce5
push ebx
movzx ebx, byte [eax + 8]
mov dword [ebp - 0x468], ebx
lea eax, [ebx + ebx]
lea ecx, [eax + 2]
mov dword [ebp - 0x460], eax
cmp ecx, esi
jbe 0x47fae5
mov eax, 0xffffbf80
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493329
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x444]
mov ecx, edi
push eax
push dword [ebp - 0x458]
push dword [ebp - 0x45c]
call fcn.0047f3c0
add esp, 0xc
test eax, eax
jne 0x47fad4
mov edi, dword [ebp - 0x454]
xorps xmm0, xmm0
mov dword [ebp - 0x448], eax
movq qword [ebp - 0x450], xmm0
mov eax, dword [edi + 0x20]
call eax
mov dword [ebp - 0x44c], eax
test eax, eax
je 0x47fcc4
lea eax, [ebp - 0x44]
mov dword [ebp - 0x450], edi
push eax
push 0
xor edx, edx
mov ecx, edi
call fcn.004717b0
lea eax, [ebp - 0x450]
sub esi, ebx
push eax
dec esi
lea edi, [ebp - 0x443]
add edi, ebx
lea ecx, [ebp - 0x443]
push esi
push edi
mov edx, ebx
call fcn.0047f640
lea eax, [ebp - 0x450]
mov edx, esi
push eax
lea eax, [ebp - 0x443]
mov ecx, edi
push ebx
push eax
call fcn.0047f640
add esp, 0x20
lea ecx, [ebp - 0x450]
call fcn.004716e0
mov esi, dword [ebp - 0x468]
lea edx, [ebp - 0x443]
mov bl, byte [ebp - 0x444]
add edx, esi
xor ecx, ecx
test esi, esi
je 0x47fbb4
mov al, byte [ebp + ecx - 0x44]
inc ecx
xor al, byte [edx]
inc edx
or bl, al
cmp ecx, esi
jb 0x47fba6
mov eax, dword [ebp - 0x464]
xor edi, edi
sub eax, dword [ebp - 0x460]
xor cl, cl
add eax, 0xfffffffe
mov dword [ebp - 0x454], edi
xor esi, esi
mov dword [ebp - 0x458], edi
mov dword [ebp - 0x45c], eax
cmp eax, 2
jb 0x47fc25
or cl, byte [edx + esi]
mov al, cl
neg al
or al, cl
or cl, byte [edx + esi + 1]
not al
add esi, 2
movzx eax, al
shr eax, 7
add edi, eax
mov al, cl
neg al
mov dword [ebp - 0x460], edi
or al, cl
not al
movzx eax, al
shr eax, 7
add dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x45c]
dec eax
cmp esi, eax
jb 0x47fbe0
mov eax, dword [ebp - 0x45c]
cmp esi, eax
jae 0x47fc40
or cl, byte [esi + edx]
mov al, cl
neg al
or al, cl
not al
movzx eax, al
shr eax, 7
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x454]
add eax, edi
add eax, dword [ebp - 0x458]
add edx, eax
mov al, byte [edx]
inc edx
xor al, 1
or bl, al
je 0x47fc6f
pop ebx
pop esi
mov eax, 0xffffbf00
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493329
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x464]
sub eax, edx
lea eax, [ebp + eax - 0x444]
cmp eax, dword [ebp + 0x24]
jbe 0x47fc99
pop ebx
pop esi
mov eax, 0xffffbc00
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493329
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x470]
push eax
push edx
push dword [ebp - 0x46c]
mov dword [ecx], eax
call fcn.00493790
add esp, 0xc
xor eax, eax
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493329
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x450]
call fcn.004716e0
pop ebx
pop esi
mov eax, 0xffffae80
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493329
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffbf80
pop esi
xor ecx, ebp
pop edi
call fcn.00493329
mov esp, ebp
pop ebp
ret