Function at 0x56d8d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x5fa040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov edx, 3
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x58], ebx
mov ecx, ebx
mov dword [ebp - 0x54], edi
call fcn.0056d380
mov esi, eax
lea ecx, [esi - 1]
cmp ecx, 2
ja 0x56df72
cmp byte [edi + 0x12], 0
mov dword [edi + 0x1c], 0x8000
je 0x56d925
mov edx, 1
mov ecx, ebx
call fcn.0056d380
test eax, eax
jne 0x56d955
mov edx, 0x10
mov ecx, ebx
call fcn.0056d380
cmp byte [edi + 0x12], 0
mov dword [edi + 0x1c], eax
je 0x56d940
cmp byte [edi + 0x13], 0x10
jb 0x56d955
shl eax, 8
mov edx, 8
mov ecx, ebx
mov dword [edi + 0x1c], eax
call fcn.0056d380
or dword [edi + 0x1c], eax
cmp esi, 3
mov byte [edi + 0xe], 0
sete al
mov byte [edi + 0xd], al
jne 0x56da09
mov al, byte [edi + 0x1c]
and al, 1
mov byte [edi + 0xe], al
mov edx, dword [ebx]
mov ecx, edx
mov esi, dword [ebx + 4]
mov eax, edx
sar eax, 4
and ecx, 0xf
add ecx, 0x10
mov eax, dword [esi + eax*2]
rol eax, cl
shr eax, cl
test eax, eax
jne 0x56df72
add edx, 0x10
and edx, 0xfffffff0
mov dword [ebx], edx
cmp edx, 0xfffffff0
jg 0x56df72
mov ecx, dword [ebx + 8]
sar edx, 3
sub ecx, edx
add ecx, 0xfffffffe
mov dword [ebx + 8], ecx
lea eax, [esi + edx]
mov dword [ebx + 4], eax
cmp ecx, 0xc
jb 0x56df72
xor edx, edx
lea esi, [edi + 0x68]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
add eax, 4
add dword [ebx + 8], 0xfffffffc
mov dword [ebx + 4], eax
test ecx, ecx
je 0x56df72
mov eax, dword [edi + 4]
sub eax, 3
cmp ecx, eax
ja 0x56df72
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 3
jb 0x56d9c4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587d99
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 0x14], 0xffffffff
cmp esi, 2
jne 0x56da61
xor edi, edi
xor esi, esi
nop dword [eax]
mov edx, 3
mov ecx, ebx
call fcn.0056d380
mov byte [ebp + esi - 0xc], al
xor eax, 3
inc esi
or edi, eax
cmp esi, 8
jb 0x56da20
test edi, edi
mov edi, dword [ebp - 0x54]
je 0x56da61
push ecx
lea eax, [ebp - 0xc]
mov dword [edi + 0x14], 0xe
push eax
lea ecx, [edi + 0x21b0]
call fcn.0056e860
test al, al
je 0x56df72
cmp dword [edi + 0x14], 0xffffffff
lea ecx, [edi + 0x3d]
jne 0x56da86
mov eax, 3
nop
mov byte [ecx - 1], al
lea ecx, [ecx + 2]
mov byte [ecx - 2], al
inc eax
cmp eax, 0x11
jb 0x56da70
mov eax, 0x11111111
jmp 0x56daa8
mov edx, 3
nop dword [eax + eax]
mov al, dl
lea ecx, [ecx + 2]
sub al, 3
inc edx
mov byte [ecx - 3], al
mov byte [ecx - 2], al
cmp edx, 0x11
jb 0x56da90
mov eax, 0xe0e0e0e
mov dword [edi + 0x58], eax
lea esi, [edi + 0x2230]
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], eax
mov word [edi + 0x64], ax
lea eax, [edi + 0x2330]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
push eax
push esi
call fcn.0056d3b0
add esp, 8
mov dword [ebx], eax
cmp eax, 0xfffffff0
jg 0x56df72
mov ecx, dword [edi + 0x18]
mov edx, dword [ebx + 4]
add ecx, 0x2330
add ecx, edi
push ecx
lea ecx, [edi + 0x2330]
push ecx
mov ecx, eax
call fcn.0056d3b0
add esp, 8
mov dword [ebx], eax
cmp eax, 0xfffffff0
jg 0x56df72
mov ecx, dword [edi + 0x18]
mov eax, 0x290
add ecx, 0x100
sub eax, ecx
push eax
push 0
lea eax, [ecx + 0x2230]
add eax, edi
push eax
call fcn.0058ad30
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
add esp, 0xc
lea ecx, [esi + 2]
movups xmmword [ebp - 0x50], xmm0
mov edx, 0xa4
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
nop dword [eax]
movzx eax, byte [ecx - 2]
lea ecx, [ecx + 4]
inc dword [ebp + eax*4 - 0x50]
movzx eax, byte [ecx - 5]
inc dword [ebp + eax*4 - 0x50]
movzx eax, byte [ecx - 4]
inc dword [ebp + eax*4 - 0x50]
movzx eax, byte [ecx - 3]
inc dword [ebp + eax*4 - 0x50]
sub edx, 1
jne 0x56db50
mov ecx, 1
nop dword [eax]
mov eax, dword [ebp + ecx*4 - 0x50]
inc ecx
lea edx, [eax + edx*2]
cmp ecx, 0xb
jbe 0x56db80
mov eax, dword [ebp - 0x20]
mov ecx, edx
mov dword [edi + 0x130], edx
mov dword [edi + 0x14c], edx
mov dword [ebp - 0x20], edx
add edx, eax
lea ecx, [eax + ecx*2]
mov eax, ecx
add ecx, ecx
shl eax, 4
mov dword [edi + 0x134], eax
mov eax, ecx
sub eax, edx
mov dword [edi + 0x150], eax
mov eax, dword [ebp - 0x1c]
add ecx, eax
mov dword [ebp - 0x1c], edx
add edx, eax
lea eax, [ecx*8]
add ecx, ecx
mov dword [edi + 0x138], eax
mov eax, ecx
sub eax, edx
mov dword [edi + 0x154], eax
mov eax, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], edx
add edx, eax
lea eax, [ecx*4]
add ecx, ecx
mov dword [edi + 0x13c], eax
mov eax, ecx
sub eax, edx
mov dword [edi + 0x158], eax
mov eax, dword [ebp - 0x14]
add ecx, eax
add ecx, ecx
mov dword [ebp - 0x14], edx
add edx, eax
mov dword [edi + 0x140], ecx
mov eax, ecx
sub eax, edx
mov dword [edi + 0x15c], eax
mov eax, dword [ebp - 0x10]
add ecx, eax
mov dword [edi + 0x144], ecx
mov dword [ebp - 0x10], edx
mov dword [edi + 0x148], 0x10000
cmp ecx, 0x10000
jne 0x56df72
xor edx, edx
mov ebx, 1
mov dword [ebp - 8], edx
nop dword [eax]
mov esi, dword [ebp + ebx*4 - 0x50]
mov ecx, 0xb
sub ecx, ebx
mov eax, edx
shr eax, cl
shl esi, cl
mov dword [ebp + ebx*4 - 0x50], eax
lea eax, [edx + 0x160]
push esi
add eax, edi
push ebx
push eax
call fcn.0058ad30
mov edx, dword [ebp - 8]
inc ebx
add edx, esi
add esp, 0xc
mov dword [ebp - 8], edx
cmp ebx, 0xb
jbe 0x56dc50
mov ebx, dword [ebp - 0x58]
xor edx, edx
xor eax, eax
mov dword [ebp - 8], eax
movzx esi, byte [edi + eax + 0x2230]
mov dword [ebp - 0x54], esi
test esi, esi
je 0x56dcfa
mov ecx, dword [ebp + esi*4 - 0x50]
mov dword [ebp - 0x58], ecx
lea eax, [ecx + 1]
mov dword [ebp + esi*4 - 0x50], eax
cmp esi, 0xb
jb 0x56dcbc
mov word [edi + ecx*2 + 0x960], dx
jmp 0x56dcf7
mov eax, dword [ebp - 0x58]
mov ecx, 0xc
sub ecx, esi
mov esi, 1
shl eax, cl
add eax, 0x960
shl esi, cl
add eax, edi
add esi, eax
cmp dword [ebp - 0x54], 9
jb 0x56dce5
mov dword [eax], edx
mov dword [esi - 4], edx
jmp 0x56dcf7
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
add eax, 0x10
cmp eax, esi
jne 0x56dce5
mov eax, dword [ebp - 8]
inc eax
add edx, 0x10001
mov dword [ebp - 8], eax
cmp eax, 0x290
jb 0x56dc90
mov edx, dword [ebx + 4]
lea eax, [edi + 0x25b9]
mov ecx, dword [ebx]
lea esi, [edi + 0x24c0]
push eax
push esi
mov dword [ebp - 0x54], esi
call fcn.0056d3b0
add esp, 8
mov dword [ebx], eax
cmp eax, 0xfffffff0
jg 0x56df72
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
lea ebx, [edi + 0x1e68]
mov edx, 0x53
mov dword [ebp - 8], ebx
lea ecx, [esi + 2]
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
nop
movzx eax, byte [ecx - 2]
lea ecx, [ecx + 3]
inc dword [ebp + eax*4 - 0x50]
movzx eax, byte [ecx - 4]
inc dword [ebp + eax*4 - 0x50]
movzx eax, byte [ecx - 3]
inc dword [ebp + eax*4 - 0x50]
sub edx, 1
jne 0x56dd60
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
lea ecx, [eax + ecx*2]
mov eax, dword [ebp - 0x44]
lea ecx, [eax + ecx*2]
mov eax, dword [ebp - 0x40]
lea ecx, [eax + ecx*2]
mov eax, dword [ebp - 0x3c]
lea ecx, [eax + ecx*2]
mov eax, dword [ebp - 0x38]
lea ecx, [eax + ecx*2]
mov eax, dword [ebp - 0x34]
lea ecx, [eax + ecx*2]
mov eax, dword [ebp - 0x30]
lea edx, [eax + ecx*2]
mov eax, dword [ebp - 0x2c]
mov dword [ebx], edx
mov ecx, edx
mov dword [edi + 0x1e90], edx
mov dword [ebp - 0x2c], edx
add edx, eax
lea ecx, [eax + ecx*2]
mov eax, ecx
add ecx, ecx
shl eax, 7
mov dword [ebx + 4], eax
mov eax, ecx
sub eax, edx
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x28]
add ecx, eax
mov dword [ebp - 0x28], edx
add edx, eax
mov eax, ecx
add ecx, ecx
shl eax, 6
mov dword [ebx + 8], eax
mov eax, ecx
sub eax, edx
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x24]
add ecx, eax
mov dword [ebp - 0x24], edx
add edx, eax
mov eax, ecx
add ecx, ecx
shl eax, 5
mov dword [ebx + 0xc], eax
mov eax, ecx
sub eax, edx
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x20]
add ecx, eax
mov dword [ebp - 0x20], edx
add edx, eax
mov eax, ecx
add ecx, ecx
shl eax, 4
mov dword [ebx + 0x10], eax
mov eax, ecx
sub eax, edx
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x1c]
add ecx, eax
mov dword [ebp - 0x1c], edx
add edx, eax
lea eax, [ecx*8]
add ecx, ecx
mov dword [ebx + 0x14], eax
mov eax, ecx
sub eax, edx
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], edx
add edx, eax
lea eax, [ecx*4]
add ecx, ecx
mov dword [ebx + 0x18], eax
mov eax, ecx
sub eax, edx
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x14]
add ecx, eax
add ecx, ecx
mov dword [ebp - 0x14], edx
add edx, eax
mov dword [ebx + 0x1c], ecx
mov eax, ecx
sub eax, edx
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0x10]
add ecx, eax
mov dword [edi + 0x1e88], ecx
mov dword [ebp - 0x10], edx
mov dword [ebx + 0x24], 0x10000
je 0x56df5d
cmp ecx, 0x10000
jne 0x56df72
xor ebx, ebx
mov edi, 1
mov esi, dword [ebp + edi*4 - 0x50]
mov ecx, 8
sub ecx, edi
mov eax, ebx
shr eax, cl
mov dword [ebp + edi*4 - 0x50], eax
mov eax, dword [ebp - 8]
shl esi, cl
add eax, 0x48
push esi
add eax, ebx
push edi
push eax
call fcn.0058ad30
inc edi
add esp, 0xc
add ebx, esi
cmp edi, 8
jbe 0x56dea2
mov eax, dword [ebp - 0x54]
xor ebx, ebx
xor edi, edi
nop dword [eax]
movzx edx, byte [eax + edi]
test edx, edx
je 0x56df4e
mov esi, dword [ebp + edx*4 - 0x50]
lea eax, [esi + 1]
mov dword [ebp + edx*4 - 0x50], eax
mov eax, dword [ebp - 8]
cmp edx, 8
jb 0x56df04
mov byte [eax + esi + 0x158], bl
jmp 0x56df4b
mov ecx, 8
add eax, 0x158
sub ecx, edx
shl esi, cl
add eax, esi
mov esi, 1
shl esi, cl
add esi, eax
cmp edx, 6
jb 0x56df30
movzx ecx, bx
mov word [eax], cx
mov word [esi - 2], cx
jmp 0x56df4b
movzx ecx, bx
mov edx, ecx
mov word [eax], cx
mov word [eax + 2], dx
mov word [eax + 4], dx
mov word [eax + 6], dx
add eax, 8
cmp eax, esi
jne 0x56df30
mov eax, dword [ebp - 0x54]
inc edi
add ebx, 0x101
cmp edi, 0xf9
jb 0x56dee0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587d99
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00587d99
mov esp, ebp
pop ebp
ret 4