Function at 0x490d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x899944]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], eax
test ecx, ecx
je 0x490fec
push ebx
push edi
lea esp, [esp]
cmp dword [esi + 0x40], 0x40
jb 0x490fb9
mov ecx, 0x10
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x44]
mov dword [ebp - 0x50], 0xa
add ebx, edx
mov ecx, dword [ebp - 0x24]
mov eax, esi
xor eax, ebx
rol eax, 0x10
add ecx, eax
mov edi, ecx
xor edi, edx
rol edi, 0xc
add ebx, edi
xor eax, ebx
rol eax, 8
add ecx, eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, ecx
xor eax, edi
rol eax, 7
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
xor ecx, eax
rol ecx, 0x10
add edx, ecx
mov edi, edx
xor edi, dword [ebp - 0x30]
rol edi, 0xc
add eax, edi
xor ecx, eax
rol ecx, 8
add edx, ecx
mov dword [ebp - 0x10], ecx
mov ecx, edx
xor ecx, edi
mov edi, dword [ebp - 0x1c]
rol ecx, 7
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x3c]
add ecx, esi
xor edx, ecx
rol edx, 0x10
add edi, edx
mov dword [ebp - 0x1c], edi
xor edi, esi
mov esi, dword [ebp - 0x1c]
rol edi, 0xc
add ecx, edi
xor edx, ecx
rol edx, 8
add esi, edx
mov dword [ebp - 0xc], edx
mov edx, esi
xor edx, edi
mov edi, dword [ebp - 0x28]
rol edx, 7
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x38]
add edx, edi
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 8]
xor esi, edx
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x18]
rol esi, 0x10
add edx, esi
mov dword [ebp - 0x18], edx
xor edx, edi
mov edi, dword [ebp - 0x38]
rol edx, 0xc
add edi, edx
xor esi, edi
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x18]
rol esi, 8
add edi, esi
mov dword [ebp - 0x18], edi
add ebx, dword [ebp - 0x30]
add eax, dword [ebp - 0x2c]
xor edi, edx
mov edx, dword [ebp - 0x1c]
xor esi, ebx
rol edi, 7
rol esi, 0x10
add edx, esi
mov dword [ebp - 0x1c], edx
xor edx, dword [ebp - 0x30]
mov dword [ebp - 8], esi
rol edx, 0xc
add ebx, edx
mov dword [ebp - 0x30], edx
mov edx, esi
mov esi, dword [ebp - 0x1c]
xor edx, ebx
rol edx, 8
add esi, edx
mov dword [ebp - 8], edx
mov edx, eax
xor edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
xor esi, dword [ebp - 0x30]
add ecx, edi
rol esi, 7
rol edx, 0x10
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x18]
add esi, edx
mov edx, esi
xor edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], esi
rol edx, 0xc
add eax, edx
mov dword [ebp - 0x40], eax
xor eax, dword [ebp - 0x14]
rol eax, 8
mov esi, eax
mov eax, dword [ebp - 0x18]
add eax, esi
mov dword [ebp - 0x18], eax
xor eax, edx
rol eax, 7
mov edx, ecx
xor edx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
rol edx, 0x10
add eax, edx
xor edi, eax
rol edi, 0xc
add ecx, edi
mov dword [ebp - 0x3c], ecx
xor ecx, edx
rol ecx, 8
add eax, ecx
xor edi, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x34]
rol edi, 7
mov edx, eax
xor edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x20]
rol edx, 0x10
add ecx, edx
mov dword [ebp - 0x28], edi
mov edi, ecx
xor edi, dword [ebp - 0x34]
mov dword [ebp - 0x14], esi
rol edi, 0xc
add eax, edi
mov dword [ebp - 0x38], eax
xor eax, edx
rol eax, 8
add ecx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], ecx
xor ecx, edi
rol ecx, 7
dec dword [ebp - 0x50]
mov edx, ecx
mov dword [ebp - 0x34], edx
jne 0x490d74
mov edi, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
lea esi, [ebp - 0x40]
xor ecx, ecx
sub edx, edi
mov dword [ebp - 0x44], ebx
lea eax, [edi + 8]
sub esi, edi
mov ebx, dword [eax - 8]
add dword [ebp + ecx*4 - 0x44], ebx
mov ebx, dword [eax - 4]
add dword [ebp + ecx*4 - 0x40], ebx
mov ebx, dword [eax]
add dword [edx + eax], ebx
mov ebx, dword [eax + 4]
add dword [esi + eax], ebx
add ecx, 4
add eax, 0x10
cmp ecx, 0x10
jl 0x490f43
xor esi, esi
lea eax, [edi + 0x45]
lea esp, [esp]
mov cl, byte [ebp + esi*4 - 0x44]
mov byte [eax - 1], cl
mov ecx, dword [ebp + esi*4 - 0x44]
mov edx, ecx
shr edx, 8
mov byte [eax], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 0x18
mov byte [eax + 1], dl
mov byte [eax + 2], cl
inc esi
add eax, 4
cmp esi, 0x10
jl 0x490f70
mov ecx, dword [ebp + 0xc]
mov edx, 1
add dword [edi + 0x30], edx
mov dword [edi + 0x40], 0
mov esi, edi
jne 0x490fb4
mov eax, edi
add dword [eax + 0x34], edx
mov eax, dword [ebp - 0x4c]
jmp 0x490fbe
mov edx, 1
mov edi, 0x40
test ecx, ecx
je 0x490fea
mov ebx, dword [esi + 0x40]
mov bl, byte [ebx + esi + 0x44]
xor byte [eax], bl
add dword [esi + 0x40], edx
add eax, edx
sub ecx, edx
mov dword [ebp - 0x4c], eax
mov dword [ebp + 0xc], ecx
cmp dword [esi + 0x40], edi
jb 0x490fc3
test ecx, ecx
jne 0x490d50
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret