Function at 0x57d5af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
movzx edx, byte [ecx + 1]
movzx eax, byte [ecx]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [ecx + 5]
shl eax, 8
cmp dword [ebp + 0x24], 0
push edi
mov dword [ebp + 0x24], edx
je 0x57d7a9
movzx edi, byte [ecx + 4]
movzx ecx, byte [ecx + 7]
or edi, eax
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 8]
shl ecx, 8
movzx eax, byte [eax + 6]
or ecx, eax
mov eax, dword [ebp + 0x10]
shl ecx, 0x10
or edi, ecx
add eax, 0xfffffff8
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], eax
js 0x57d6e7
add eax, 8
shr eax, 3
mov dword [ebp - 4], eax
imul eax, eax, 0xfffffff8
add dword [ebp + 0x10], eax
jmp 0x57d634
mov edi, dword [ebp + 0xc]
movzx eax, byte [esi + 1]
movzx edx, byte [esi]
movzx ecx, byte [esi + 4]
push dword [ebp + 0x1c]
shl eax, 8
or edx, eax
movzx eax, byte [esi + 2]
push dword [ebp + 0x18]
shl eax, 0x10
push dword [ebp + 0x14]
or edx, eax
movzx eax, byte [esi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [esi + 5]
xor edx, dword [ebp + 0x24]
shl eax, 8
or ecx, eax
mov dword [ebp - 0xc], edx
movzx eax, byte [esi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 7]
shl eax, 0x18
add esi, 8
or ecx, eax
lea eax, [ebp - 0xc]
xor ecx, edi
push eax
mov dword [ebp - 8], ecx
call fcn.0057fa42
mov edx, dword [ebp - 0xc]
add esp, 0x10
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, 8
mov byte [ebx], dl
mov byte [ebx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ebx + 3], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 4], cl
mov byte [ebx + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 7], al
add ebx, 8
sub dword [ebp - 4], 1
mov dword [ebp + 0x24], edx
mov dword [ebp + 0xc], ecx
jne 0x57d631
mov eax, dword [ebp + 0x10]
jmp 0x57d6ea
mov ecx, dword [ebp + 0xc]
cmp eax, 0xfffffff8
je 0x57d972
lea ecx, [esi + 8]
xor esi, esi
add ecx, eax
mov edi, esi
add eax, 7
cmp eax, 7
ja case.default.0x57d704
jmp dword [eax*4 + 0x57d9cf]
dec ecx
movzx esi, byte [ecx]
shl esi, 0x18
dec ecx
movzx eax, byte [ecx]
shl eax, 0x10
or esi, eax
dec ecx
movzx eax, byte [ecx]
shl eax, 8
or esi, eax
dec ecx
movzx eax, byte [ecx]
or esi, eax
dec ecx
movzx edi, byte [ecx]
shl edi, 0x18
dec ecx
movzx eax, byte [ecx]
shl eax, 0x10
or edi, eax
dec ecx
movzx eax, byte [ecx]
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
or edi, eax
push dword [ebp + 0x1c]
xor esi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push dword [ebp + 0x18]
xor edi, edx
mov dword [ebp - 8], esi
push dword [ebp + 0x14]
mov dword [ebp - 0xc], edi
push eax
call fcn.0057fa42
mov edx, dword [ebp - 0xc]
add esp, 0x10
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, 8
mov byte [ebx], dl
mov byte [ebx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ebx + 3], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 4], cl
mov byte [ebx + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 7], al
jmp 0x57d972
movzx esi, byte [ecx + 4]
movzx ecx, byte [ecx + 7]
or esi, eax
mov eax, dword [ebp + 0x20]
shl ecx, 8
movzx eax, byte [eax + 6]
or ecx, eax
shl ecx, 0x10
or esi, ecx
mov dword [ebp + 0xc], esi
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff8
js 0x57d89e
lea eax, [esi + 8]
shr eax, 3
mov dword [ebp + 0x10], eax
imul eax, eax, 0xfffffff8
add esi, eax
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
movzx eax, byte [ecx + 1]
movzx edi, byte [ecx]
movzx esi, byte [ecx + 4]
shl eax, 8
or edi, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
push dword [ebp + 0x14]
or edi, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [ecx + 5]
shl eax, 8
or esi, eax
mov dword [ebp - 0xc], edi
movzx eax, byte [ecx + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [ecx + 7]
shl eax, 0x18
add ecx, 8
or esi, eax
mov dword [ebp + 8], ecx
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
call fcn.0057d4ae
mov ecx, dword [ebp - 0xc]
add esp, 0x10
xor ecx, dword [ebp + 0x24]
mov edx, dword [ebp - 8]
mov eax, ecx
xor edx, dword [ebp + 0xc]
mov byte [ebx], cl
shr eax, 8
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr ecx, 0x18
mov byte [ebx + 3], cl
mov ecx, esi
mov byte [ebx + 4], dl
shr eax, 8
mov byte [ebx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ebx + 6], al
mov byte [ebx + 7], dl
add ebx, 8
sub dword [ebp + 0x10], 1
mov edx, edi
mov dword [ebp + 0x24], edx
mov dword [ebp + 0xc], ecx
jne 0x57d7e4
mov esi, dword [ebp - 4]
jmp 0x57d8a1
mov ecx, dword [ebp + 0xc]
cmp esi, 0xfffffff8
je 0x57d972
mov edx, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
movzx eax, byte [edx + 1]
movzx edi, byte [edx]
movzx ecx, byte [edx + 4]
shl eax, 8
or edi, eax
movzx eax, byte [edx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [edx + 3]
push dword [ebp + 0x14]
shl eax, 0x18
or edi, eax
movzx eax, byte [edx + 5]
shl eax, 8
or ecx, eax
mov dword [ebp - 0xc], edi
movzx eax, byte [edx + 6]
mov dword [ebp + 0x10], ecx
movzx ecx, byte [edx + 7]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0x10]
shl ecx, 0x10
or eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0057d4ae
mov eax, dword [ebp - 0xc]
lea ecx, [esi + 8]
mov edx, dword [ebp - 8]
add esi, 7
xor eax, dword [ebp + 0x24]
add esp, 0x10
xor edx, dword [ebp + 0xc]
add ecx, ebx
mov dword [ebp + 8], eax
cmp esi, 7
ja case.default.0x57d92a
jmp dword [esi*4 + 0x57d9ef]
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 eax, dword [ebp + 8]
dec ecx
mov byte [ecx], dl
dec ecx
shr eax, 0x18
mov byte [ecx], al
mov eax, dword [ebp + 8]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [ebp + 8]
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp + 8]
mov byte [ecx - 1], al
mov ecx, dword [ebp + 0x10]
mov edx, edi
mov eax, ecx
mov ebx, ecx
shr eax, 0x10
mov dword [ebp - 4], eax
mov eax, ecx
shr eax, 8
mov dword [ebp + 0x24], eax
mov eax, edx
shr eax, 0x18
mov dword [ebp + 0xc], eax
mov eax, edx
shr eax, 0x10
mov dword [ebp + 0x10], eax
mov eax, edx
shr ebx, 0x18
shr eax, 8
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x20]
pop edi
pop esi
mov byte [eax], dl
mov edx, dword [ebp + 8]
mov byte [eax + 1], dl
mov edx, dword [ebp + 0x10]
mov byte [eax + 2], dl
mov edx, dword [ebp + 0xc]
mov byte [eax + 3], dl
mov byte [eax + 4], cl
mov ecx, dword [ebp + 0x24]
mov byte [eax + 5], cl
mov ecx, dword [ebp - 4]
mov byte [eax + 6], cl
mov byte [eax + 7], bl
pop ebx
leave
ret