Function at 0x4564a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0x30
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x54]
xor eax, eax
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x18], eax
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ecx
inc dword [esp + 0x88]
mov edx, ebx
jmp 0x4564e0
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
movdqu xmm1, xmmword [edx + edi]
movzx eax, byte [edx + edi]
movzx ebx, byte [edx + edi + 1]
movzx ebp, byte [edx + edi + 2]
movzx eax, word [esi + eax*2]
movzx ebx, word [esi + ebx*2 + 0x200]
movzx ebp, word [esi + ebp*2 + 0x400]
xor eax, ebx
mov ebx, dword [esp + 0x24]
xor eax, ebp
mov esi, dword [esp + 0x60]
and eax, dword [esp + 0x68]
and ebx, edx
mov ebp, dword [ecx + eax*4]
mov dword [esi + ebx*4], ebp
mov dword [ecx + eax*4], edx
mov ebx, ebp
mov eax, 2
mov ecx, dword [esp + 0x88]
mov dword [esp + 8], ecx
cmp edi, dword [esp + 0x54]
jne 0x456586
jmp 0x45667c
cmp ebx, dword [esp + 0x74]
mov dword [esp + 0x14], ebx
jl 0x45664a
movdqu xmm2, xmmword [ebx + edi]
and ebx, dword [esp + 0x24]
pcmpeqb xmm2, xmm1
pmovmskb ecx, xmm2
mov ebx, dword [esi + ebx*4]
not ecx
bsf ecx, ecx
cmp ecx, 0x10
je 0x45659f
cmp ecx, eax
cmovg eax, ecx
cmovg ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
add ecx, ebx
cmp edx, ecx
jge 0x45674d
dec dword [esp + 8]
jne 0x456550
jmp 0x45674d
add edx, edi
add edi, dword [esp + 0x14]
movzx esi, word [eax + edx - 1]
movzx ecx, word [eax + edi - 1]
cmp esi, ecx
jne 0x45663b
mov esi, 0x10
jmp 0x4565c0
movdqu xmm3, xmmword [esi + edx]
movdqu xmm2, xmmword [esi + edi]
pcmpeqb xmm2, xmm3
pmovmskb ecx, xmm2
cmp ecx, 0xffff
je 0x4565e1
not ecx
bsf ecx, ecx
jmp 0x45662a
add esi, 0x10
cmp esi, 0x100
jl 0x4565c0
movd xmm3, dword [edx + 0xfe]
movd xmm2, dword [edi + 0xfe]
pcmpeqb xmm2, xmm3
pmovmskb ecx, xmm2
and ecx, 0xf
not ecx
bsf ecx, ecx
sub ecx, 2
cmp ecx, 2
jl 0x45662a
mov ebp, dword [esp + 0x14]
mov eax, 0x102
sub edi, ebp
mov esi, dword [esp + 0x60]
sub edx, edi
jmp 0x45674d
sub edi, dword [esp + 0x14]
add ecx, esi
mov esi, dword [esp + 0x60]
sub edx, edi
jmp 0x45657c
sub edi, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
sub edx, edi
jmp 0x456586
mov edi, dword [esp + 0x54]
jmp 0x456650
mov dword [esp + 0x14], ebx
movdqu xmm2, xmmword [ebx + edi]
and ebx, dword [esp + 0x24]
pcmpeqb xmm2, xmm1
pmovmskb ecx, xmm2
mov ebx, dword [esi + ebx*4]
not ecx
bsf ecx, ecx
cmp ecx, 0x10
je 0x456695
cmp ecx, eax
cmovg eax, ecx
cmovg ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
add ecx, ebx
cmp edx, ecx
jge 0x45674d
dec dword [esp + 8]
jne 0x456650
jmp 0x45674d
add edx, dword [esp + 0x44]
add edi, dword [esp + 0x14]
movzx esi, word [eax + edx - 1]
movzx ecx, word [eax + edi - 1]
cmp esi, ecx
jne 0x45673c
mov esi, 0x10
jmp 0x4566c0
movdqu xmm3, xmmword [esi + edx]
movdqu xmm2, xmmword [esi + edi]
pcmpeqb xmm2, xmm3
pmovmskb ecx, xmm2
cmp ecx, 0xffff
je 0x4566e1
not ecx
bsf ecx, ecx
jmp 0x456729
add esi, 0x10
cmp esi, 0x100
jl 0x4566c0
movd xmm3, dword [edx + 0xfe]
movd xmm2, dword [edi + 0xfe]
pcmpeqb xmm2, xmm3
pmovmskb ecx, xmm2
and ecx, 0xf
not ecx
bsf ecx, ecx
sub ecx, 2
cmp ecx, 2
jl 0x456729
mov ebp, dword [esp + 0x14]
mov eax, 0x102
sub edi, ebp
mov esi, dword [esp + 0x60]
sub edx, dword [esp + 0x44]
jmp 0x45674d
sub edi, dword [esp + 0x14]
add ecx, esi
mov esi, dword [esp + 0x60]
sub edx, dword [esp + 0x44]
jmp 0x456672
sub edi, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
sub edx, dword [esp + 0x44]
jmp 0x45667c
mov ebx, edx
sub ebx, ebp
cmp eax, 3
je 0x456758
jmp 0x456767
cmp ebx, 0x1000
jg 0x456762
jmp 0x456767
mov eax, 2
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x20]
cmp ecx, 2
jl 0x456a01
je 0x4569d8
cmp ecx, eax
jl 0x4569d8
mov ebx, dword [esp + 0x18]
mov eax, 2
mov dword [esp + 8], edx
add edx, ecx
inc dword [esp + 8]
sub edx, eax
cmp ecx, ebx
jg 0x4567b0
jmp 0x4568f8
lea eax, [edx - 2]
cmp dword [esp + 8], eax
jge 0x4568f8
lea eax, [ebx + ebp]
mov dword [esp + 0x14], eax
lea eax, [ebp + 1]
mov edi, dword [esp + 0x24]
and edi, ebp
add edi, 0x204
cmp edi, dword [esp + 0x24]
jg 0x4568c3
lea edi, [edi - 0x203]
jmp 0x4567fb
cmp ebp, dword [esi + edi*4]
jle 0x4568f8
inc eax
inc edi
cmp eax, dword [esp + 0x14]
jl 0x4567f0
mov edi, dword [esp + 8]
mov eax, edi
sub edx, 2
sub edi, ebx
and eax, dword [esp + 0x24]
jmp 0x456820
mov dword [esi + eax*4], edi
inc dword [esp + 8]
inc eax
inc edi
and eax, dword [esp + 0x24]
cmp dword [esp + 8], edx
jle 0x456820
mov ecx, dword [esp + 8]
mov dword [esp], ebx
sub ecx, ebx
mov dword [esp + 0x28], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
jmp 0x456860
movzx eax, byte [ecx + edi]
movzx ebx, byte [ecx + edi + 1]
movzx ecx, byte [ecx + edi + 2]
movzx eax, word [edx + eax*2]
movzx ebx, word [edx + ebx*2 + 0x200]
movzx ecx, word [edx + ecx*2 + 0x400]
xor eax, ebx
xor eax, ecx
mov ecx, dword [esp + 8]
and eax, dword [esp + 0x68]
mov dword [ebp + eax*4], ecx
inc ecx
mov dword [esp + 8], ecx
cmp ecx, dword [esp + 0x28]
jle 0x456860
add dword [esp + 0x28], 2
jmp 0x456903
mov dword [esp + 0xc], edi
and edi, dword [esp + 0x24]
cmp ebp, dword [esi + edi*4]
mov edi, dword [esp + 0xc]
jle 0x4568f8
inc eax
inc edi
cmp eax, dword [esp + 0x14]
jl 0x4568b0
mov edi, dword [esp + 8]
mov eax, edi
sub edx, 2
sub edi, ebx
and eax, dword [esp + 0x24]
jmp 0x4568e0
mov dword [esi + eax*4], edi
inc dword [esp + 8]
inc eax
inc edi
and eax, dword [esp + 0x24]
cmp dword [esp + 8], edx
jle 0x4568e0
jmp 0x456833
mov dword [esp], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x28], edx
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
mov ecx, dword [esp + 8]
jmp 0x456920
movzx eax, byte [ecx + edi]
movzx ebx, byte [ecx + edi + 1]
movzx ecx, byte [ecx + edi + 2]
movzx eax, word [edx + eax*2]
movzx ebx, word [edx + ebx*2 + 0x200]
movzx ecx, word [edx + ecx*2 + 0x400]
xor eax, ebx
mov ebx, dword [esp + 0x24]
xor eax, ecx
and ebx, dword [esp + 8]
and eax, dword [esp + 0x68]
mov ecx, dword [ebp + eax*4]
mov dword [esi + ebx*4], ecx
mov ecx, dword [esp + 8]
mov dword [ebp + eax*4], ecx
inc ecx
cmp ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
jle 0x456920
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0x7c]
sub ecx, 3
mov word [esi + edx*2], ax
dec eax
mov byte [edx + ebp], cl
inc edx
mov esi, dword [esp + 0x50]
mov ebx, eax
mov ebp, dword [esp + 0x4c]
shr eax, 7
mov dword [esp + 0x2c], edx
add eax, 0x100
mov edi, dword [esp + 0x48]
cmp ebx, 0x100
cmovge ebx, eax
movzx eax, byte [ebx + edi + 0x100]
movzx ecx, byte [ecx + edi]
add ecx, 0x101
inc word [esi + eax*4]
inc word [ebp + ecx*4]
xor eax, eax
mov ebx, dword [esp]
mov edx, dword [esp + 0x28]
jmp 0x456a01
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0x7c]
mov word [esi + edi*2], 0
mov byte [edi + ebp], cl
mov esi, dword [esp + 0x4c]
inc edi
inc word [esi + ecx*4]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x44]
movzx ecx, byte [edx + edi]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
inc edx
cmp edx, dword [esp + 0x6c]
mov dword [esp + 0x1c], ecx
jge 0x456a50
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x70]
jge 0x456a50
cmp dword [esp + 0x20], 0x102
jne 0x4564e0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
dec edx
mov ecx, dword [esp + 0x20]
mov eax, 1
jmp 0x45678f
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x20]
movzx ebx, word [esp + 0x18]
movzx ecx, byte [esp + 0x1c]
mov dword [esi], edx
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov eax, dword [esp + 0x2c]
add esp, 0x30
pop ebp
pop edi
pop esi
pop ebx
ret