Function at 0x56d480
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
mov edx, dword [esp + 0x68]
test edx, edx
jne 0x56d6d0
test eax, eax
je 0x56d4f8
test esi, esi
je 0x56d6ba
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
jmp 0x56d4c8
test esi, esi
je 0x56d6ba
mov ebx, dword [esp + 0x24]
add ebx, eax
mov edi, dword [esp + 0x50]
mov dl, byte [edi]
mov cl, byte [ebx]
xor ecx, edx
mov edi, dword [esp + 0x20]
mov byte [edi], cl
inc edi
mov dword [esp + 0x20], edi
inc dword [esp + 0x50]
mov byte [ebx], dl
dec esi
inc eax
and eax, 0xf
jne 0x56d4c0
mov dword [esp + 0x54], edi
mov ebx, dword [esp + 0x24]
cmp esi, 0xf
jbe 0x56d8f2
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x28], esi
lea esi, [esi]
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], ebx
mov edx, dword [esp + 0x6c]
call edx
mov edx, dword [edi]
mov ecx, dword [ebx]
xor ecx, edx
mov dword [ebp], ecx
mov dword [ebx], edx
mov edx, dword [edi + 4]
mov ecx, dword [ebx + 4]
xor ecx, edx
mov dword [ebp + 4], ecx
mov dword [ebx + 4], edx
mov edx, dword [edi + 8]
mov ecx, dword [ebx + 8]
xor ecx, edx
mov dword [ebp + 8], ecx
mov dword [ebx + 8], edx
mov edx, dword [edi + 0xc]
mov ecx, dword [ebx + 0xc]
xor ecx, edx
mov dword [ebp + 0xc], ecx
mov dword [ebx + 0xc], edx
sub esi, 0x10
add ebp, 0x10
add edi, 0x10
cmp esi, 0xf
ja 0x56d510
mov esi, dword [esp + 0x28]
mov ebp, esi
and ebp, 0xf
sub esi, 0x10
and esi, 0xfffffff0
lea eax, [esi + 0x10]
add dword [esp + 0x54], eax
add dword [esp + 0x50], eax
test ebp, ebp
je 0x56d8d0
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], ebx
mov edi, dword [esp + 0x6c]
call edi
lea eax, [ebp - 1]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x50]
or edx, ebx
mov dword [esp + 0x20], edx
lea ecx, [ebx + 4]
mov dword [esp + 0x28], ecx
mov esi, dword [esp + 0x54]
add esi, 4
mov edi, dword [esp + 0x50]
add edi, 4
mov dword [esp + 0x2c], edi
mov edi, ebp
shr edi, 2
lea edx, [edi*4]
cmp ebx, esi
setae cl
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x54], eax
setae al
or ecx, eax
cmp dword [esp + 0x50], esi
setae al
mov esi, eax
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x54], eax
setae al
or esi, eax
and ecx, esi
cmp ebp, 6
seta al
and ecx, eax
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x50], eax
setae al
mov esi, eax
cmp ebx, dword [esp + 0x2c]
setae al
or esi, eax
and ecx, esi
mov eax, dword [esp + 0x54]
or dword [esp + 0x20], eax
test byte [esp + 0x20], 3
sete al
test cl, al
je 0x56d8e4
test edx, edx
je 0x56d8e4
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], edx
mov esi, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
jmp 0x56d660
mov edx, dword [esi + eax*4]
mov ecx, dword [ebx + eax*4]
xor ecx, edx
mov dword [ebp + eax*4], ecx
mov dword [ebx + eax*4], edx
inc eax
cmp edi, eax
ja 0x56d660
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
sub dword [esp + 0x24], edx
cmp ebp, edx
je 0x56d6b8
mov ecx, dword [esp + 0x24]
lea esi, [edx + ecx + 1]
mov dword [esp + 0x24], ebp
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
nop
lea esi, [esi]
mov al, byte [edi + edx]
mov cl, al
xor cl, byte [ebx + edx]
mov byte [ebp + edx], cl
mov byte [ebx + edx], al
inc edx
cmp edx, esi
jne 0x56d6a0
mov ebp, dword [esp + 0x24]
mov eax, ebp
mov edi, dword [esp + 0x64]
mov dword [edi], eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x56d716
test esi, esi
je 0x56d8b4
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
jmp 0x56d6f8
test esi, esi
je 0x56d8b4
lea ebp, [ebx + eax]
mov dl, byte [ebp]
xor dl, byte [ecx]
mov byte [ebp], dl
mov byte [edi], dl
inc edi
inc ecx
dec esi
inc eax
and eax, 0xf
jne 0x56d6f0
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edi
cmp esi, 0xf
jbe 0x56d8eb
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x28], esi
nop
lea esi, [esi]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], ebx
mov eax, dword [esp + 0x6c]
call eax
mov ecx, dword [ebp]
xor ecx, dword [ebx]
mov dword [ebx], ecx
mov dword [edi], ecx
mov ecx, dword [ebp + 4]
xor ecx, dword [ebx + 4]
mov dword [ebx + 4], ecx
mov dword [edi + 4], ecx
mov ecx, dword [ebp + 8]
xor ecx, dword [ebx + 8]
mov dword [ebx + 8], ecx
mov dword [edi + 8], ecx
mov ecx, dword [ebp + 0xc]
xor ecx, dword [ebx + 0xc]
mov dword [ebx + 0xc], ecx
mov dword [edi + 0xc], ecx
sub esi, 0x10
add edi, 0x10
add ebp, 0x10
cmp esi, 0xf
ja 0x56d730
mov esi, dword [esp + 0x28]
mov edi, esi
and edi, 0xf
sub esi, 0x10
and esi, 0xfffffff0
lea eax, [esi + 0x10]
add dword [esp + 0x54], eax
add dword [esp + 0x50], eax
test edi, edi
je 0x56d8e0
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], ebx
mov ecx, dword [esp + 0x6c]
call ecx
lea ebp, [edi - 1]
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x50]
or eax, ebx
mov dword [esp + 0x20], eax
lea esi, [ebx + 4]
mov edx, dword [esp + 0x54]
add edx, 4
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x50]
add ecx, 4
mov dword [esp + 0x2c], ecx
mov eax, edi
shr eax, 2
mov dword [esp + 0x1c], eax
mov edx, eax
shl edx, 2
cmp ebx, dword [esp + 0x28]
setae cl
mov ebp, ecx
cmp dword [esp + 0x54], esi
setae al
or ebp, eax
cmp dword [esp + 0x50], esi
setae al
cmp ebx, dword [esp + 0x2c]
setae cl
mov esi, ecx
or eax, esi
and ebp, eax
cmp edi, 6
seta al
and ebp, eax
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x50], eax
setae al
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x54], ecx
setae cl
mov esi, ecx
or eax, esi
and ebp, eax
mov eax, dword [esp + 0x54]
or dword [esp + 0x20], eax
test byte [esp + 0x20], 3
sete al
mov ecx, ebp
test cl, al
je 0x56d8f9
test edx, edx
je 0x56d8f9
xor eax, eax
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
lea esi, [esi]
mov esi, dword [edi + eax*4]
xor esi, dword [ebx + eax*4]
mov dword [ebx + eax*4], esi
mov dword [ebp + eax*4], esi
inc eax
cmp ecx, eax
ja 0x56d870
mov edi, dword [esp + 0x20]
sub dword [esp + 0x24], edx
cmp edi, edx
je 0x56d8b2
mov ebp, dword [esp + 0x24]
lea ecx, [edx + ebp + 1]
mov esi, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
nop
mov al, byte [esi + edx]
xor al, byte [ebx + edx]
mov byte [ebx + edx], al
mov byte [ebp + edx], al
inc edx
cmp edx, ecx
jne 0x56d8a0
mov eax, edi
mov edx, dword [esp + 0x64]
mov dword [edx], eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov edi, dword [esp + 0x64]
mov dword [edi], eax
jmp 0x56d6c0
xor eax, eax
jmp 0x56d8b4
xor edx, edx
jmp 0x56d684
mov edi, esi
jmp 0x56d79a
mov ebp, esi
jmp 0x56d582
xor edx, edx
jmp 0x56d88e