Function at 0x5309d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
sub esp, 0x20
cmp dword [ebp + 0x1c], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
lea edi, [eax + 1]
movzx eax, byte [eax]
je 0x530bf9
movzx edx, byte [edi]
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, eax
mov esi, dword [ebp + 0xc]
movzx eax, byte [edi + 1]
shl eax, 0x10
or edx, eax
movzx eax, byte [edi + 2]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 4]
shl eax, 8
or ecx, eax
mov dword [ebp + 0x1c], edx
movzx eax, byte [edi + 5]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 6]
shl eax, 0x18
dec edi
or ecx, eax
mov dword [ebp - 0x20], edi
add ebx, 0xfffffff8
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ebx
js 0x530b0d
lea edi, [ebx + 8]
shr edi, 3
mov eax, edi
neg eax
lea ebx, [ebx + eax*8]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
nop word [eax + eax]
movzx eax, byte [ebx + 1]
movzx edx, byte [ebx]
movzx ecx, byte [ebx + 4]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
push dword [ebp + 0x14]
or edx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [ebx + 5]
xor edx, dword [ebp + 0x1c]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x1c], edx
movzx eax, byte [ebx + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add ebx, 8
or ecx, eax
lea eax, [ebp - 0x1c]
xor ecx, dword [ebp - 4]
push eax
mov dword [ebp - 0x18], ecx
call fcn.00531000
mov edx, dword [ebp - 0x1c]
add esp, 8
mov ecx, dword [ebp - 0x18]
mov eax, edx
shr eax, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 4], cl
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 7], al
add esi, 8
mov dword [ebp + 0x1c], edx
mov dword [ebp - 4], ecx
sub edi, 1
jne 0x530a60
mov edi, dword [ebp - 0x20]
jmp 0x530b10
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
cmp eax, 0xfffffff8
je 0x530be1
mov edx, dword [ebp - 0xc]
lea ecx, [eax + 8]
add ecx, ebx
add edx, 7
xor eax, eax
mov dword [ebp - 0x20], edx
xor ebx, ebx
mov dword [ebp + 0x10], eax
cmp edx, 7
ja case.default.0x530b36
jmp dword [edx*4 + 0x530e74]
movzx ebx, byte [ecx - 1]
dec ecx
shl ebx, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
mov dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
or dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
xor eax, dword [ebp + 0x1c]
push dword [ebp + 0x14]
xor ebx, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], ebx
call fcn.00531000
mov edx, dword [ebp - 0x1c]
add esp, 8
mov ecx, dword [ebp - 0x18]
mov eax, edx
shr eax, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 4], cl
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 7], al
inc edi
mov dword [ebp - 0x10], edi
inc edi
mov eax, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edi
add edi, 2
add eax, 4
jmp 0x530e15
mov esi, edi
movzx edx, byte [esi]
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl eax, 0x10
or edx, eax
movzx eax, byte [esi + 2]
shl eax, 0x18
or edx, eax
movzx eax, byte [esi + 4]
shl eax, 8
or ecx, eax
mov dword [ebp + 0x1c], edx
movzx eax, byte [esi + 5]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 6]
shl eax, 0x18
dec esi
or ecx, eax
mov dword [ebp - 0xc], esi
add ebx, 0xfffffff8
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], ebx
js 0x530d3d
lea eax, [ebx + 8]
shr eax, 3
mov dword [ebp - 0x10], eax
neg eax
lea ebx, [ebx + eax*8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
movzx eax, byte [ebx + 1]
movzx edi, byte [ebx]
movzx esi, byte [ebx + 4]
shl eax, 8
or edi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
push dword [ebp + 0x14]
or edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
or esi, eax
mov dword [ebp - 0x20], edi
movzx eax, byte [ebx + 6]
shl eax, 0x10
or esi, eax
mov dword [ebp - 0x1c], edi
movzx eax, byte [ebx + 7]
add ebx, 8
shl eax, 0x18
or esi, eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], esi
call fcn.00530ec0
mov eax, dword [ebp + 0x10]
add esp, 8
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x18]
mov byte [eax], cl
inc eax
xor edx, dword [ebp - 4]
mov dword [ebp + 0x10], eax
mov eax, ecx
mov edi, dword [ebp + 0x10]
inc dword [ebp + 0x10]
shr eax, 8
mov byte [edi], al
mov eax, ecx
mov edi, dword [ebp + 0x10]
shr eax, 0x10
shr ecx, 0x18
mov byte [edi], al
mov eax, edi
inc eax
mov dword [ebp + 0x10], eax
mov byte [eax], cl
mov ecx, eax
mov eax, edx
shr eax, 8
mov byte [ecx + 1], dl
mov byte [ecx + 2], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ecx + 3], al
mov byte [ecx + 4], dl
add ecx, 5
sub dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x20]
mov dword [ebp + 0x10], ecx
mov ecx, esi
mov dword [ebp + 0x1c], edx
mov dword [ebp - 4], ecx
jne 0x530c70
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 0x10]
jmp 0x530d43
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp dword [ebp - 8], 0xfffffff8
je 0x530e04
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 4]
push dword [ebp + 0x14]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx + 5]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [ebx + 7]
shl eax, 8
or edx, eax
shl ecx, 8
movzx eax, byte [ebx + 6]
or ecx, eax
lea eax, [ebp - 0x1c]
shl ecx, 0x10
or edx, ecx
push eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edx
call fcn.00530ec0
mov eax, dword [ebp - 8]
add esp, 8
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xor edx, dword [ebp + 0x1c]
xor ebx, dword [ebp - 4]
lea ecx, [eax + 8]
add eax, 7
add ecx, edi
cmp eax, 7
ja case.default.0x530dc1
jmp dword [eax*4 + 0x530e94]
dec ecx
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 8
mov byte [ecx], al
dec ecx
mov byte [ecx], bl
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
mov byte [ecx - 1], dl
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
inc esi
mov dword [ebp - 0x10], esi
inc esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], esi
lea edi, [esi + 2]
lea eax, [edi + 2]
mov esi, dword [ebp - 0x14]
mov ebx, ecx
mov dword [ebp - 0x20], eax
mov eax, ecx
mov dword [ebp - 4], edx
shr dword [ebp - 4], 0x18
mov byte [esi], dl
mov esi, dword [ebp - 0x10]
mov dword [ebp + 0x1c], edx
shr dword [ebp + 0x1c], 0x10
mov dword [ebp - 8], ecx
shr dword [ebp - 8], 8
mov dword [ebp + 0x10], edx
shr ebx, 0x10
shr eax, 0x18
shr dword [ebp + 0x10], 8
mov edx, dword [ebp + 0x10]
mov byte [esi], dl
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp + 0x1c]
mov byte [esi], dl
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov byte [esi + 1], dl
mov byte [edi], cl
mov ecx, dword [ebp - 8]
mov byte [edi + 1], cl
mov ecx, dword [ebp - 0x20]
pop edi
pop esi
mov byte [ecx], bl
mov byte [ecx + 1], al
pop ebx
mov esp, ebp
pop ebp
ret