Function at 0x456a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [0x5522c0]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 8]
push esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x30], esi
mov esi, dword [ecx]
mov dword [eax], 0
mov dword [ecx], 0
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x44], esi
mov dword [edx], 0
jmp case.0x456cb4.6
mov edi, dword [esp + 0x20]
mov ecx, dword [edi]
mov esi, dword [esp + 0x44]
mov eax, dword [ebx]
sub esi, ecx
mov dword [esp + 0x10], esi
cmp eax, 6
jne 0x456ca1
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
sub eax, dword [edx]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
test esi, esi
jne 0x456aa9
test eax, eax
je 0x4571f1
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
lea edi, [ebx + 0x58]
call fcn.00456460
mov esi, dword [esp + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x190]
add esp, 0x18
dec eax
je 0x456b59
sub eax, 3
je 0x456b0c
sub eax, 6
jne 0x456b75
mov ecx, dword [esp + 0x18]
mov eax, esi
push eax
push ecx
lea esi, [ebx + 0x1a0]
call fcn.004557b0
mov esi, dword [esp + 0x18]
add esp, 8
jmp 0x456b75
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0x198]
mov edx, dword [ebx + 0x19c]
mov edi, dword [esp + 0x18]
test esi, esi
je 0x456b47
movzx eax, byte [edi]
xor eax, ecx
shrd ecx, edx, 8
and eax, 0xff
xor ecx, dword [eax*8 + 0x55c300]
shr edx, 8
xor edx, dword [eax*8 + 0x55c304]
inc edi
dec esi
jne 0x456b24
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x198], ecx
mov dword [ebx + 0x19c], edx
jmp 0x456b75
mov ecx, dword [ebx + 0x194]
mov edx, dword [esp + 0x18]
push 0x55cb00
push esi
call dword [0x559ce8]
mov dword [ebx + 0x194], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
add dword [ecx], eax
add dword [esp + 0xc], eax
add dword [ebx + 0x18], eax
mov ecx, dword [esp + 0x24]
mov edx, 0
adc dword [ebx + 0x1c], edx
add dword [ecx], esi
add dword [esp + 0x18], esi
add dword [ebx + 0x20], esi
mov ecx, dword [esp + 0x28]
adc dword [ebx + 0x24], edx
cmp ecx, edx
jne 0x457211
mov ecx, dword [esp + 0x1c]
cmp dword [ecx], 1
jne 0x456c7b
movzx eax, word [ebx + 0x10]
and eax, 0xf
je 0x456bd8
lea ecx, [eax - 1]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, 4
shl edx, cl
mov eax, dword [ebx + 0x14]
xor edi, edi
xor ecx, ecx
add eax, edx
adc edi, ecx
add eax, dword [ebx + 0x18]
adc edi, dword [ebx + 0x1c]
xor esi, esi
jmp 0x456bf0
mov dl, al
shrd eax, edi, 7
or dl, 0x80
mov byte [esp + esi + 0x48], dl
shr edi, 7
mov ecx, eax
inc esi
or ecx, edi
jne 0x456bf0
mov edx, dword [ebx + 0x24]
and byte [esp + esi + 0x47], 0x7f
mov ecx, dword [ebx + 0x20]
lea edi, [esp + esi + 0x48]
mov dword [esp + 0x30], edx
xor eax, eax
mov dl, cl
or dl, 0x80
mov byte [edi + eax], dl
mov edx, dword [esp + 0x30]
shrd ecx, edx, 7
shr edx, 7
mov dword [esp + 0x30], edx
mov edx, ecx
inc eax
or edx, dword [esp + 0x30]
jne 0x456c1c
and byte [edi + eax - 1], 0x7f
lea edi, [eax + esi]
lea eax, [esp + 0x48]
push edi
push eax
lea esi, [ebx + 0x208]
call fcn.004557b0
add esp, 8
add dword [ebx + 0x30], edi
mov eax, 0
mov dword [ebx], 7
adc dword [ebx + 0x34], eax
add dword [ebx + 0x28], 1
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
adc dword [ebx + 0x2c], eax
jmp case.0x456cb4.6
cmp eax, edx
jne case.0x456cb4.6
test esi, esi
jne case.0x456cb4.6
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004e4d50
mov esp, ebp
pop ebp
ret
xor edx, edx
cmp esi, edx
je 0x457227
cmp eax, 7
ja case.0x456cb4.6
jmp dword [eax*4 + 0x457260]
mov eax, dword [ebx + 4]
cmp eax, 0xc
jae 0x456cf6
cmp eax, 6
jae 0x456cda
mov ecx, dword [esp + 0xc]
mov dl, byte [ecx]
cmp dl, byte [eax + 0x5540c4]
jne 0x457247
mov esi, dword [esp + 0xc]
mov cl, byte [esi]
mov byte [eax + ebx + 0x290], cl
inc dword [ebx + 4]
inc esi
inc dword [edi]
mov dword [esp + 0xc], esi
jmp case.0x456cb4.6
lea esi, [ebx + 0x290]
lea edi, [ebx + 0x10]
call fcn.00456600
test eax, eax
jne 0x45724c
lea eax, [ebx + 0x208]
mov dword [ebx], 5
call fcn.00455290
xor eax, eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 4], eax
jmp case.0x456cb4.6
mov ecx, dword [ebx + 4]
cmp ecx, edx
jne 0x456dd4
mov eax, dword [esp + 0xc]
mov dl, byte [eax]
mov byte [ebx + 0x290], dl
inc dword [ebx + 4]
inc dword [edi]
inc eax
cmp byte [ebx + 0x290], 0
mov dword [esp + 0xc], eax
jne 0x456dbe
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x28]
push eax
push ecx
lea edi, [ebx + 0x291]
call fcn.00455c00
inc eax
xor ecx, ecx
add esp, 8
add dword [ebx + 0x30], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x38], eax
adc dword [ebx + 0x34], ecx
lea edi, [ebx + 0x208]
lea eax, [ebx + 0x270]
mov dword [ebx + 0x3c], ecx
call fcn.004558d0
mov eax, edi
call fcn.00455290
mov eax, dword [ebx + 0xc]
push 0x55cb00
push eax
lea edx, [ebx + 0x290]
or ecx, 0xffffffff
call dword [0x559ce8]
mov dword [ebx + 0x50], eax
mov dword [ebx], 1
movzx edx, byte [ebx + 0x290]
lea eax, [edx*4 + 4]
mov dword [ebx + 0x14], eax
jmp case.0x456cb4.6
mov eax, dword [ebx + 0x14]
cmp ecx, eax
je 0x456e11
sub eax, ecx
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x456de9
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push esi
push edx
lea eax, [ecx + ebx + 0x290]
push eax
call fcn.004e9660
add dword [ebx + 4], esi
add dword [edi], esi
add esp, 0xc
add dword [esp + 0xc], esi
jmp case.0x456cb4.6
lea eax, [ebx + 0x290]
push eax
lea esi, [ebx + 0xf8]
push esi
call fcn.00456690
xor edi, edi
add esp, 8
cmp eax, edi
jne 0x45724c
movzx ecx, word [ebx + 0x10]
lea eax, [ebx + 0x190]
and ecx, 0xf
mov dword [ebx], 6
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
call fcn.00455c70
lea ecx, [ebx + 0x58]
push esi
push ecx
call fcn.00456830
add esp, 8
cmp eax, edi
je case.0x456cb4.6
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004e4d50
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
add eax, dword [ebx + 0x18]
xor edx, edx
and eax, 3
or eax, edx
je 0x456ebf
mov eax, dword [esp + 0xc]
inc ecx
mov dword [edi], ecx
inc dword [ebx + 8]
mov dl, byte [eax]
inc eax
mov dword [esp + 0xc], eax
test dl, dl
je case.0x456cb4.6
mov eax, 3
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004e4d50
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx + 0x10]
and eax, 0xf
jne 0x456ece
mov dword [esp + 0x10], edx
jmp 0x456eea
lea ecx, [eax - 1]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 4
shl eax, cl
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x10]
sub eax, ecx
mov dword [esp + 0x14], eax
je 0x456f18
cmp eax, esi
jbe 0x456f01
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push esi
push eax
lea ecx, [ecx + ebx + 0x290]
push ecx
jmp 0x456dfb
lea ecx, [ebx + 0x190]
lea eax, [esp + 0x48]
mov dword [ebx], 5
mov dword [ebx + 4], 0
call fcn.00455cd0
test eax, eax
je case.0x456cb4.6
mov eax, dword [esp + 0x10]
lea esi, [ebx + 0x290]
lea edi, [esp + 0x48]
cmp eax, 4
jb 0x456f68
nop
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x456ea6
sub eax, 4
add esi, 4
add edi, 4
cmp eax, 4
jae 0x456f50
test eax, eax
je case.0x456cb4.6
mov cl, byte [esi]
cmp cl, byte [edi]
jne 0x456ea6
cmp eax, 1
jbe case.0x456cb4.6
mov dl, byte [esi + 1]
cmp dl, byte [edi + 1]
jne 0x456ea6
cmp eax, 2
jbe case.0x456cb4.6
mov al, byte [esi + 2]
cmp al, byte [edi + 2]
jmp 0x456ea0
mov edx, dword [ebx + 4]
cmp edx, dword [ebx + 0xc]
jae 0x456fce
inc ecx
mov dword [edi], ecx
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0xc]
mov al, byte [edi]
mov cl, byte [esi + ebx + 0x290]
inc esi
inc edi
mov dword [ebx + 4], esi
mov dword [esp + 0xc], edi
cmp al, cl
jmp 0x456ea0
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x30]
mov dword [esp + 0x38], edx
cmp dword [ebx + 0x3c], eax
ja 0x457041
jb 0x456fe6
cmp edx, ecx
jae 0x457041
sub ecx, edx
sbb eax, dword [ebx + 0x3c]
xor edx, edx
cmp edx, eax
jb 0x456ffd
ja 0x456ff7
cmp esi, ecx
jbe 0x456ffd
mov dword [esp + 0x10], ecx
mov esi, ecx
mov edi, dword [esp + 0xc]
mov ecx, dword [ebx + 0x50]
push 0x55cb00
push esi
mov edx, edi
call dword [0x559ce8]
push esi
push edi
lea esi, [ebx + 0x208]
mov dword [ebx + 0x50], eax
call fcn.004557b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
add dword [ecx], eax
add edi, eax
add esp, 8
add dword [ebx + 0x38], eax
mov dword [esp + 0xc], edi
adc dword [ebx + 0x3c], 0
jmp case.0x456cb4.6
and edx, 3
xor esi, esi
or edx, esi
je 0x457090
mov eax, dword [esp + 0xc]
mov cl, byte [eax]
mov edx, 1
add eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x50]
movzx esi, cl
xor esi, eax
shr eax, 8
and esi, 0xff
xor eax, dword [esi*4 + 0x55cb00]
mov dword [ebx + 0x50], eax
add dword [edi], edx
add dword [ebx + 0x38], edx
mov eax, 0
adc dword [ebx + 0x3c], eax
add dword [ebx + 0x30], edx
adc dword [ebx + 0x34], eax
test cl, cl
jmp 0x456ea0
add ecx, 4
adc eax, 0
mov dword [ebx + 0x34], eax
lea edi, [ebx + 0x208]
lea eax, [esp + 0x48]
mov dword [ebx], 2
mov dword [ebx + 0x30], ecx
mov dword [ebx + 4], esi
call fcn.004558d0
lea eax, [ebx + 0x270]
lea ecx, [esp + 0x48]
mov edx, 0x20
sub ecx, eax
mov esi, dword [eax + ecx]
cmp esi, dword [eax]
jne 0x456ea6
sub edx, 4
add eax, 4
cmp edx, 4
jae 0x4570c5
jmp case.0x456cb4.6
cmp dword [ebx + 4], 4
jae 0x457106
mov eax, dword [esp + 0xc]
inc ecx
mov dword [edi], ecx
mov dl, byte [eax]
mov ecx, dword [ebx + 4]
mov byte [ecx + ebx + 0x290], dl
inc dword [ebx + 4]
inc eax
mov dword [esp + 0xc], eax
jmp case.0x456cb4.6
mov eax, dword [ebx + 0x50]
not eax
cmp eax, dword [ebx + 0x290]
mov dword [ebx], 3
mov dword [ebx + 4], edx
jmp 0x456ea0
mov ecx, dword [ebx + 4]
mov eax, 0xc
sub eax, ecx
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x457135
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push esi
push edx
lea eax, [ecx + ebx + 0x290]
push eax
call fcn.004e9660
add dword [ebx + 4], esi
add dword [edi], esi
add dword [esp + 0x18], esi
add esp, 0xc
cmp dword [ebx + 4], 0xc
jne case.0x456cb4.6
add dword [ebx + 0x48], 1
movzx edx, word [ebx + 0x10]
mov eax, 0
adc dword [ebx + 0x4c], eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], eax
lea esi, [ebx + 0x290]
mov dword [ebx], 4
mov ecx, dword [esi + 4]
xor edi, edi
add ecx, 1
adc edi, eax
mov eax, ecx
mov ecx, edi
shld ecx, eax, 2
add eax, eax
add eax, eax
cmp dword [ebx + 0x30], eax
jne 0x456ea6
cmp dword [ebx + 0x34], ecx
jne 0x456ea6
push edx
call fcn.00456640
add esp, 4
test eax, eax
jne case.0x456cb4.6
jmp 0x456ea6
mov eax, dword [esp + 0xc]
cmp byte [eax], dl
je 0x4571da
test byte [ebx + 0x40], 3
jne 0x457247
mov dword [ebx + 4], edx
mov dword [ebx], edx
jmp case.0x456cb4.6
inc ecx
mov eax, 1
add dword [esp + 0xc], eax
mov dword [edi], ecx
add dword [ebx + 0x40], eax
adc dword [ebx + 0x44], edx
jmp case.0x456cb4.6
mov ecx, dword [esp + 0x1c]
mov dword [ecx], 2
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004e4d50
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004e4d50
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x1c]
mov dword [edx], 3
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004e4d50
mov esp, ebp
pop ebp
ret
mov eax, 0x11
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.004e4d50
mov esp, ebp
pop ebp
ret