Function at 0x487650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x9f9d14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x2c]
push esi
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x9c], 0
call fcn.0045a210
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00451d40
lea eax, [ebp - 0x13c]
push eax
call fcn.00451d40
lea eax, [ebp - 0x108]
push eax
call fcn.00451d40
push 0
push esi
push dword [ebp + 0x18]
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00451e10
add esp, 0x24
test eax, eax
je 0x4878f5
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00451ce0
add esp, 8
test eax, eax
je 0x4878f5
mov esi, dword [ebp + 0x20]
lea eax, [ebp - 0xd4]
push esi
push dword [ebp - 0x8c]
push eax
call fcn.00452070
add esp, 0xc
test eax, eax
je 0x4878f5
push dword [ebp + 0x28]
lea eax, [ebp - 0xd4]
push dword [ebp - 0x90]
push eax
call fcn.00452070
add esp, 0xc
test eax, eax
je 0x4878f5
push dword [ebp + 0x30]
lea eax, [ebp - 0xd4]
push dword [ebp - 0x94]
push eax
call fcn.00452070
add esp, 0xc
test eax, eax
je 0x4878f5
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00451d70
add esp, 0xc
test eax, eax
je 0x4878f5
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00451ce0
add esp, 8
test eax, eax
je 0x4878f5
mov edi, dword [ebp + 0xc]
push dword [ebp - 0x98]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00452070
add esp, 0xc
test eax, eax
je 0x4878f5
cmp edi, dword [ebp - 0xa0]
jbe 0x4877eb
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.00451ce0
add esp, 8
test eax, eax
je 0x4878f5
push esi
push dword [ebp - 0x8c]
lea eax, [ebp - 0xd4]
push eax
call fcn.00452070
add esp, 0xc
test eax, eax
je 0x4878f5
push dword [ebp + 0x28]
lea eax, [ebp - 0xd4]
push dword [ebp - 0x90]
push eax
call fcn.00452070
add esp, 0xc
test eax, eax
je 0x4878f5
push dword [ebp + 0x30]
lea eax, [ebp - 0xd4]
push dword [ebp - 0x94]
push eax
call fcn.00452070
add esp, 0xc
test eax, eax
je 0x4878f5
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00451d70
add esp, 0xc
test eax, eax
je 0x4878f5
mov eax, dword [ebp - 0x88]
cmp eax, edi
cmova eax, edi
xor edx, edx
mov dword [ebp - 0x88], eax
test eax, eax
je 0x4878a7
lea esi, [ebp - 0x84]
mov ecx, ebx
sub esi, ebx
nop
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
mov eax, dword [ebp - 0x88]
cmp edx, eax
jb 0x487890
mov esi, dword [ebp + 0x20]
add ebx, eax
sub edi, eax
je 0x4878eb
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.00451d70
add esp, 0xc
test eax, eax
je 0x4878f5
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00451ce0
add esp, 8
test eax, eax
jne 0x4877a4
jmp 0x4878f5
mov dword [ebp - 0x9c], 1
lea eax, [ebp - 0xd4]
push eax
call fcn.00451c30
lea eax, [ebp - 0x13c]
push eax
call fcn.00451c30
lea eax, [ebp - 0x108]
push eax
call fcn.00451c30
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00453b00
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebp - 0x9c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.007059ee
mov esp, ebp
pop ebp
ret