Function at 0x5355f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.0049f020
mov eax, dword [esp + 0x2c]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, 1
push edi
shl esi, cl
cmp ebp, dword [eax + 8]
mov edi, edx
mov ebx, ecx
mov dword [esp + 0x10], edi
jle 0x535624
push ebp
push eax
call fcn.004f1e70
add esp, 8
test eax, eax
jne 0x535630
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp ebx, 3
jg 0x53569b
xor ebx, ebx
test ebp, ebp
jle 0x535808
nop
xor edx, edx
xor ecx, ecx
test esi, esi
jle 0x53567d
jmp 0x535650
mov eax, ecx
xor eax, dword [esp + 0x44]
add ecx, 1
lea ebp, [eax - 1]
shr ebp, 0x1f
not eax
shr eax, 0x1f
and ebp, eax
mov eax, dword [edi + ecx*4 - 4]
neg ebp
and ebp, 1
neg ebp
and ebp, eax
or edx, ebp
cmp ecx, esi
jl 0x535650
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [eax + ebx*4], edx
lea eax, [esi*4]
add ebx, 1
add edi, eax
cmp ebx, ebp
jl 0x535640
jmp 0x535808
mov edx, dword [esp + 0x44]
lea ecx, [ebx - 2]
mov eax, edx
sar eax, cl
mov edi, 1
shl edi, cl
lea ebx, [eax - 1]
shr ebx, 0x1f
lea ecx, [edi - 1]
and edx, ecx
mov dword [esp + 0x44], edx
mov edx, eax
not edx
shr edx, 0x1f
and ebx, edx
mov ecx, eax
xor ecx, 1
lea edx, [ecx - 1]
not ecx
shr ecx, 0x1f
shr edx, 0x1f
and edx, ecx
mov ecx, eax
xor ecx, 2
lea ebp, [ecx - 1]
not ecx
shr ecx, 0x1f
shr ebp, 0x1f
and ebp, ecx
xor eax, 3
lea ecx, [eax - 1]
shr ecx, 0x1f
not eax
shr eax, 0x1f
and ecx, eax
neg ebx
neg edx
neg ebp
neg ecx
and ebx, 1
and edx, 1
and ebp, 1
and ecx, 1
xor eax, eax
neg edx
neg ebp
neg ecx
neg ebx
cmp dword [esp + 0x40], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
jle 0x535804
lea edx, [esi*4]
mov dword [esp + 0x34], edx
lea esp, [esp]
xor esi, esi
cmp edi, esi
mov dword [esp + 0x20], esi
jle 0x5357de
mov eax, dword [esp + 0x10]
lea edx, [eax + edi*4]
mov dword [esp + 0x1c], edx
lea edx, [eax + edi*8]
mov dword [esp + 0x18], edx
lea edx, [edi + edi*2]
lea eax, [eax + edx*4]
mov dword [esp + 0x14], eax
lea ebx, [ebx]
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
and edx, ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
and ecx, ebp
or ecx, edx
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
and edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x24]
or edx, ecx
mov eax, esi
xor eax, dword [esp + 0x44]
add esi, 1
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + esi*4 - 4]
neg ecx
and ecx, 1
and eax, ebx
neg ecx
or eax, edx
and ecx, eax
or dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
mov eax, 4
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
cmp esi, edi
jl 0x535770
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov edx, dword [edx]
mov esi, dword [esp + 0x20]
mov dword [edx + eax*4], esi
mov edx, dword [esp + 0x34]
add dword [esp + 0x10], edx
add eax, 1
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
jl 0x535740
mov ebp, dword [esp + 0x40]
test ebp, ebp
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 4], ebp
mov eax, ebp
jle 0x535834
mov edx, dword [ecx]
lea ebp, [edx + ebp*4 - 4]
jmp 0x535820
mov edx, dword [ebp]
sub ebp, 4
test edx, edx
jne 0x535831
sub eax, 1
test eax, eax
jg 0x535820
mov dword [ecx + 4], eax
cmp dword [ecx + 4], 0
jne 0x535841
mov dword [ecx + 0xc], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret