Function at 0x489500
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x4d7590]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0x14], ecx
test ebx, ebx
jne 0x489542
pop edi
mov eax, 0xffffff9a
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00436eab
add esp, 0x24
ret
cmp dword [ebx + 0x38], 0
je 0x48952c
cmp dword [ebx + 0x9c], 0
je 0x48955a
push ebx
call fcn.00489220
add esp, 4
push esi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
mov esi, ebx
call fcn.00488dd0
add esp, 0xc
test eax, eax
je 0x48958f
pop esi
pop edi
mov eax, 0xffffff99
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00436eab
add esp, 0x24
ret
push ebp
push 0x90
call fcn.0043a6bc
mov ebp, eax
xor esi, esi
add esp, 4
cmp ebp, esi
je 0x4895dd
push 0x4000
call fcn.0043a6bc
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x44], edx
mov edx, dword [esp + 0x48]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x48], ecx
mov dword [ebp + 0x4c], esi
mov dword [ebp + 0x8c], edx
cmp eax, esi
jne 0x4895f5
push ebp
call fcn.00437108
add esp, 4
pop ebp
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00436eab
add esp, 0x24
ret
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x40], esi
cmp eax, esi
je 0x489605
mov ecx, dword [ebx + 0x54]
mov dword [eax], ecx
cmp edi, esi
je 0x48963a
mov dword [edi], 6
mov eax, dword [ebx + 0x50]
and eax, 6
sub eax, 2
je 0x489634
sub eax, 2
je 0x48962c
sub eax, 2
jne 0x48963a
mov dword [edi], 1
jmp 0x48963a
mov dword [edi], 2
jmp 0x48963a
mov dword [edi], 9
mov eax, dword [ebx + 0x5c]
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x54], eax
mov ecx, dword [ebx + 0x54]
mov dword [ebp + 0x84], ecx
mov eax, dword [ebx + 0x20]
mov dword [ebp + 0x80], eax
lea edi, [ebp + 0x60]
mov ecx, 8
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x2c]
xor edi, edi
mov dword [ebp + 0x88], ecx
mov dword [ebp + 0x18], edi
cmp dword [ebx + 0x54], 8
jne 0x4896ad
cmp edx, edi
jne 0x4896ad
push 0x38
push str.1.2.3
lea eax, [ebp + 4]
push 0xfffffffffffffff1
push eax
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x2c], edi
mov dword [eax], edi
mov dword [ebp + 8], edi
call fcn.00457fa0
mov esi, eax
add esp, 0x10
cmp esi, edi
jne 0x48978e
mov dword [ebp + 0x40], 1
mov edx, dword [ebx + 0x60]
mov dword [ebp + 0x58], edx
mov eax, dword [ebx + 0x64]
mov edx, dword [esp + 0x14]
mov dword [ebp + 0x5c], eax
mov ecx, dword [ebx + 0x98]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], edi
mov dword [ebx + 0x9c], ebp
mov ebp, dword [esp + 0x1c]
cmp ebp, edi
je 0x489779
call fcn.00474740
lea esi, [ebx + 0xa4]
mov ecx, esi
mov edx, ebp
mov dword [ebx + 0xb0], eax
call fcn.00488470
mov eax, dword [ebx + 0x9c]
mov ecx, dword [eax + 0x88]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
push edi
push ecx
mov ecx, dword [ebx + 0x10]
push edx
push eax
call ecx
add esp, 0x10
test eax, eax
jne 0x4895dd
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
push 0xc
lea edx, [esp + 0x28]
push edx
mov edx, dword [ebx + 4]
push eax
push ecx
call edx
add esp, 0x10
cmp eax, 0xc
jb 0x4895dd
xor ebp, ebp
mov eax, esi
call fcn.00488410
xor byte [esp + ebp + 0x24], al
movsx eax, byte [esp + ebp + 0x24]
mov edi, dword [ebx + 0xb0]
call fcn.00488430
inc ebp
cmp ebp, 0xc
jl 0x489744
mov eax, dword [ebx + 0x9c]
add dword [eax + 0x3c], 0xc
mov dword [ebx + 0xa0], 1
pop ebp
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00436eab
add esp, 0x24
ret
push ebp
call fcn.00437108
mov ecx, dword [esp + 0x34]
add esp, 4
pop ebp
mov eax, esi
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.00436eab
add esp, 0x24
ret