Function at 0x5a3e55
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.005a3de0
mov ecx, dword [esp + 0x28]
shr ecx, 2
xor eax, eax
test ecx, ecx
je 0x5a3e82
mov edx, dword [esp + 0x24]
mov edi, dword [edx + eax*4]
mov ebx, dword [esp + 0x10]
mov dword [ebx + eax*4], edi
inc eax
cmp eax, ecx
jne 0x5a3e73
mov eax, dword [esp + 0x10]
xor edi, edi
mov dword [eax + ecx*4], ecx
lea eax, [edi + 8]
mov edi, edi
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x34]
xor edx, dword [ecx + 0x20]
lea ebx, [eax - 8]
rol edx, 3
xor edx, ebx
xor dword [ecx], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x38]
xor edx, dword [ecx + 0x24]
lea ebx, [eax - 4]
rol edx, 3
xor edx, ebx
xor dword [ecx + 4], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x28]
xor edx, dword [ecx]
lea ebx, [eax + 4]
rol edx, 3
xor edx, eax
xor dword [ecx + 8], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x2c]
xor edx, dword [ecx + 4]
rol edx, 3
xor edx, ebx
xor dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x30]
xor edx, dword [ecx + 8]
lea ebx, [eax + 8]
rol edx, 3
xor edx, ebx
xor dword [ecx + 0x10], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x34]
xor edx, dword [ecx + 0xc]
lea ebx, [eax + 0xc]
rol edx, 3
xor edx, ebx
xor dword [ecx + 0x14], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x38]
xor edx, dword [ecx + 0x10]
lea ebx, [eax + 0x10]
rol edx, 3
xor edx, ebx
xor dword [ecx + 0x18], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x14]
xor edx, dword [ecx]
lea ebx, [eax + 0x14]
rol edx, 3
xor edx, ebx
xor dword [ecx + 0x1c], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x18]
xor edx, dword [ecx + 4]
lea ebx, [eax + 0x18]
rol edx, 3
xor edx, ebx
xor dword [ecx + 0x20], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x1c]
xor edx, dword [ecx + 8]
lea ebx, [eax + 0x1c]
rol edx, 3
xor edx, ebx
xor dword [ecx + 0x24], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x20]
xor edx, dword [ecx + 0xc]
lea ebx, [eax + 0x20]
rol edx, 3
xor edx, ebx
xor dword [ecx + 0x28], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x24]
xor edx, dword [ecx + 0x10]
lea ebx, [eax + 0x24]
rol edx, 3
xor edx, ebx
xor dword [ecx + 0x2c], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x28]
xor edx, dword [ecx + 0x14]
lea ebx, [eax + 0x28]
rol edx, 3
xor edx, ebx
xor dword [ecx + 0x30], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x2c]
xor edx, dword [ecx + 0x18]
lea ebx, [eax + 0x2c]
rol edx, 3
xor edx, ebx
xor dword [ecx + 0x34], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x30]
xor edx, dword [ecx + 0x1c]
lea ebx, [eax + 0x30]
rol edx, 3
xor edx, ebx
xor dword [ecx + 0x38], edx
mov edx, 4
lea ebx, [ebx]
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0x38]
and ebx, 0x1ff
mov ebx, dword [ebx*4 + 0x5eab40]
add ebx, dword [ecx]
rol ebx, 9
mov dword [ecx], ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx]
and ebx, 0x1ff
mov ebx, dword [ebx*4 + 0x5eab40]
add ebx, dword [ecx + 4]
rol ebx, 9
mov dword [ecx + 4], ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 4]
and ebx, 0x1ff
mov ebx, dword [ebx*4 + 0x5eab40]
add ebx, dword [ecx + 8]
rol ebx, 9
mov dword [ecx + 8], ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 8]
and ebx, 0x1ff
mov ebx, dword [ebx*4 + 0x5eab40]
add ebx, dword [ecx + 0xc]
rol ebx, 9
mov dword [ecx + 0xc], ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0xc]
and ebx, 0x1ff
mov ebx, dword [ebx*4 + 0x5eab40]
add ebx, dword [ecx + 0x10]
rol ebx, 9
mov dword [ecx + 0x10], ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0x10]
and ebx, 0x1ff
mov ebx, dword [ebx*4 + 0x5eab40]
add ebx, dword [ecx + 0x14]
rol ebx, 9
mov dword [ecx + 0x14], ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0x14]
and ebx, 0x1ff
mov ebx, dword [ebx*4 + 0x5eab40]
add ebx, dword [ecx + 0x18]
rol ebx, 9
mov dword [ecx + 0x18], ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0x18]
and ebx, 0x1ff
mov ebx, dword [ebx*4 + 0x5eab40]
add ebx, dword [ecx + 0x1c]
rol ebx, 9
mov dword [ecx + 0x1c], ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0x1c]
and ebx, 0x1ff
mov ebx, dword [ebx*4 + 0x5eab40]
add ebx, dword [ecx + 0x20]
rol ebx, 9
mov dword [ecx + 0x20], ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0x20]
and ebx, 0x1ff
mov ebx, dword [ebx*4 + 0x5eab40]
add ebx, dword [ecx + 0x24]
rol ebx, 9
mov dword [ecx + 0x24], ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0x24]
and ebx, 0x1ff
mov ebx, dword [ebx*4 + 0x5eab40]
add ebx, dword [ecx + 0x28]
rol ebx, 9
mov dword [ecx + 0x28], ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0x28]
and ebx, 0x1ff
mov ebx, dword [ebx*4 + 0x5eab40]
add ebx, dword [ecx + 0x2c]
rol ebx, 9
mov dword [ecx + 0x2c], ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0x2c]
and ebx, 0x1ff
mov ebx, dword [ebx*4 + 0x5eab40]
add ebx, dword [ecx + 0x30]
rol ebx, 9
mov dword [ecx + 0x30], ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0x30]
and ebx, 0x1ff
mov ebx, dword [ebx*4 + 0x5eab40]
add ebx, dword [ecx + 0x34]
rol ebx, 9
mov dword [ecx + 0x34], ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0x34]
and ebx, 0x1ff
mov ebx, dword [ebx*4 + 0x5eab40]
add ebx, dword [ecx + 0x38]
rol ebx, 9
sub edx, 1
mov dword [ecx + 0x38], ebx
jne 0x5a3fd0
mov edx, dword [esp + 0x10]
mov edx, dword [edx]
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [ecx + edi + 4], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x20]
mov ecx, dword [esi + 0x14]
mov dword [ecx + edi + 8], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x30]
mov ecx, dword [esi + 0x14]
mov dword [ecx + edi + 0xc], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 4]
mov ecx, dword [esi + 0x14]
mov dword [ecx + edi + 0x10], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x14]
mov ecx, dword [esi + 0x14]
mov dword [ecx + edi + 0x14], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x24]
mov ecx, dword [esi + 0x14]
mov dword [ecx + edi + 0x18], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x34]
mov ecx, dword [esi + 0x14]
mov dword [ecx + edi + 0x1c], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 8]
mov ecx, dword [esi + 0x14]
mov dword [ecx + edi + 0x20], edx
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [edx + 0x18]
inc eax
mov dword [ecx + edi + 0x24], edx
lea ecx, [eax - 8]
add edi, 0x28
cmp ecx, 4
jne 0x5a3e90
mov ebp, 0x14
jmp 0x5a4230
mov edx, dword [esi + 0x14]
mov ebx, dword [edx + ebp]
or dword [edx + ebp], 3
lea eax, [edx + ebp]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + ebp]
lea edi, [eax + ebp]
push ecx
and ebx, 3
call fcn.005a2e80
mov ecx, dword [edi - 4]
mov edx, dword [ebx*4 + 0x5eaf64]
and ecx, 0x1f
add esp, 4
rol edx, cl
add ebp, 8
and eax, edx
xor dword [edi], eax
cmp ebp, 0x94
jne 0x5a4230
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add edx, edx
add edx, edx
push edx
mov edx, dword [esp + 0x14]
push edx
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8