Function at 0x4583e0
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 0x458420
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 0x4584c6
jmp 0x4585bc
cmp ebx, dword [esp + 0x74]
mov dword [esp + 0x14], ebx
jl 0x45858a
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 0x4584df
cmp ecx, eax
cmovg eax, ecx
cmovg ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
add ecx, ebx
cmp edx, ecx
jge 0x45868d
dec dword [esp + 8]
jne 0x458490
jmp 0x45868d
add edx, edi
add edi, dword [esp + 0x14]
movzx esi, word [eax + edx - 1]
movzx ecx, word [eax + edi - 1]
cmp esi, ecx
jne 0x45857b
mov esi, 0x10
jmp 0x458500
movdqu xmm3, xmmword [esi + edx]
movdqu xmm2, xmmword [esi + edi]
pcmpeqb xmm2, xmm3
pmovmskb ecx, xmm2
cmp ecx, 0xffff
je 0x458521
not ecx
bsf ecx, ecx
jmp 0x45856a
add esi, 0x10
cmp esi, 0x100
jl 0x458500
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 0x45856a
mov ebp, dword [esp + 0x14]
mov eax, 0x102
sub edi, ebp
mov esi, dword [esp + 0x60]
sub edx, edi
jmp 0x45868d
sub edi, dword [esp + 0x14]
add ecx, esi
mov esi, dword [esp + 0x60]
sub edx, edi
jmp 0x4584bc
sub edi, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
sub edx, edi
jmp 0x4584c6
mov edi, dword [esp + 0x54]
jmp 0x458590
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 0x4585d5
cmp ecx, eax
cmovg eax, ecx
cmovg ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
add ecx, ebx
cmp edx, ecx
jge 0x45868d
dec dword [esp + 8]
jne 0x458590
jmp 0x45868d
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 0x45867c
mov esi, 0x10
jmp 0x458600
movdqu xmm3, xmmword [esi + edx]
movdqu xmm2, xmmword [esi + edi]
pcmpeqb xmm2, xmm3
pmovmskb ecx, xmm2
cmp ecx, 0xffff
je 0x458621
not ecx
bsf ecx, ecx
jmp 0x458669
add esi, 0x10
cmp esi, 0x100
jl 0x458600
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 0x458669
mov ebp, dword [esp + 0x14]
mov eax, 0x102
sub edi, ebp
mov esi, dword [esp + 0x60]
sub edx, dword [esp + 0x44]
jmp 0x45868d
sub edi, dword [esp + 0x14]
add ecx, esi
mov esi, dword [esp + 0x60]
sub edx, dword [esp + 0x44]
jmp 0x4585b2
sub edi, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
sub edx, dword [esp + 0x44]
jmp 0x4585bc
mov ebx, edx
sub ebx, ebp
cmp eax, 3
je 0x458698
jmp 0x4586a7
cmp ebx, 0x1000
jg 0x4586a2
jmp 0x4586a7
mov eax, 2
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x20]
cmp ecx, 2
jl 0x458941
je 0x458918
cmp ecx, eax
jl 0x458918
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 0x4586f0
jmp 0x458838
lea eax, [edx - 2]
cmp dword [esp + 8], eax
jge 0x458838
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 0x458803
lea edi, [edi - 0x203]
jmp 0x45873b
cmp ebp, dword [esi + edi*4]
jle 0x458838
inc eax
inc edi
cmp eax, dword [esp + 0x14]
jl 0x458730
mov edi, dword [esp + 8]
mov eax, edi
sub edx, 2
sub edi, ebx
and eax, dword [esp + 0x24]
jmp 0x458760
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 0x458760
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 0x4587a0
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 0x4587a0
add dword [esp + 0x28], 2
jmp 0x458843
mov dword [esp + 0xc], edi
and edi, dword [esp + 0x24]
cmp ebp, dword [esi + edi*4]
mov edi, dword [esp + 0xc]
jle 0x458838
inc eax
inc edi
cmp eax, dword [esp + 0x14]
jl 0x4587f0
mov edi, dword [esp + 8]
mov eax, edi
sub edx, 2
sub edi, ebx
and eax, dword [esp + 0x24]
jmp 0x458820
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 0x458820
jmp 0x458773
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 0x458860
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 0x458860
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 0x458941
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 0x458990
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x70]
jge 0x458990
cmp dword [esp + 0x20], 0x102
jne 0x458420
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
dec edx
mov ecx, dword [esp + 0x20]
mov eax, 1
jmp 0x4586cf
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