Function at 0x503ab0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x628d00]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
mov ebp, dword [esp + 0x5c]
push esi
mov esi, dword [ebp + 4]
push edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebp
test esi, esi
je 0x503afd
mov edx, dword [ebp + 8]
mov ecx, edx
lea esp, [esp]
cmp dword [ecx], 0
jne 0x503b15
inc eax
add ecx, 4
cmp eax, esi
jb 0x503af0
lea ecx, [esp + 0x24]
call fcn.00500f10
push 0x606c24
lea ecx, [esp + 0x28]
push ecx
call fcn.00531c74
test esi, esi
je 0x503b2b
lea eax, [edx + esi*4 - 4]
lea ecx, [ecx]
cmp dword [eax], 0
jne 0x503b8d
sub eax, 4
dec esi
jne 0x503b20
xor eax, eax
dec eax
mov dword [esp + 0x20], eax
add eax, 0x20
shr eax, 5
push eax
mov ecx, ebx
call fcn.00501660
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
add eax, eax
add eax, eax
push eax
push 0
push ecx
call fcn.00531690
mov esi, dword [edi + 4]
mov ecx, dword [edi + 8]
add esp, 0xc
test esi, esi
je 0x503b6f
lea eax, [ecx + esi*4 - 4]
cmp dword [eax], 0
jne 0x503ba6
sub eax, 4
dec esi
jne 0x503b64
xor edi, edi
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 8]
test esi, esi
je 0x503bdc
lea eax, [ecx + esi*4 - 4]
nop
cmp dword [eax], 0
jne 0x503bc1
sub eax, 4
dec esi
jne 0x503b80
jmp 0x503bdc
test esi, esi
je 0x503b2b
lea edx, [edx + esi*4 - 4]
push edx
call fcn.00488ab0
dec esi
shl esi, 5
add esp, 4
add eax, esi
jmp 0x503b2d
test esi, esi
je 0x503b6f
lea edx, [ecx + esi*4 - 4]
push edx
call fcn.00488ab0
lea edi, [esi - 1]
shl edi, 5
add esp, 4
add edi, eax
jmp 0x503b71
test esi, esi
je 0x503bdc
lea eax, [ecx + esi*4 - 4]
push eax
call fcn.00488ab0
dec esi
shl esi, 5
add eax, esi
add esp, 4
cmp edi, eax
jb 0x503c1e
mov ecx, ebp
call fcn.00500a10
mov edi, dword [esp + 0x1c]
mov esi, 0x20
mov ecx, edi
sub esi, eax
call fcn.00500a10
add esi, eax
shr esi, 5
push esi
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00501660
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
add ecx, ecx
add ecx, ecx
push ecx
push 0
push edx
call fcn.00531690
add esp, 0xc
jmp 0x503c52
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
test ecx, ecx
je 0x503c44
mov edi, edx
xor eax, eax
push edx
rep stosd dword es:[edi], eax
call fcn.00493190
push 0
call fcn.004956b0
add esp, 8
xor edx, edx
mov edi, dword [esp + 0x1c]
mov dword [esi + 8], edx
mov dword [esi + 4], 0
mov esi, dword [edi + 4]
mov ecx, dword [edi + 8]
test esi, esi
je 0x503c6f
lea eax, [ecx + esi*4 - 4]
cmp dword [eax], 0
jne 0x503cf5
sub eax, 4
dec esi
jne 0x503c60
xor eax, eax
lea edi, [eax - 1]
mov eax, 1
mov ecx, edi
rol eax, cl
mov dword [esp + 0x18], eax
test edi, edi
js 0x503d81
lea esp, [esp]
mov edx, dword [ebx + 4]
test edx, edx
je 0x503cd2
mov ecx, dword [ebx + 8]
xor esi, esi
lea esp, [esp]
mov eax, dword [ecx]
lea ebp, [eax + eax]
or ebp, esi
mov dword [ecx], ebp
shr eax, 0x1f
add ecx, 4
dec edx
mov esi, eax
jne 0x503ca0
test esi, esi
je 0x503cce
mov ecx, dword [ebx + 4]
inc ecx
push ecx
mov ecx, ebx
call fcn.00502990
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov dword [eax + edx*4 - 4], esi
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx + 8]
mov esi, edi
shr esi, 5
cmp esi, dword [eax + 4]
jae 0x503d15
mov eax, dword [eax + 8]
mov eax, dword [eax + esi*4]
mov ecx, edi
and ecx, 0x1f
shr eax, cl
and eax, 1
jmp 0x503d17
test esi, esi
je 0x503c6f
lea eax, [ecx + esi*4 - 4]
push eax
call fcn.00488ab0
dec esi
shl esi, 5
add esp, 4
add eax, esi
jmp 0x503c71
xor eax, eax
mov ecx, dword [esp + 0x20]
or dword [edx], eax
push ecx
mov ecx, ebx
call fcn.00500950
test eax, eax
je 0x503d70
mov edx, dword [ebp + 4]
push edx
mov ecx, ebx
call fcn.00502a30
mov edx, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 8]
test edx, edx
je 0x503d52
sub ecx, eax
mov ebp, dword [ecx + eax]
xor dword [eax], ebp
add eax, 4
dec edx
jne 0x503d43
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea eax, [esi + 1]
push eax
call fcn.00502a30
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x18]
or dword [edx + esi*4], ecx
lea eax, [edx + esi*4]
mov edx, dword [esp + 0x18]
ror edx, 1
dec edi
mov dword [esp + 0x18], edx
jns 0x503c90
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00531be5
add esp, 0x44
ret