Function at 0x56b650
Capabilities:
Encode data using xor

Disassembly:
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x100
ret
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
mov ecx, edx
dec edx
test ecx, ecx
mov dword [esp + 0x24], edx
je 0x56b74b
jmp 0x56b50b
mov edx, dword [esp + 0x24]
lea ecx, [ebx + ebp]
cmp eax, ecx
jle 0x56b628
inc edx
mov dword [esp + 0x50], edx
jmp 0x56b525
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add ebx, ebp
inc edx
add ecx, ebp
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x2c]
sub edx, ebx
mov dword [esp + 0x48], ecx
cmp edx, ebp
jbe 0x56b542
mov edx, ebp
mov edi, dword [esp + 0x50]
mov ecx, eax
sub ecx, ebx
mov eax, 1
shl eax, cl
cmp eax, edi
jbe 0x56b580
mov ebp, dword [esp + 0x24]
or edi, 0xffffffff
sub edi, ebp
mov ebp, dword [esp + 0x28]
add eax, edi
cmp ecx, edx
jae 0x56b580
inc ecx
cmp ecx, edx
jae 0x56b580
mov edi, dword [ebp + 4]
add ebp, 4
shl eax, 1
cmp eax, edi
jbe 0x56b580
sub eax, edi
inc ecx
cmp ecx, edx
jb 0x56b56d
mov ebp, dword [esp + 0x134]
mov edx, 1
shl edx, cl
mov eax, dword [ebp]
mov dword [esp + 0x3c], edx
add edx, eax
cmp edx, 0x5a0
ja 0x56b799
mov edi, dword [esp + 0x130]
mov dword [ebp], edx
mov edx, dword [esp + 0x18]
lea eax, [edi + eax*8]
mov edi, dword [esp + 0x18]
test edx, edx
lea edi, [esp + edi*4 + 0xd4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], edi
mov dword [edi], eax
je 0x56b60b
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x40]
mov byte [esp + 0x30], cl
mov ecx, ebx
mov dword [esp + edx*4 + 0x94], edi
mov edx, dword [esp + 0x4c]
mov byte [esp + 0x31], al
sub ecx, eax
mov eax, edi
shr eax, cl
mov ecx, dword [edx - 4]
mov edx, dword [esp + 0x30]
sub esi, ecx
sar esi, 3
sub esi, eax
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], esi
jmp 0x56b618
mov ecx, dword [esp + 0x128]
mov edi, dword [esp + 0x38]
mov dword [ecx], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cmp eax, ecx
jg 0x56b51d
mov ecx, dword [esp + 0x138]
mov dl, al
mov ebp, dword [esp + 0x1c]
sub dl, bl
mov byte [esp + 0x31], dl
mov edx, dword [esp + 0x118]
lea ecx, [ecx + edx*4]
cmp ebp, ecx
jb fcn.0056b650
mov byte [esp + 0x30], 0xc0
jmp 0x56b699
mov esi, dword [ebp]
mov ecx, dword [esp + 0x11c]
cmp esi, ecx
jae 0x56b672
cmp esi, 0x100
sbb dl, dl
and dl, 0xa0
add dl, 0x60
mov byte [esp + 0x30], dl
jmp 0x56b692
sub esi, ecx
mov ecx, dword [esp + 0x124]
shl esi, 2
mov dl, byte [esi + ecx]
mov ecx, dword [esp + 0x120]
add dl, 0x50
mov esi, dword [esi + ecx]
mov byte [esp + 0x30], dl
add ebp, 4
mov dword [esp + 0x1c], ebp
mov ecx, eax
mov edx, 1
sub ecx, ebx
mov eax, edi
shl edx, cl
mov ecx, ebx
shr eax, cl
cmp eax, dword [esp + 0x3c]
jae 0x56b6d1
mov ecx, dword [esp + 0x40]
lea ecx, [ecx + eax*8]
mov ebp, dword [esp + 0x30]
add eax, edx
mov dword [ecx], ebp
lea ebp, [edx*8]
mov dword [ecx + 4], esi
add ecx, ebp
cmp eax, dword [esp + 0x3c]
jb 0x56b6b7
mov ecx, dword [esp + 0x20]
mov eax, 1
shl eax, cl
test edi, eax
je 0x56b6e8
xor edi, eax
shr eax, 1
test edi, eax
jne 0x56b6e0
mov edx, dword [esp + 0x18]
mov ebp, 1
mov ecx, ebx
xor edi, eax
shl ebp, cl
mov ecx, dword [esp + edx*4 + 0x94]
lea eax, [esp + edx*4 + 0x94]
mov dword [esp + 0x38], edi
dec ebp
and ebp, edi
cmp ebp, ecx
je 0x56b730
mov ebp, dword [esp + 0x10]
dec edx
sub ebx, ebp
mov ebp, 1
mov ecx, ebx
sub eax, 4
shl ebp, cl
mov ecx, dword [eax]
dec ebp
and ebp, edi
cmp ebp, ecx
jne 0x56b710
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov edx, eax
dec eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
test edx, edx
jne 0x56b507
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
add ecx, 4
inc eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x2c]
inc edx
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
jle 0x56b4f0
mov esi, dword [esp + 0x44]
xor edi, edi
cmp esi, edi
je 0x56b376
cmp dword [esp + 0x2c], 1
je 0x56b376
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x100
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x100
ret