Function at 0x487b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x1204]
mov eax, 0x1204
call fcn.00507730
push 0xffffffffffffffff
push 0x53baa8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5755c4]
xor eax, ebp
mov dword [ebp + 0x1200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x120c]
mov edi, dword [ebp + 0x1210]
push 0x8d
mov dword [ebp - 0x10], ebx
call fcn.004193f0
mov eax, dword [ebx + 0x2214]
mov esi, dword [ebx]
mov dword [ebp - 0x64], eax
mov eax, dword [ebx + 0x7e68]
add eax, dword [ebx + 0x33a8]
mov esi, dword [esi + 0x10]
mov ecx, esi
push 0
push 0
push eax
mov byte [ebx + 0x7e63], 1
call dword [0x540780]
mov ecx, ebx
call esi
push 0
push 0
push 0
push 1
mov ecx, ebx
call fcn.0045cca0
mov eax, dword [ebx]
push 2
push 0
push 0
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x540780]
mov ecx, ebx
call esi
mov eax, dword [ebx]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x540780]
mov ecx, ebx
call esi
mov ebx, eax
mov dword [ebp - 0x18], edx
push edx
push ebx
push edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], edx
call fcn.004881b0
mov edi, dword [ebp - 0x10]
push 0x14
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], 0
lea ecx, [edi + 0x5778]
mov dword [ebp - 0x1c], 0
call fcn.00478d20
lea ecx, [edi + 0x67e8]
mov byte [edi + 0x5788], 1
push 2
call fcn.00478ad0
push 0
push 0x55003c
push 0
push 0
push 0
push 0
mov ecx, edi
call fcn.00458b20
mov eax, dword [edi]
push 0
push 0
push 0
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x540780]
mov ecx, edi
call esi
xor eax, eax
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], al
mov eax, dword [ebp - 0x20]
shl eax, 9
push eax
mov dword [ebp - 0x30], eax
call fcn.004051c0
mov dword [ebp - 4], edi
push dword [ebp - 0x50]
push edi
push dword [ebp - 0x54]
call fcn.00520500
mov esi, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x2c], 0xfffffff
test esi, esi
jl 0x487ea2
jg 0x487cc0
test ebx, ebx
je 0x487ea2
lea ecx, [ecx]
call fcn.0049e910
test esi, esi
jg 0x487cfe
jl 0x487cd3
cmp ebx, 0x200
jae 0x487cfe
mov eax, 0x200
mov edi, ebx
sub eax, ebx
push eax
lea eax, [ebp + 0x1000]
add eax, ebx
push 0
push eax
call fcn.00520500
add esp, 0xc
mov dword [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x18], edx
jmp 0x487d12
add ebx, 0xfffffe00
mov edi, 0x200
mov dword [ebp - 0x28], ebx
adc esi, 0xffffffff
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp + 0x1000]
push edi
push ecx
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x540780]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x14]
lea edx, [ebp + 0x1001]
shl eax, 9
lea esi, [ebp + 0x1000]
add eax, dword [ebp - 0x54]
mov ecx, eax
neg ecx
add edx, ecx
add esi, ecx
mov dword [ebp - 0x58], edx
lea edx, [ebp + 0x1002]
mov ebx, dword [ebp - 0x58]
add edx, ecx
mov dword [ebp - 0x5c], edx
lea edx, [ebp + 0x1003]
mov edi, dword [ebp - 0x5c]
add ecx, edx
mov dword [ebp - 0x60], ecx
mov edx, 0x80
nop
movzx ecx, byte [esi + eax]
lea eax, [eax + 4]
xor byte [eax - 4], cl
movzx ecx, byte [ebx + eax - 4]
xor byte [eax - 3], cl
movzx ecx, byte [edi + 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 0x487d70
mov edi, dword [ebp - 0x24]
lea eax, [ebp + 0x1000]
mov ebx, dword [ebp - 0x14]
push 0x200
push eax
push 0xffffffffffffffff
call fcn.00469970
mov byte [ebp + edi], al
shr eax, 8
mov byte [ebp + edi + 1], al
add edi, 2
mov dword [ebp - 0x24], edi
cmp edi, 0x1000
jne 0x487e44
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x540780]
mov ecx, ebx
call esi
mov ecx, dword [ebp - 0x10]
mov ebx, eax
push 2
push 0
push 0
mov ecx, dword [ecx]
mov edi, edx
mov esi, dword [ecx + 0x10]
mov ecx, esi
call dword [0x540780]
mov ecx, dword [ebp - 0x10]
call esi
mov esi, dword [ebp - 0x10]
lea eax, [ebp]
push 0x1000
push eax
mov ecx, esi
call fcn.004743f0
mov esi, dword [esi]
push 0
push edi
push ebx
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x540780]
mov ecx, dword [ebp - 0x10]
call esi
push 0x1000
lea eax, [ebp]
push eax
push dword [ebp - 0x2c]
call fcn.00469970
mov ebx, dword [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], edi
movzx ecx, byte [ebp - 0x40]
or ecx, 0
jne 0x487e77
mov eax, dword [ebp - 0x64]
cmp byte [eax + 0x6148], cl
jne 0x487e77
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
shld eax, ecx, 9
push eax
shl ecx, 9
push ecx
push 0x5507f8
call fcn.004a0b80
add dword [ebp - 0x40], 1
mov esi, dword [ebp - 0x18]
adc dword [ebp - 0x1c], 0
inc ebx
cmp ebx, dword [ebp - 0x20]
sbb eax, eax
and eax, ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
test esi, esi
jg 0x487cc0
jl 0x487ea2
test ebx, ebx
jne 0x487cc0
mov ebx, dword [ebp - 0x10]
push 2
push 0
push 0
mov eax, dword [ebx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x540780]
mov ecx, ebx
call esi
push edi
lea eax, [ebp]
mov ecx, ebx
push eax
call fcn.004743f0
push edi
lea eax, [ebp]
push eax
push dword [ebp - 0x2c]
call fcn.00469970
push dword [ebp - 0x30]
mov edi, dword [ebp - 0x54]
mov ecx, ebx
push edi
mov esi, eax
call fcn.004743f0
push dword [ebp - 0x30]
push edi
push esi
call fcn.00469970
mov esi, dword [ebx]
not eax
push 0
push dword [ebp - 0x34]
mov dword [ebx + 0x67e8], 2
push dword [ebp - 0x38]
mov esi, dword [esi + 0x10]
mov ecx, esi
mov dword [ebx + 0x67ec], eax
call dword [0x540780]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x80]
call fcn.0048a570
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x80]
push 8
push str.Protect
call fcn.0048a870
push dword [ebp - 0x20]
lea ecx, [ebp - 0x80]
call fcn.0048a760
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x80]
push esi
call fcn.0048a7c0
lea eax, [ebx + 0x67a0]
push eax
lea ecx, [ebp - 0x80]
call fcn.0048a640
mov eax, dword [ebp - 0x20]
mov ecx, ebx
push 0
push 0x55003c
shl eax, 8
push 0
add eax, esi
push 0
add eax, eax
push eax
push 0
call fcn.00458b20
mov eax, dword [ebx]
push 2
push 0
push 0
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x540780]
mov ecx, ebx
call esi
push 0x8e
call fcn.004193f0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x487fc4
cmp byte [ebp - 0x70], 0
je 0x487fbb
push dword [ebp - 0x78]
push eax
call fcn.0049b220
mov eax, dword [ebp - 0x80]
push eax
call fcn.00524aa2
add esp, 4
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x487fe7
cmp byte [ebp - 0x44], 0
je 0x487fde
push dword [ebp - 0x4c]
push edi
call fcn.0049b220
push edi
call fcn.00524aa2
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 + 0x1200]
xor ecx, ebp
call fcn.00507712
lea esp, [ebp + 0x1204]
pop ebp
ret 8