Function at 0x56e9a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
mov cl, byte [edx]
and ecx, 0xff
mov esi, ecx
xor ecx, ecx
mov cl, byte [edx + 1]
shl ecx, 8
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov cl, byte [edx + 2]
shl ecx, 0x10
or dword [esp + 0x20], ecx
or dword [esp + 0x20], esi
xor ecx, ecx
mov cl, byte [edx + 3]
shl ecx, 0x18
or dword [esp + 0x20], ecx
mov cl, byte [edx + 4]
and ecx, 0xff
mov esi, ecx
xor ecx, ecx
mov cl, byte [edx + 5]
shl ecx, 8
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov cl, byte [edx + 6]
shl ecx, 0x10
or dword [esp + 0x24], ecx
or dword [esp + 0x24], esi
mov dl, byte [edx + 7]
and edx, 0xff
shl edx, 0x18
or dword [esp + 0x24], edx
xor ecx, ecx
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + 1]
shl edx, 8
mov dword [esp + 0x28], edx
xor edx, edx
mov dl, byte [eax + 2]
shl edx, 0x10
or dword [esp + 0x28], edx
or dword [esp + 0x28], ecx
xor edx, edx
mov dl, byte [eax + 3]
shl edx, 0x18
or dword [esp + 0x28], edx
xor ecx, ecx
mov cl, byte [eax + 4]
xor edx, edx
mov dl, byte [eax + 5]
shl edx, 8
mov dword [esp + 0x2c], edx
xor edx, edx
mov dl, byte [eax + 6]
shl edx, 0x10
or dword [esp + 0x2c], edx
or dword [esp + 0x2c], ecx
mov al, byte [eax + 7]
and eax, 0xff
shl eax, 0x18
or dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x80]
xor edx, edx
mov dl, byte [ecx]
mov al, byte [ecx + 1]
and eax, 0xff
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x56ed30
mov ebp, eax
shl ebp, 8
xor eax, eax
mov al, byte [ecx + 2]
shl eax, 0x10
or ebp, eax
or ebp, edx
xor eax, eax
mov al, byte [ecx + 3]
shl eax, 0x18
or ebp, eax
xor edx, edx
mov dl, byte [ecx + 4]
mov esi, ecx
xor ecx, ecx
mov cl, byte [esi + 5]
shl ecx, 8
xor eax, eax
mov al, byte [esi + 6]
shl eax, 0x10
or ecx, eax
or ecx, edx
xor eax, eax
mov al, byte [esi + 7]
shl eax, 0x18
or ecx, eax
mov eax, dword [esp + 0x78]
sub eax, 8
js 0x56f101
shr eax, 3
mov dword [esp + 0x38], eax
lea eax, [eax*8 + 8]
mov dword [esp + 0x3c], eax
add eax, ebx
mov dword [esp + 0x30], eax
mov esi, dword [esp + 0x70]
lea edx, [esp + 0x48]
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], ebp
lea esi, [esi]
lea edi, [edi]
mov al, byte [esi]
and eax, 0xff
mov edi, eax
mov dl, byte [esi + 1]
and edx, 0xff
mov ebp, edx
shl ebp, 8
xor eax, eax
mov al, byte [esi + 2]
shl eax, 0x10
or ebp, eax
or ebp, edi
xor eax, eax
mov al, byte [esi + 3]
shl eax, 0x18
or ebp, eax
xor eax, eax
mov al, byte [esi + 4]
mov dword [esp + 0x1c], eax
xor eax, eax
mov al, byte [esi + 5]
shl eax, 8
mov dl, byte [esi + 6]
and edx, 0xff
mov edi, edx
shl edi, 0x10
or eax, edi
or eax, dword [esp + 0x1c]
mov dl, byte [esi + 7]
and edx, 0xff
mov edi, edx
shl edi, 0x18
or eax, edi
add esi, 8
xor ebp, dword [esp + 0x20]
xor ebp, dword [esp + 0x14]
mov dword [esp + 0x48], ebp
xor eax, dword [esp + 0x24]
xor eax, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 8], 1
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.005311c0
mov edx, dword [esp + 0x28]
xor edx, dword [esp + 0x48]
mov dword [esp + 0x14], edx
mov byte [ebx], dl
mov eax, edx
shr eax, 8
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 ecx, dword [esp + 0x2c]
xor ecx, dword [esp + 0x4c]
mov byte [ebx + 4], cl
mov eax, ecx
shr eax, 8
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
cmp dword [esp + 0x30], ebx
jne 0x56eb20
mov ebp, edx
mov ebx, dword [esp + 0x3c]
add dword [esp + 0x70], ebx
mov eax, dword [esp + 0x38]
neg eax
mov esi, dword [esp + 0x78]
lea eax, [esi + eax*8 - 0x10]
cmp eax, 0xfffffff8
je 0x56f0d0
lea edx, [eax + 8]
mov eax, dword [esp + 0x70]
add eax, edx
cmp edx, 7
jbe switch.0x0056efe0
xor esi, esi
xor edx, edx
lea esi, [esi]
lea edi, [edi]
mov eax, dword [esp + 0x20]
xor eax, ebp
xor eax, edx
mov dword [esp + 0x48], eax
xor ecx, dword [esp + 0x24]
xor ecx, esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 8], 1
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], ecx
lea eax, [esp + 0x48]
mov dword [esp], eax
call fcn.005311c0
mov eax, dword [esp + 0x28]
xor eax, dword [esp + 0x48]
mov edi, eax
mov ebx, dword [esp + 0x30]
mov byte [ebx], al
mov edx, eax
shr edx, 8
mov byte [esp + 0x1c], dl
mov byte [ebx + 1], dl
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x20], dl
mov byte [ebx + 2], dl
shr eax, 0x18
mov byte [esp + 0x24], al
mov byte [ebx + 3], al
mov eax, dword [esp + 0x2c]
xor eax, dword [esp + 0x4c]
mov ebp, eax
mov byte [ebx + 4], al
mov edx, eax
shr edx, 8
mov bl, dl
mov esi, dword [esp + 0x30]
mov byte [esi + 5], dl
mov edx, eax
shr edx, 0x10
mov dword [esp + 0x28], edx
mov dl, byte [esp + 0x28]
mov byte [esi + 6], dl
shr eax, 0x18
mov dword [esp + 0x28], eax
mov cl, al
mov al, byte [esp + 0x28]
mov byte [esi + 7], al
mov eax, edi
mov esi, dword [esp + 0x80]
mov byte [esi], al
mov al, byte [esp + 0x1c]
mov byte [esi + 1], al
mov al, byte [esp + 0x20]
mov byte [esi + 2], al
mov al, byte [esp + 0x24]
mov byte [esi + 3], al
mov eax, ebp
mov byte [esi + 4], al
mov byte [esi + 5], bl
mov byte [esi + 6], dl
mov byte [esi + 7], cl
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, eax
shl edi, 8
xor eax, eax
mov al, byte [ecx + 2]
shl eax, 0x10
or edi, eax
or edi, edx
xor eax, eax
mov al, byte [ecx + 3]
shl eax, 0x18
or edi, eax
xor edx, edx
mov dl, byte [ecx + 4]
mov esi, ecx
xor ecx, ecx
mov cl, byte [esi + 5]
shl ecx, 8
xor eax, eax
mov al, byte [esi + 6]
shl eax, 0x10
or ecx, eax
or ecx, edx
xor eax, eax
mov al, byte [esi + 7]
shl eax, 0x18
or ecx, eax
mov esi, dword [esp + 0x78]
sub esi, 8
test esi, esi
jle 0x56f10a
mov eax, dword [esp + 0x78]
sub eax, 9
shr eax, 3
mov dword [esp + 0x38], eax
lea edx, [eax*8 + 8]
mov dword [esp + 0x3c], edx
add edx, ebx
mov dword [esp + 0x30], edx
mov ebp, dword [esp + 0x70]
lea esi, [esp + 0x48]
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], ecx
nop
xor ecx, ecx
mov cl, byte [ebp]
xor eax, eax
mov al, byte [ebp + 1]
shl eax, 8
xor edx, edx
mov dl, byte [ebp + 2]
shl edx, 0x10
or eax, edx
or eax, ecx
xor edx, edx
mov dl, byte [ebp + 3]
shl edx, 0x18
or eax, edx
mov edx, dword [esp + 0x28]
xor edx, eax
mov dword [esp + 0x48], edx
xor ecx, ecx
mov cl, byte [ebp + 4]
mov dl, byte [ebp + 5]
and edx, 0xff
mov esi, edx
shl esi, 8
xor edx, edx
mov dl, byte [ebp + 6]
shl edx, 0x10
or esi, edx
or esi, ecx
xor edx, edx
mov dl, byte [ebp + 7]
shl edx, 0x18
or esi, edx
add ebp, 8
mov edx, dword [esp + 0x2c]
xor edx, esi
mov dword [esp + 0x4c], edx
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x34]
mov dword [esp], edx
mov dword [esp + 0x18], eax
call fcn.005311c0
mov edx, dword [esp + 0x20]
xor edx, dword [esp + 0x48]
xor edx, edi
mov ecx, dword [esp + 0x24]
xor ecx, dword [esp + 0x4c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x1c]
xor dword [esp + 0x14], ecx
mov byte [ebx], dl
mov edi, edx
shr edi, 8
mov ecx, edi
mov byte [ebx + 1], cl
mov edi, edx
shr edi, 0x10
mov ecx, edi
mov byte [ebx + 2], cl
shr edx, 0x18
mov byte [ebx + 3], dl
mov dl, byte [esp + 0x14]
mov byte [ebx + 4], dl
mov edx, dword [esp + 0x14]
shr edx, 8
mov byte [ebx + 5], dl
mov edx, dword [esp + 0x14]
shr edx, 0x10
mov byte [ebx + 6], dl
mov ecx, dword [esp + 0x14]
shr ecx, 0x18
mov byte [ebx + 7], cl
add ebx, 8
mov eax, dword [esp + 0x18]
mov edi, eax
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x30], ebx
jne 0x56edb0
mov ecx, esi
mov ebx, dword [esp + 0x3c]
add dword [esp + 0x70], ebx
mov eax, dword [esp + 0x38]
neg eax
mov edx, dword [esp + 0x78]
lea esi, [edx + eax*8 - 0x10]
cmp esi, 0xfffffff8
je 0x56ef90
mov ebx, dword [esp + 0x70]
xor edx, edx
mov dl, byte [ebx]
mov al, byte [ebx + 1]
and eax, 0xff
mov ebp, eax
shl ebp, 8
xor eax, eax
mov al, byte [ebx + 2]
shl eax, 0x10
or ebp, eax
or ebp, edx
xor eax, eax
mov al, byte [ebx + 3]
shl eax, 0x18
or ebp, eax
mov eax, dword [esp + 0x28]
xor eax, ebp
mov dword [esp + 0x48], eax
xor edx, edx
mov dl, byte [ebx + 4]
mov dword [esp + 0x1c], edx
mov eax, ebx
xor ebx, ebx
mov bl, byte [eax + 5]
shl ebx, 8
mov edx, eax
xor eax, eax
mov al, byte [edx + 6]
shl eax, 0x10
or ebx, eax
or ebx, dword [esp + 0x1c]
xor eax, eax
mov al, byte [edx + 7]
shl eax, 0x18
or ebx, eax
mov eax, dword [esp + 0x2c]
xor eax, ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 8], 0
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
lea eax, [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 0x18], ecx
call fcn.005311c0
mov eax, dword [esp + 0x20]
xor eax, dword [esp + 0x48]
xor eax, edi
mov edx, dword [esp + 0x24]
xor edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
xor edx, ecx
mov dword [esp + 0x1c], edx
add esi, 8
mov ecx, dword [esp + 0x30]
add ecx, esi
cmp esi, 8
jbe switch.0x0056eff0
mov ecx, ebx
mov edi, ebp
lea esi, [esi]
lea edi, [edi]
mov ebx, edi
mov esi, dword [esp + 0x80]
mov byte [esi], bl
mov eax, edi
shr eax, 8
mov byte [esi + 1], al
mov eax, edi
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edi
shr eax, 0x18
mov byte [esi + 3], al
mov byte [esi + 4], cl
mov eax, ecx
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 6], al
shr ecx, 0x18
mov byte [esi + 7], cl
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
jmp dword [edx*4 + 0x611fb4]
jmp dword [esi*4 + 0x611fd4]
mov dl, byte [eax - 1]
and edx, 0xff
mov esi, edx
shl esi, 0x10
dec eax
lea ebx, [eax - 1]
xor edx, edx
mov dl, byte [eax - 1]
shl edx, 8
or edx, esi
lea eax, [ebx - 1]
mov bl, byte [ebx - 1]
and ebx, 0xff
mov esi, ebx
or esi, edx
lea edx, [eax - 1]
xor ebx, ebx
mov bl, byte [eax - 1]
shl ebx, 0x18
lea eax, [edx - 1]
mov dl, byte [edx - 1]
and edx, 0xff
shl edx, 0x10
or edx, ebx
lea ebx, [eax - 1]
mov al, byte [eax - 1]
and eax, 0xff
shl eax, 8
or eax, edx
xor edx, edx
mov dl, byte [ebx - 1]
or edx, eax
jmp 0x56ec50
mov esi, dword [esp + 0x1c]
shr esi, 0x18
mov edx, esi
mov byte [ecx - 1], dl
dec ecx
mov esi, dword [esp + 0x1c]
shr esi, 0x10
mov edx, esi
mov byte [ecx - 1], dl
dec ecx
lea esi, [ecx - 1]
mov edi, dword [esp + 0x1c]
shr edi, 8
mov edx, edi
mov byte [ecx - 1], dl
lea ecx, [esi - 1]
mov dl, byte [esp + 0x1c]
mov byte [esi - 1], dl
lea edi, [ecx - 1]
mov esi, eax
shr esi, 0x18
mov edx, esi
mov byte [ecx - 1], dl
lea ecx, [edi - 1]
mov esi, eax
shr esi, 0x10
mov edx, esi
mov byte [edi - 1], dl
lea edi, [ecx - 1]
mov esi, eax
shr esi, 8
mov edx, esi
mov byte [ecx - 1], dl
mov byte [edi - 1], al
mov ecx, ebx
mov edi, ebp
jmp 0x56ef90
mov edi, ebp
mov eax, ebp
shr eax, 8
mov byte [esp + 0x1c], al
mov edx, ebp
shr edx, 0x10
mov byte [esp + 0x20], dl
mov ebx, ebp
shr ebx, 0x18
mov byte [esp + 0x24], bl
mov ebp, ecx
mov ebx, ecx
shr ebx, 8
mov edx, ecx
shr edx, 0x10
shr ecx, 0x18
jmp 0x56ecef
mov dword [esp + 0x30], ebx
jmp 0x56ec25
mov dword [esp + 0x30], ebx
jmp 0x56eec1
mov ebx, eax
xor esi, esi
xor eax, eax
jmp 0x56f04f
xor esi, esi
jmp 0x56f006
xor esi, esi
xor edx, edx
jmp 0x56f03f
mov edx, eax
xor esi, esi
xor ebx, ebx
jmp 0x56f02e
xor esi, esi
jmp 0x56f023
mov ebx, eax
xor edx, edx
jmp 0x56f013
mov esi, ecx
jmp 0x56f084
mov edi, ecx
jmp 0x56f09b
mov edi, ecx
jmp 0x56f0b5