Function at 0x56e2ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0xc], eax
je 0x56e517
mov edx, dword [ebp + 0x18]
mov dword [esp], edx
call fcn.0050c978
mov ecx, dword [ebp + 0x18]
mov dword [esp], ecx
call fcn.0050cae8
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x56e513
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
mov edx, dword [ebp + 0x10]
add ebx, dword [edx + 4]
add ebx, 4
mov ecx, dword [ebp - 0x4c]
cmp ebx, dword [ecx + 8]
jg 0x56e4ff
mov eax, dword [ebp - 0x4c]
mov dword [eax + 4], ebx
test ebx, ebx
jle 0x56e358
mov edx, dword [eax]
xor eax, eax
nop
mov dword [edx + eax*4], 0
inc eax
cmp ebx, eax
jg 0x56e34c
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx + 4]
test ecx, ecx
jle 0x56e486
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
lea esi, [ebp - 0x30]
lea esi, [esi]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebx]
mov ebx, dword [ebp - 0x54]
mov ebx, dword [edx + ebx]
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 0x58]
inc ebx
cmp ecx, ebx
je 0x56e4f3
mov ebx, dword [ebp - 0x54]
mov edx, dword [edx + ebx + 4]
mov dword [ebp - 0x44], edx
test eax, eax
jle 0x56e475
mov edx, dword [ebp - 0x44]
xor edx, dword [ebp - 0x48]
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x3c], ecx
xor ebx, ebx
lea esi, [esi]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [edx + ebx*4]
mov dword [ebp - 0x40], ecx
lea ecx, [ebx + 1]
cmp eax, ecx
je 0x56e4ec
mov edi, dword [edx + ecx*4]
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov ecx, edi
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.0056dbc0
mov edx, dword [ebp - 0x48]
mov dword [esp], edx
mov ecx, dword [ebp - 0x40]
mov edx, esi
lea eax, [ebp - 0x2c]
call fcn.0056dbc0
mov ecx, dword [ebp - 0x40]
xor ecx, edi
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.0056dbc0
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
xor eax, dword [ebp - 0x28]
xor eax, ecx
xor eax, edi
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x30]
xor ecx, edi
xor ecx, edx
xor ecx, dword [ebp - 0x20]
xor ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
add eax, dword [ecx]
xor ecx, ecx
xor dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 4
je 0x56e45a
mov edx, dword [esi + ecx*4]
xor dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 4
jne 0x56e44c
add ebx, 2
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
add dword [ebp - 0x3c], 8
cmp eax, ebx
jg 0x56e3c0
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx + 4]
add dword [ebp - 0x58], 2
add dword [ebp - 0x54], 8
cmp ecx, dword [ebp - 0x58]
jg 0x56e380
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 4]
test eax, eax
jle 0x56e4b2
lea edx, [eax*4 - 4]
mov ecx, dword [ebp - 0x4c]
add edx, dword [ecx]
jmp 0x56e4a3
dec eax
je 0x56e4ac
mov ecx, dword [edx]
sub edx, 4
test ecx, ecx
je 0x56e4a0
mov ebx, dword [ebp - 0x4c]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x4c]
mov dword [esp + 4], edx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.0056de60
test eax, eax
setne al
movzx eax, al
mov ebx, dword [ebp + 0x18]
mov dword [esp], ebx
mov dword [ebp - 0x5c], eax
call fcn.0050ca7c
mov eax, dword [ebp - 0x5c]
add esp, 0x6c
pop ebx
pop esi
pop edi
leave
ret
xor edi, edi
jmp 0x56e3d9
mov dword [ebp - 0x44], 0
jmp 0x56e3a4
mov dword [esp + 4], ebx
mov dword [esp], ecx
call fcn.00508e8c
test eax, eax
jne 0x56e33d
xor eax, eax
jmp 0x56e4d3
mov edx, dword [ebp + 0x18]
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 8], ecx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], ebx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0056e168
jmp 0x56e4e4