Function at 0x4895d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
mov ebp, ecx
xor eax, eax
push esi
mov esi, dword [esp + 0x40]
mov ecx, 8
push edi
mov ebx, dword [ebp + 4]
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
sub ebx, 6
mov dword [esp + 0x10], ebp
xor edi, edi
mov dword [esp + 0x14], ebx
xor esi, esi
test ebx, ebx
jle 0x489668
jmp 0x489610
cmp edi, dword [ebp + 4]
jg 0x489825
cmp esi, ebx
jge 0x48965c
lea ecx, [ecx]
cmp eax, 4
jge 0x48965f
movzx ecx, byte [esp + esi*4 + 0x1c]
lea edx, [eax + edi*4]
mov byte [ebp + edx*4 + 0x18], cl
lea ecx, [eax + edi*4]
lea edx, [ecx*4]
inc eax
movzx ecx, byte [esp + esi*4 + 0x1d]
mov byte [edx + ebp + 0x19], cl
movzx ecx, byte [esp + esi*4 + 0x1e]
mov byte [edx + ebp + 0x1a], cl
movzx ecx, byte [esp + esi*4 + 0x1f]
inc esi
mov byte [edx + ebp + 0x1b], cl
cmp esi, ebx
jl 0x489620
cmp eax, 4
jne 0x489664
inc edi
xor eax, eax
cmp esi, ebx
jl 0x489610
cmp edi, dword [ebp + 4]
jg 0x489825
mov esi, 0x571190
jmp 0x489680
movzx ecx, byte [esp + ebx*4 + 0x19]
mov dl, byte [esp + 0x1c]
xor dl, byte [ecx + 0x570f90]
mov byte [esp + 0x1c], dl
movzx ecx, byte [esp + ebx*4 + 0x1a]
movzx ecx, byte [ecx + 0x570f90]
xor byte [esp + 0x1d], cl
movzx ecx, byte [esp + ebx*4 + 0x1b]
movzx ecx, byte [ecx + 0x570f90]
xor byte [esp + 0x1e], cl
movzx ecx, byte [esp + ebx*4 + 0x18]
movzx ecx, byte [ecx + 0x570f90]
xor byte [esp + 0x1f], cl
movzx ecx, byte [esi]
inc esi
xor byte [esp + 0x1c], cl
mov dword [esp + 0x18], esi
cmp ebx, 8
je 0x489710
cmp ebx, 1
jle 0x4897b7
lea esi, [esp + 0x1d]
lea ebp, [ebx - 1]
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 4]
xor byte [esi], cl
movzx ecx, byte [esi - 3]
xor byte [esi + 1], cl
movzx ecx, byte [esi - 2]
xor byte [esi + 2], cl
sub ebp, 1
jne 0x4896e4
mov ebp, dword [esp + 0x10]
jmp 0x4897b7
lea esi, [esp + 0x1d]
mov ebp, 3
lea esp, [esp]
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 4]
xor byte [esi], cl
movzx ecx, byte [esi - 3]
xor byte [esi + 1], cl
movzx ecx, byte [esi - 2]
xor byte [esi + 2], cl
sub ebp, 1
jne 0x489720
movzx ecx, byte [esp + 0x28]
lea ebx, [ebp + 3]
mov ebp, dword [esp + 0x10]
lea esi, [esp + 0x2d]
movzx ecx, byte [ecx + 0x570f90]
xor byte [esp + 0x2c], cl
movzx ecx, byte [esp + 0x29]
movzx ecx, byte [ecx + 0x570f90]
xor byte [esp + 0x2d], cl
movzx ecx, byte [esp + 0x2a]
movzx ecx, byte [ecx + 0x570f90]
xor byte [esp + 0x2e], cl
movzx ecx, byte [esp + 0x2b]
movzx ecx, byte [ecx + 0x570f90]
xor byte [esp + 0x2f], cl
mov edi, edi
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 4]
xor byte [esi], cl
movzx ecx, byte [esi - 3]
xor byte [esi + 1], cl
movzx ecx, byte [esi - 2]
xor byte [esi + 2], cl
sub ebx, 1
jne 0x489790
mov ebx, dword [esp + 0x14]
xor esi, esi
test ebx, ebx
jle 0x489818
lea ecx, [ecx]
cmp edi, dword [ebp + 4]
jg 0x48981b
cmp esi, ebx
jge 0x48980c
lea esp, [esp]
cmp eax, 4
jge 0x48980f
movzx ecx, byte [esp + esi*4 + 0x1c]
lea edx, [eax + edi*4]
mov byte [ebp + edx*4 + 0x18], cl
lea ecx, [eax + edi*4]
lea edx, [ecx*4]
inc eax
movzx ecx, byte [esp + esi*4 + 0x1d]
mov byte [edx + ebp + 0x19], cl
movzx ecx, byte [esp + esi*4 + 0x1e]
mov byte [edx + ebp + 0x1a], cl
movzx ecx, byte [esp + esi*4 + 0x1f]
inc esi
mov byte [edx + ebp + 0x1b], cl
cmp esi, ebx
jl 0x4897d0
cmp eax, 4
jne 0x489814
inc edi
xor eax, eax
cmp esi, ebx
jl 0x4897c0
cmp edi, dword [ebp + 4]
mov esi, dword [esp + 0x18]
jle 0x489680
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x30
ret 4