Function at 0x489430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x98], 0xffffffff
sete byte [ebp - 9]
mov dl, 1
mov eax, dword [0x41890c]
call fcn.004032e4
mov dword [ebp - 8], eax
push ebp
call fcn.004892b8
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4894ed
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, esi
call fcn.0041ae80
mov edi, eax
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 8]
dec ebx
cmp ebx, 0
jl 0x4894b8
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0041ae80
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
mov edx, dword [edi + 0x4c]
cmp eax, dword [edx + 4]
jne 0x4894b2
cmp byte [edi + 8], 0
je 0x4894b2
xor edi, edi
jmp 0x4894b8
dec ebx
cmp ebx, 0xffffffff
jne 0x489490
test edi, edi
je 0x4894e7
mov eax, edi
call fcn.00488c98
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00489238
cmp byte [edi + 9], 0
jne 0x4894e3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, esi
call fcn.0041ad70
mov byte [ebp - 9], 1
dec esi
cmp esi, 0xffffffff
jne 0x489472
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x489590
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x489586
inc edi
xor ebx, ebx
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0041ae80
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, ebx
call fcn.0041ae80
mov eax, dword [eax + 0x4c]
pop edx
cmp edx, dword [eax + 4]
jne 0x489582
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, ebx
call fcn.0041ae80
cmp byte [eax + 8], 0
je 0x489582
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0041ae80
xor edx, edx
mov dword [eax + 4], edx
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0041ae80
call fcn.00403314
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0041afcc
jmp 0x489586
inc ebx
dec edi
jne 0x489516
inc esi
dec dword [ebp - 0x10]
jne 0x489502
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4895e7
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0041ae80
test eax, eax
je 0x4895e1
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0041ae80
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0041ad24
mov byte [ebp - 9], 1
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0041ae80
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00489218
inc esi
dec dword [ebp - 0x10]
jne 0x4895a1
mov eax, dword [ebp - 8]
call fcn.00403314
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x88], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x8c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x90], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x48966f
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, esi
call fcn.0041ae80
mov edi, eax
mov al, byte [edi + 9]
xor al, 1
and eax, 0x7f
mov edx, dword [ebp - 4]
add dword [edx + 0x88], eax
xor eax, eax
mov al, byte [edi + 9]
mov edx, dword [ebp - 4]
add dword [edx + 0x8c], eax
mov al, byte [edi + 8]
xor al, 1
and eax, 0x7f
mov edx, dword [ebp - 4]
add dword [edx + 0x90], eax
inc esi
dec dword [ebp - 0x10]
jne 0x489627
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov edx, dword [ebp - 4]
sub dword [edx + 0x8c], eax
cmp byte [ebp - 9], 0
je 0x48968f
mov eax, dword [ebp - 4]
call fcn.00489258
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret