Function at 0x405170
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4cd140
call fcn.004cce90
cmp eax, 0
je 0x4cd14b
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 0x4cd164
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]
mov edi, edi
add edi, 0x10
mov esi, eax
and esi, 0x80808080
mov ebp, esi
shr ebp, 7
lea ebx, [eax + eax]
sub esi, ebp
and ebx, 0xfefefefe
and esi, 0x1b1b1b1b
xor esi, ebx
mov ebx, esi
and esi, 0x80808080
mov ebp, esi
shr ebp, 7
lea ecx, [ebx + ebx]
sub esi, ebp
and ecx, 0xfefefefe
and esi, 0x1b1b1b1b
xor ebx, eax
xor esi, ecx
mov ecx, esi
and esi, 0x80808080
mov ebp, esi
shr ebp, 7
lea edx, [ecx + ecx]
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 esi, ebx
and esi, 0x80808080
mov ebp, esi
shr ebp, 7
lea ecx, [ebx + ebx]
sub esi, ebp
and ecx, 0xfefefefe
and esi, 0x1b1b1b1b
xor esi, ecx
mov ecx, esi
and esi, 0x80808080
mov ebp, esi
shr ebp, 7
lea edx, [ecx + ecx]
sub esi, ebp
and edx, 0xfefefefe
and esi, 0x1b1b1b1b
xor ecx, ebx
xor esi, edx
mov edx, esi
and esi, 0x80808080
mov ebp, esi
shr ebp, 7
lea eax, [edx + edx]
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 esi, ecx
and esi, 0x80808080
mov ebp, esi
shr ebp, 7
lea edx, [ecx + ecx]
sub esi, ebp
and edx, 0xfefefefe
and esi, 0x1b1b1b1b
xor esi, edx
mov edx, esi
and esi, 0x80808080
mov ebp, esi
shr ebp, 7
lea eax, [edx + edx]
sub esi, ebp
and eax, 0xfefefefe
and esi, 0x1b1b1b1b
xor edx, ecx
xor esi, eax
mov eax, esi
and esi, 0x80808080
mov ebp, esi
shr ebp, 7
lea ebx, [eax + eax]
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 esi, edx
and esi, 0x80808080
mov ebp, esi
shr ebp, 7
lea eax, [edx + edx]
sub esi, ebp
and eax, 0xfefefefe
and esi, 0x1b1b1b1b
xor esi, eax
mov eax, esi
and esi, 0x80808080
mov ebp, esi
shr ebp, 7
lea ebx, [eax + eax]
sub esi, ebp
and ebx, 0xfefefefe
and esi, 0x1b1b1b1b
xor eax, edx
xor esi, ebx
mov ebx, esi
and esi, 0x80808080
mov ebp, esi
shr ebp, 7
lea ecx, [ebx + ebx]
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 0x4cd1b4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret