Function at 0x5371fa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x20]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp + 0x24], ecx
push edi
mov edi, dword [ebp + 0xc]
je 0x537406
movzx edx, byte [eax]
inc eax
mov ch, byte [eax]
mov dword [ebp - 4], eax
or edx, ecx
inc eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edx, ecx
inc eax
movzx ecx, byte [eax]
shl ecx, 0x18
or edx, ecx
xor ecx, ecx
inc eax
movzx ebx, byte [eax]
inc eax
mov ch, byte [eax]
or ebx, ecx
xor ecx, ecx
mov ch, byte [eax + 2]
inc eax
mov cl, byte [eax]
shl ecx, 0x10
or ebx, ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff8
mov dword [ebp + 8], ebx
js 0x537312
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp + 0xc], eax
neg eax
lea eax, [ecx + eax*8]
mov dword [ebp + 0x10], eax
movzx eax, byte [esi]
xor ecx, ecx
inc esi
mov ch, byte [esi]
push dword [ebp + 0x1c]
xor ebx, ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
inc esi
movzx ecx, byte [esi]
inc esi
mov bh, byte [esi]
xor eax, edx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
or ecx, ebx
inc esi
movzx ebx, byte [esi]
shl ebx, 0x10
or ecx, ebx
inc esi
movzx ebx, byte [esi]
shl ebx, 0x18
or ecx, ebx
xor ecx, dword [ebp + 8]
inc esi
mov dword [ebp - 0xc], ecx
call fcn.00536ff2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov byte [edi], al
add esp, 0x10
inc edi
mov ebx, eax
shr ebx, 8
mov byte [edi], bl
inc edi
mov ebx, eax
shr ebx, 0x10
mov byte [edi], bl
inc edi
mov edx, eax
shr eax, 0x18
mov byte [edi], al
inc edi
mov byte [edi], cl
inc edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
inc edi
mov eax, ecx
shr eax, 0x10
mov byte [edi], al
inc edi
mov dword [ebp + 8], ecx
shr ecx, 0x18
mov byte [edi], cl
inc edi
dec dword [ebp + 0xc]
jne 0x53726c
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
cmp ecx, 0xfffffff8
je 0x5373cb
lea ebx, [esi + ecx + 8]
add ecx, 7
xor esi, esi
xor eax, eax
cmp ecx, 7
ja case.default.0x53732b
jmp dword [ecx*4 + 0x537606]
dec ebx
movzx esi, byte [ebx]
shl esi, 0x18
dec ebx
movzx eax, byte [ebx]
shl eax, 0x10
or esi, eax
dec ebx
xor eax, eax
mov ah, byte [ebx]
or esi, eax
dec ebx
movzx eax, byte [ebx]
or esi, eax
dec ebx
movzx eax, byte [ebx]
shl eax, 0x18
dec ebx
movzx ecx, byte [ebx]
shl ecx, 0x10
or eax, ecx
dec ebx
xor ecx, ecx
mov ch, byte [ebx]
or eax, ecx
movzx ecx, byte [ebx - 1]
or eax, ecx
push dword [ebp + 0x1c]
xor esi, dword [ebp + 8]
push dword [ebp + 0x18]
xor eax, edx
push dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], esi
call fcn.00536ff2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov byte [edi], al
add esp, 0x10
mov ebx, eax
shr ebx, 8
inc edi
mov byte [edi], bl
mov ebx, eax
shr ebx, 0x10
inc edi
mov byte [edi], bl
mov edx, eax
shr eax, 0x18
inc edi
mov byte [edi], al
inc edi
mov byte [edi], cl
mov eax, ecx
shr eax, 8
inc edi
mov byte [edi], al
mov eax, ecx
inc edi
mov dword [ebp + 8], ecx
mov ebx, dword [ebp + 8]
shr eax, 0x10
shr ecx, 0x18
mov byte [edi], al
mov byte [edi + 1], cl
mov eax, dword [ebp + 0x20]
mov byte [eax], dl
mov eax, dword [ebp - 4]
mov ecx, edx
shr ecx, 8
mov byte [eax], cl
inc eax
mov ecx, edx
shr ecx, 0x10
mov byte [eax], cl
inc eax
shr edx, 0x18
mov byte [eax], dl
inc eax
mov byte [eax], bl
mov ecx, ebx
shr ecx, 8
inc eax
mov byte [eax], cl
mov ecx, ebx
inc eax
shr ecx, 0x10
shr ebx, 0x18
mov byte [eax], cl
mov byte [eax + 1], bl
jmp 0x537600
movzx ebx, byte [eax]
inc eax
mov ch, byte [eax]
mov dword [ebp - 4], eax
xor edx, edx
or ebx, ecx
inc eax
movzx ecx, byte [eax]
shl ecx, 0x10
or ebx, ecx
inc eax
movzx ecx, byte [eax]
shl ecx, 0x18
or ebx, ecx
inc eax
movzx ecx, byte [eax]
inc eax
mov dh, byte [eax]
or ecx, edx
inc eax
xor edx, edx
mov dh, byte [eax + 1]
mov dl, byte [eax]
mov eax, dword [ebp + 0x10]
shl edx, 0x10
or ecx, edx
add eax, 0xfffffff8
mov dword [ebp + 8], ecx
mov dword [ebp + 0x10], eax
js 0x53750c
lea ecx, [eax + 8]
shr ecx, 3
mov dword [ebp - 8], ecx
neg ecx
lea eax, [eax + ecx*8]
mov dword [ebp + 0x10], eax
movzx eax, byte [esi]
xor ecx, ecx
inc esi
mov ch, byte [esi]
push dword [ebp + 0x1c]
xor edx, edx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
inc esi
movzx ecx, byte [esi]
inc esi
mov dh, byte [esi]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
or ecx, edx
inc esi
movzx edx, byte [esi]
shl edx, 0x10
or ecx, edx
inc esi
movzx edx, byte [esi]
shl edx, 0x18
or ecx, edx
mov dword [ebp + 0x24], ecx
inc esi
mov dword [ebp - 0xc], ecx
call fcn.005370f6
xor ebx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
xor eax, dword [ebp - 0xc]
mov byte [edi], bl
add esp, 0x10
inc edi
mov ecx, ebx
shr ecx, 8
mov byte [edi], cl
inc edi
mov ecx, ebx
shr ecx, 0x10
mov byte [edi], cl
shr ebx, 0x18
inc edi
mov byte [edi], bl
mov ebx, dword [ebp + 0xc]
inc edi
mov byte [edi], al
inc edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
mov ecx, eax
inc edi
shr ecx, 0x10
mov byte [edi], cl
shr eax, 0x18
inc edi
mov byte [edi], al
mov eax, dword [ebp + 0x24]
inc edi
dec dword [ebp - 8]
mov dword [ebp + 8], eax
jne 0x53745e
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
cmp eax, 0xfffffff8
je 0x5375ca
movzx eax, byte [esi]
xor ecx, ecx
inc esi
mov ch, byte [esi]
push dword [ebp + 0x1c]
xor edx, edx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
inc esi
movzx ecx, byte [esi]
inc esi
mov dh, byte [esi]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
or ecx, edx
xor edx, edx
mov dh, byte [esi + 2]
inc esi
mov dl, byte [esi]
shl edx, 0x10
or ecx, edx
mov dword [ebp + 0x24], ecx
mov dword [ebp - 0xc], ecx
call fcn.005370f6
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
xor ebx, dword [ebp - 0x10]
xor eax, dword [ebp - 0xc]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 0x10
cmp ecx, 7
ja case.default.0x537582
jmp dword [ecx*4 + 0x537626]
dec edi
mov ecx, eax
shr ecx, 0x18
mov byte [edi], cl
dec edi
mov ecx, eax
shr ecx, 0x10
mov byte [edi], cl
dec edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
dec edi
mov byte [edi], al
dec edi
mov eax, ebx
shr eax, 0x18
mov byte [edi], al
dec edi
mov eax, ebx
shr eax, 0x10
mov byte [edi], al
dec edi
mov eax, ebx
shr eax, 8
mov byte [edi], al
mov byte [edi - 1], bl
mov eax, dword [ebp + 0x24]
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov ecx, eax
mov eax, dword [ebp + 0x20]
mov byte [eax], bl
mov eax, dword [ebp - 4]
mov edx, ebx
shr edx, 8
mov byte [eax], dl
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ebx, 0x18
mov byte [eax], bl
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
shr ecx, 0x18
mov byte [eax], dl
mov byte [eax + 1], cl
pop edi
pop esi
pop ebx
leave
ret