Function at 0x47a970
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x1250]
mov eax, 0x1250
call fcn.004ebbf0
push 0xffffffffffffffff
push 0x507883
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x528af4]
xor eax, ebp
mov dword [ebp + 0x124c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x1258]
lea ecx, [ebp]
mov esi, dword [ebp + 0x125c]
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0x83
call fcn.00490250
mov eax, dword [edi + 0x220c]
mov ecx, edi
mov edx, dword [edi]
mov dword [ebp - 0x64], eax
mov eax, dword [edi + 0x3398]
add eax, dword [edi + 0x7e90]
push 0
push 0
push eax
mov byte [edi + 0x7e8b], 1
call dword [edx + 0xc]
push 0
push 0
push 0
push 1
mov ecx, edi
call fcn.004525b0
mov eax, dword [edi]
mov ecx, edi
push 2
push 0
push 0
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x10]
call eax
mov ebx, eax
mov eax, edx
push eax
push ebx
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
call fcn.0047aff0
push 0x14
lea ecx, [edi + 0x5758]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x18], 0
call fcn.0046bdc0
lea ecx, [edi + 0x67b8]
mov byte [edi + 0x5768], 1
push 2
call fcn.0046bbd0
push 0
push 0x50f580
push 0
push 0
push 0
push 0
mov ecx, edi
call fcn.0044e990
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
push 0
call dword [eax + 0xc]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x50]
xor esi, esi
xor edi, edi
shl eax, 9
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x30], eax
push eax
call fcn.00404010
mov dword [ebp - 4], esi
push dword [ebp - 0x4c]
push esi
push dword [ebp - 0x50]
call fcn.004ee100
add esp, 0xc
mov dword [ebp - 0x2c], 0xfffffff
cmp dword [ebp - 0x14], esi
jl 0x47acc1
jg 0x47aae7
test ebx, ebx
je 0x47acc1
call fcn.0048f2a0
mov eax, dword [ebp - 0x14]
test eax, eax
jg 0x47ab2a
jl 0x47aafd
cmp ebx, 0x200
jae 0x47ab2a
mov eax, 0x200
mov esi, ebx
sub eax, ebx
push eax
lea eax, [ebp + 0x104c]
add eax, ebx
push 0
push eax
call fcn.004ee100
add esp, 0xc
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
jmp 0x47ab3e
add ebx, 0xfffffe00
mov esi, 0x200
mov dword [ebp - 0x28], ebx
adc eax, 0xffffffff
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp + 0x104c]
push esi
push ecx
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 8]
mov eax, edi
lea edx, [ebp + 0x104c]
shl eax, 9
add eax, dword [ebp - 0x50]
mov ecx, eax
neg ecx
add edx, ecx
mov dword [ebp - 0x54], edx
lea edx, [ebp + 0x104d]
mov ebx, dword [ebp - 0x54]
add edx, ecx
mov dword [ebp - 0x58], edx
lea edx, [ebp + 0x104e]
mov edi, dword [ebp - 0x58]
add edx, ecx
mov dword [ebp - 0x5c], edx
lea edx, [ebp + 0x104f]
mov esi, dword [ebp - 0x5c]
add ecx, edx
mov dword [ebp - 0x60], ecx
mov edx, 0x80
movzx ecx, byte [ebx + eax]
lea eax, [eax + 4]
xor byte [eax - 4], cl
movzx ecx, byte [edi + eax - 4]
xor byte [eax - 3], cl
movzx ecx, byte [esi + eax - 4]
xor byte [eax - 2], cl
mov ecx, dword [ebp - 0x60]
movzx ecx, byte [ecx + eax - 4]
xor byte [eax - 1], cl
sub edx, 1
jne 0x47ab96
mov esi, dword [ebp - 0x20]
lea eax, [ebp + 0x104c]
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x10]
push 0x200
push eax
push 0xffffffffffffffff
call fcn.0045e330
mov byte [ebp + esi + 0x4c], al
shr eax, 8
mov byte [ebp + esi + 0x4d], al
add esi, 2
mov dword [ebp - 0x20], esi
cmp esi, 0x1000
jne 0x47ac63
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0x8c], ebx
mov eax, dword [eax + 0x10]
call eax
mov ebx, eax
mov edi, edx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], edi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov ecx, eax
push 2
push 0
push 0
mov esi, dword [eax]
call dword [esi + 0xc]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x4c]
push 0x1000
push eax
call fcn.00468660
push 0x1000
lea eax, [ebp + 0x4c]
push eax
push dword [ebp - 0x2c]
call fcn.0045e330
xor esi, esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov ecx, eax
push esi
push edi
push ebx
mov edx, dword [eax]
call dword [edx + 0xc]
mov edi, dword [ebp - 0x24]
movzx eax, byte [ebp - 0x40]
or eax, 0
jne 0x47ac97
mov eax, dword [ebp - 0x64]
cmp byte [eax + 0x6148], 0
jne 0x47ac97
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x18]
shld eax, ecx, 9
push eax
shl ecx, 9
push ecx
push 0x50fc58
call fcn.00491400
add dword [ebp - 0x40], 1
mov ebx, dword [ebp - 0x28]
adc dword [ebp - 0x18], 0
inc edi
cmp edi, dword [ebp - 0x1c]
sbb eax, eax
and edi, eax
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x24], edi
jg 0x47aae7
jl 0x47acc1
test ebx, ebx
jne 0x47aae7
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push 2
push 0
push 0
mov eax, dword [ebx]
call dword [eax + 0xc]
push esi
lea eax, [ebp + 0x4c]
mov ecx, ebx
push eax
call fcn.00468660
push esi
lea eax, [ebp + 0x4c]
push eax
push dword [ebp - 0x2c]
call fcn.0045e330
push dword [ebp - 0x30]
mov edi, dword [ebp - 0x50]
mov ecx, ebx
push edi
mov esi, eax
call fcn.00468660
push dword [ebp - 0x30]
push edi
push esi
call fcn.0045e330
not eax
mov dword [ebx + 0x67b8], 2
push 0
push dword [ebp - 0x34]
mov dword [ebx + 0x67bc], eax
mov ecx, ebx
mov eax, dword [ebx]
push dword [ebp - 0x38]
call dword [eax + 0xc]
lea ecx, [ebp - 0x7c]
call fcn.0047d580
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
push 8
push str.Protect
call fcn.0047d870
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x7c]
call fcn.0047d760
push dword [ebp - 0x18]
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x7c]
push esi
call fcn.0047d7c0
lea eax, [ebx + 0x6778]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0047d640
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
push 0
push 0x50f580
shl eax, 8
push 0
add eax, esi
push 0
add eax, eax
push eax
push 0
call fcn.0044e990
mov eax, dword [ebx]
mov ecx, ebx
push 2
push 0
push 0
call dword [eax + 0xc]
lea ecx, [ebp]
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0x84
call fcn.00490250
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x47adc6
push eax
call fcn.004f252e
add esp, 4
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x47adda
push edi
call fcn.004f252e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x124c]
xor ecx, ebp
call fcn.004ebbd8
lea esp, [ebp + 0x1250]
pop ebp
ret 8