Function at 0x56cf20
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov ebx, eax
mov dword [esp + 0x28], ecx
mov ebp, dword [esp + 0x94]
lea edi, [esp + 0x4c]
mov dword [esp + 0x24], edi
mov ecx, 4
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x90]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebp
mov dword [esp + 0x20], edx
call dword [esp + 0x9c]
mov ecx, dword [esp + 0x28]
add ecx, 7
mov dword [esp + 0x38], ecx
mov edi, ecx
test ecx, ecx
mov edx, dword [esp + 0x20]
js 0x56d430
sar edi, 3
mov eax, dword [esp + 0x98]
test eax, eax
jne 0x56d300
test edi, edi
jle 0x56d042
mov esi, edx
or esi, ebx
mov dword [esp + 0x1c], esi
lea eax, [edx + 4]
mov dword [esp + 0x30], eax
mov ecx, edi
shr ecx, 2
mov dword [esp + 0x18], ecx
shl ecx, 2
mov dword [esp + 0x3c], ecx
cmp edi, 5
seta byte [esp + 0x2f]
cmp ebx, eax
setae al
lea ecx, [ebx + 4]
cmp edx, ecx
setae cl
mov esi, ecx
or eax, esi
and byte [esp + 0x2f], al
lea eax, [ebp + 4]
cmp edx, eax
setae al
cmp ebp, dword [esp + 0x30]
setae cl
mov esi, ecx
or eax, esi
and byte [esp + 0x2f], al
or dword [esp + 0x1c], ebp
test byte [esp + 0x1c], 3
sete al
test byte [esp + 0x2f], al
mov eax, 0
je 0x56d02b
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x56d02b
mov ecx, dword [esp + 0x18]
nop
lea esi, [esi]
mov esi, dword [ebx + eax*4]
mov dword [esp + eax*4 + 0x5c], esi
xor esi, dword [ebp + eax*4]
mov dword [edx + eax*4], esi
inc eax
cmp ecx, eax
ja 0x56d010
mov eax, dword [esp + 0x3c]
cmp edi, eax
je 0x56d042
lea esi, [esp + 0x5c]
nop
mov cl, byte [ebx + eax]
mov byte [esi + eax], cl
xor cl, byte [ebp + eax]
mov byte [edx + eax], cl
inc eax
cmp edi, eax
jg 0x56d030
mov eax, dword [esp + 0x28]
and eax, 0x80000007
js 0x56d3d1
mov ebx, dword [esp + 0x28]
test ebx, ebx
js 0x56d3e2
sar ebx, 3
test eax, eax
je 0x56d3f1
mov edx, 8
sub edx, eax
mov cl, byte [esp + ebx + 0x4d]
and ecx, 0xff
mov edi, ecx
mov esi, ecx
mov cl, dl
sar esi, cl
mov dword [esp + 0x28], esi
mov cl, byte [esp + ebx + 0x4c]
and ecx, 0xff
mov esi, ecx
mov cl, al
shl esi, cl
mov cl, byte [esp + 0x28]
or ecx, esi
mov byte [ebp], cl
mov cl, byte [esp + ebx + 0x4e]
and ecx, 0xff
mov esi, ecx
mov cl, al
shl edi, cl
mov dword [esp + 0x30], edi
mov edi, esi
mov cl, dl
sar edi, cl
mov dword [esp + 0x28], edi
mov cl, byte [esp + 0x28]
or ecx, dword [esp + 0x30]
mov byte [ebp + 1], cl
mov cl, byte [esp + ebx + 0x4f]
and ecx, 0xff
mov edi, ecx
mov cl, al
shl esi, cl
mov dword [esp + 0x30], esi
mov esi, edi
mov cl, dl
sar esi, cl
mov dword [esp + 0x28], esi
mov cl, byte [esp + 0x28]
or ecx, dword [esp + 0x30]
mov byte [ebp + 2], cl
mov cl, byte [esp + ebx + 0x50]
and ecx, 0xff
mov esi, ecx
mov cl, al
shl edi, cl
mov dword [esp + 0x30], edi
mov edi, esi
mov cl, dl
sar edi, cl
mov dword [esp + 0x28], edi
mov cl, byte [esp + 0x28]
or ecx, dword [esp + 0x30]
mov byte [ebp + 3], cl
mov cl, byte [esp + ebx + 0x51]
and ecx, 0xff
mov edi, ecx
mov cl, al
shl esi, cl
mov dword [esp + 0x30], esi
mov esi, edi
mov cl, dl
sar esi, cl
mov dword [esp + 0x28], esi
mov cl, byte [esp + 0x28]
or ecx, dword [esp + 0x30]
mov byte [ebp + 4], cl
mov cl, byte [esp + ebx + 0x52]
and ecx, 0xff
mov esi, ecx
mov cl, al
shl edi, cl
mov dword [esp + 0x30], edi
mov edi, esi
mov cl, dl
sar edi, cl
mov dword [esp + 0x28], edi
mov cl, byte [esp + 0x28]
or ecx, dword [esp + 0x30]
mov byte [ebp + 5], cl
mov cl, byte [esp + ebx + 0x53]
and ecx, 0xff
mov edi, ecx
mov cl, al
shl esi, cl
mov dword [esp + 0x30], esi
mov esi, edi
mov cl, dl
sar esi, cl
mov dword [esp + 0x28], esi
mov cl, byte [esp + 0x28]
or ecx, dword [esp + 0x30]
mov byte [ebp + 6], cl
mov cl, byte [esp + ebx + 0x54]
and ecx, 0xff
mov esi, ecx
mov cl, al
shl edi, cl
mov dword [esp + 0x30], edi
mov edi, esi
mov cl, dl
sar edi, cl
mov dword [esp + 0x28], edi
mov cl, byte [esp + 0x28]
or ecx, dword [esp + 0x30]
mov byte [ebp + 7], cl
mov cl, byte [esp + ebx + 0x55]
and ecx, 0xff
mov edi, ecx
mov cl, al
shl esi, cl
mov dword [esp + 0x30], esi
mov esi, edi
mov cl, dl
sar esi, cl
mov dword [esp + 0x28], esi
mov cl, byte [esp + 0x28]
or ecx, dword [esp + 0x30]
mov byte [ebp + 8], cl
mov cl, byte [esp + ebx + 0x56]
and ecx, 0xff
mov esi, ecx
mov cl, al
shl edi, cl
mov dword [esp + 0x30], edi
mov edi, esi
mov cl, dl
sar edi, cl
mov dword [esp + 0x28], edi
mov cl, byte [esp + 0x28]
or ecx, dword [esp + 0x30]
mov byte [ebp + 9], cl
mov cl, byte [esp + ebx + 0x57]
and ecx, 0xff
mov edi, ecx
mov cl, al
shl esi, cl
mov dword [esp + 0x30], esi
mov esi, edi
mov cl, dl
sar esi, cl
mov dword [esp + 0x28], esi
mov cl, byte [esp + 0x28]
or ecx, dword [esp + 0x30]
mov byte [ebp + 0xa], cl
mov cl, byte [esp + ebx + 0x58]
and ecx, 0xff
mov esi, ecx
mov cl, al
shl edi, cl
mov dword [esp + 0x30], edi
mov edi, esi
mov cl, dl
sar edi, cl
mov dword [esp + 0x28], edi
mov cl, byte [esp + 0x28]
or ecx, dword [esp + 0x30]
mov byte [ebp + 0xb], cl
mov cl, byte [esp + ebx + 0x59]
and ecx, 0xff
mov edi, ecx
mov cl, al
shl esi, cl
mov dword [esp + 0x30], esi
mov esi, edi
mov cl, dl
sar esi, cl
mov dword [esp + 0x28], esi
mov cl, byte [esp + 0x28]
or ecx, dword [esp + 0x30]
mov byte [ebp + 0xc], cl
mov cl, byte [esp + ebx + 0x5a]
and ecx, 0xff
mov esi, ecx
mov cl, al
shl edi, cl
mov dword [esp + 0x30], edi
mov edi, esi
mov cl, dl
sar edi, cl
mov dword [esp + 0x28], edi
mov cl, byte [esp + 0x28]
or ecx, dword [esp + 0x30]
mov byte [ebp + 0xd], cl
mov cl, byte [esp + ebx + 0x5b]
and ecx, 0xff
mov edi, ecx
mov cl, al
shl esi, cl
mov dword [esp + 0x30], esi
mov esi, edi
mov cl, dl
sar esi, cl
mov dword [esp + 0x28], esi
mov cl, byte [esp + 0x28]
or ecx, dword [esp + 0x30]
mov byte [ebp + 0xe], cl
mov cl, al
shl edi, cl
mov eax, edi
mov bl, byte [esp + ebx + 0x5c]
and ebx, 0xff
mov cl, dl
sar ebx, cl
or eax, ebx
mov byte [ebp + 0xf], al
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
test edi, edi
jle 0x56d042
mov esi, edx
or esi, ebx
mov dword [esp + 0x1c], esi
lea eax, [edx + 4]
mov dword [esp + 0x30], eax
mov ecx, edi
shr ecx, 2
mov dword [esp + 0x18], ecx
shl ecx, 2
mov dword [esp + 0x3c], ecx
cmp edi, 5
seta byte [esp + 0x2f]
cmp ebx, eax
setae al
lea ecx, [ebx + 4]
cmp edx, ecx
setae cl
mov esi, ecx
or eax, esi
and byte [esp + 0x2f], al
lea eax, [ebp + 4]
cmp edx, eax
setae al
cmp ebp, dword [esp + 0x30]
setae cl
mov esi, ecx
or eax, esi
and byte [esp + 0x2f], al
or dword [esp + 0x1c], ebp
test byte [esp + 0x1c], 3
sete al
test byte [esp + 0x2f], al
mov eax, 0
je 0x56d39f
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x56d39f
mov ecx, dword [esp + 0x18]
nop
mov esi, dword [ebp + eax*4]
xor esi, dword [ebx + eax*4]
mov dword [esp + eax*4 + 0x5c], esi
mov dword [edx + eax*4], esi
inc eax
cmp ecx, eax
ja 0x56d380
mov eax, dword [esp + 0x3c]
cmp edi, eax
je 0x56d042
lea esi, [esp + 0x5c]
lea esi, [esi]
lea edi, [edi]
mov cl, byte [ebp + eax]
xor cl, byte [ebx + eax]
mov byte [esi + eax], cl
mov byte [edx + eax], cl
inc eax
cmp edi, eax
jg 0x56d3b0
mov eax, dword [esp + 0x28]
and eax, 0x80000007
jns 0x56d051
dec eax
or eax, 0xfffffff8
inc eax
mov ebx, dword [esp + 0x28]
test ebx, ebx
jns 0x56d05d
mov ebx, dword [esp + 0x38]
sar ebx, 3
test eax, eax
jne 0x56d068
mov edi, ebp
lea esi, [esp + ebx + 0x4c]
mov eax, 0x10
test ebp, 1
jne 0x56d466
test edi, 2
jne 0x56d455
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
xor edx, edx
test al, 2
jne 0x56d440
test al, 1
je 0x56d2f5
mov cl, byte [esi + edx]
mov byte [edi + edx], cl
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x28]
add edi, 0xe
jmp 0x56cf7b
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x56d2f5
jmp 0x56d421
mov dx, word [esi]
mov word [edi], dx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x56d40c
mov al, byte [esi]
mov byte [ebp], al
inc edi
inc esi
mov eax, 0xf
jmp 0x56d404