Function at 0x512580
Capabilities:
Encode data using xor

Disassembly:
call fcn.00414cc0
cmp eax, 0
je 0x414faf
ret
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xf0]
lea ecx, [ecx*4]
lea edi, [esi + ecx*4]
nop
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
add esi, 0x10
sub edi, 0x10
cmp esi, edi
jne 0x414fc8
mov edi, dword [esp + 0x1c]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0x10]
nop
nop
add edi, 0x10
mov ebp, 0x80808080
and ebp, eax
lea ebx, [eax + eax]
mov esi, ebp
shr ebp, 7
sub esi, ebp
and ebx, 0xfefefefe
and esi, 0x1b1b1b1b
xor ebx, esi
mov ebp, 0x80808080
and ebp, ebx
lea ecx, [ebx + ebx]
mov esi, ebp
shr ebp, 7
sub esi, ebp
and ecx, 0xfefefefe
and esi, 0x1b1b1b1b
xor ebx, eax
xor ecx, esi
mov ebp, 0x80808080
and ebp, ecx
lea edx, [ecx + ecx]
mov esi, ebp
shr ebp, 7
xor ecx, eax
sub esi, ebp
and edx, 0xfefefefe
and esi, 0x1b1b1b1b
rol eax, 8
xor edx, esi
mov ebp, dword [edi + 4]
xor eax, ebx
xor ebx, edx
xor eax, ecx
rol ebx, 0x18
xor ecx, edx
xor eax, edx
rol ecx, 0x10
xor eax, ebx
rol edx, 8
xor eax, ecx
mov ebx, ebp
xor eax, edx
mov dword [edi], eax
mov ebp, 0x80808080
and ebp, ebx
lea ecx, [ebx + ebx]
mov esi, ebp
shr ebp, 7
sub esi, ebp
and ecx, 0xfefefefe
and esi, 0x1b1b1b1b
xor ecx, esi
mov ebp, 0x80808080
and ebp, ecx
lea edx, [ecx + ecx]
mov esi, ebp
shr ebp, 7
sub esi, ebp
and edx, 0xfefefefe
and esi, 0x1b1b1b1b
xor ecx, ebx
xor edx, esi
mov ebp, 0x80808080
and ebp, edx
lea eax, [edx + edx]
mov esi, ebp
shr ebp, 7
xor edx, ebx
sub esi, ebp
and eax, 0xfefefefe
and esi, 0x1b1b1b1b
rol ebx, 8
xor eax, esi
mov ebp, dword [edi + 8]
xor ebx, ecx
xor ecx, eax
xor ebx, edx
rol ecx, 0x18
xor edx, eax
xor ebx, eax
rol edx, 0x10
xor ebx, ecx
rol eax, 8
xor ebx, edx
mov ecx, ebp
xor ebx, eax
mov dword [edi + 4], ebx
mov ebp, 0x80808080
and ebp, ecx
lea edx, [ecx + ecx]
mov esi, ebp
shr ebp, 7
sub esi, ebp
and edx, 0xfefefefe
and esi, 0x1b1b1b1b
xor edx, esi
mov ebp, 0x80808080
and ebp, edx
lea eax, [edx + edx]
mov esi, ebp
shr ebp, 7
sub esi, ebp
and eax, 0xfefefefe
and esi, 0x1b1b1b1b
xor edx, ecx
xor eax, esi
mov ebp, 0x80808080
and ebp, eax
lea ebx, [eax + eax]
mov esi, ebp
shr ebp, 7
xor eax, ecx
sub esi, ebp
and ebx, 0xfefefefe
and esi, 0x1b1b1b1b
rol ecx, 8
xor ebx, esi
mov ebp, dword [edi + 0xc]
xor ecx, edx
xor edx, ebx
xor ecx, eax
rol edx, 0x18
xor eax, ebx
xor ecx, ebx
rol eax, 0x10
xor ecx, edx
rol ebx, 8
xor ecx, eax
mov edx, ebp
xor ecx, ebx
mov dword [edi + 8], ecx
mov ebp, 0x80808080
and ebp, edx
lea eax, [edx + edx]
mov esi, ebp
shr ebp, 7
sub esi, ebp
and eax, 0xfefefefe
and esi, 0x1b1b1b1b
xor eax, esi
mov ebp, 0x80808080
and ebp, eax
lea ebx, [eax + eax]
mov esi, ebp
shr ebp, 7
sub esi, ebp
and ebx, 0xfefefefe
and esi, 0x1b1b1b1b
xor eax, edx
xor ebx, esi
mov ebp, 0x80808080
and ebp, ebx
lea ecx, [ebx + ebx]
mov esi, ebp
shr ebp, 7
xor ebx, edx
sub esi, ebp
and ecx, 0xfefefefe
and esi, 0x1b1b1b1b
rol edx, 8
xor ecx, esi
mov ebp, dword [edi + 0x10]
xor edx, eax
xor eax, ecx
xor edx, ebx
rol eax, 0x18
xor ebx, ecx
xor edx, ecx
rol ebx, 0x10
xor edx, eax
rol ecx, 8
xor edx, ebx
mov eax, ebp
xor edx, ecx
mov dword [edi + 0xc], edx
cmp edi, dword [esp + 0x1c]
jb 0x41501c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
jmp 0x414fa0