Function at 0x456990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [0x4c4330]
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.0x456c34.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 0x456c21
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 0x456a29
test eax, eax
je 0x457171
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.004563f0
mov esi, dword [esp + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x190]
add esp, 0x18
dec eax
je 0x456ad9
sub eax, 3
je 0x456a8c
sub eax, 6
jne 0x456af5
mov ecx, dword [esp + 0x18]
mov eax, esi
push eax
push ecx
lea esi, [ebx + 0x1a0]
call fcn.00455740
mov esi, dword [esp + 0x18]
add esp, 8
jmp 0x456af5
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0x198]
mov edx, dword [ebx + 0x19c]
mov edi, dword [esp + 0x18]
test esi, esi
je 0x456ac7
movzx eax, byte [edi]
xor eax, ecx
shrd ecx, edx, 8
and eax, 0xff
xor ecx, dword [eax*8 + 0x4cb4a0]
shr edx, 8
xor edx, dword [eax*8 + 0x4cb4a4]
inc edi
dec esi
jne 0x456aa4
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x198], ecx
mov dword [ebx + 0x19c], edx
jmp 0x456af5
mov ecx, dword [ebx + 0x194]
mov edx, dword [esp + 0x18]
push 0x4cbca0
push esi
call dword [0x4ca178]
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 0x457191
mov ecx, dword [esp + 0x1c]
cmp dword [ecx], 1
jne 0x456bfb
movzx eax, word [ebx + 0x10]
and eax, 0xf
je 0x456b58
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 0x456b70
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 0x456b70
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 0x456b9c
and byte [edi + eax - 1], 0x7f
lea edi, [eax + esi]
lea eax, [esp + 0x48]
push edi
push eax
lea esi, [ebx + 0x208]
call fcn.00455740
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.0x456c34.6
cmp eax, edx
jne case.0x456c34.6
test esi, esi
jne case.0x456c34.6
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00485631
mov esp, ebp
pop ebp
ret
xor edx, edx
cmp esi, edx
je 0x4571a7
cmp eax, 7
ja case.0x456c34.6
jmp dword [eax*4 + 0x4571e0]
mov eax, dword [ebx + 4]
cmp eax, 0xc
jae 0x456c76
cmp eax, 6
jae 0x456c5a
mov ecx, dword [esp + 0xc]
mov dl, byte [ecx]
cmp dl, byte [eax + 0x4c60e4]
jne 0x4571c7
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.0x456c34.6
lea esi, [ebx + 0x290]
lea edi, [ebx + 0x10]
call fcn.00456590
test eax, eax
jne 0x4571cc
lea eax, [ebx + 0x208]
mov dword [ebx], 5
call fcn.00455220
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.0x456c34.6
mov ecx, dword [ebx + 4]
cmp ecx, edx
jne 0x456d54
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 0x456d3e
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x28]
push eax
push ecx
lea edi, [ebx + 0x291]
call fcn.00455b90
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.00455860
mov eax, edi
call fcn.00455220
mov eax, dword [ebx + 0xc]
push 0x4cbca0
push eax
lea edx, [ebx + 0x290]
or ecx, 0xffffffff
call dword [0x4ca178]
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.0x456c34.6
mov eax, dword [ebx + 0x14]
cmp ecx, eax
je 0x456d91
sub eax, ecx
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x456d69
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.0048e350
add dword [ebx + 4], esi
add dword [edi], esi
add esp, 0xc
add dword [esp + 0xc], esi
jmp case.0x456c34.6
lea eax, [ebx + 0x290]
push eax
lea esi, [ebx + 0xf8]
push esi
call fcn.00456620
xor edi, edi
add esp, 8
cmp eax, edi
jne 0x4571cc
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.00455c00
lea ecx, [ebx + 0x58]
push esi
push ecx
call fcn.004567c0
add esp, 8
cmp eax, edi
je case.0x456c34.6
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00485631
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 0x456e3f
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.0x456c34.6
mov eax, 3
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00485631
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx + 0x10]
and eax, 0xf
jne 0x456e4e
mov dword [esp + 0x10], edx
jmp 0x456e6a
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 0x456e98
cmp eax, esi
jbe 0x456e81
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 0x456d7b
lea ecx, [ebx + 0x190]
lea eax, [esp + 0x48]
mov dword [ebx], 5
mov dword [ebx + 4], 0
call fcn.00455c60
test eax, eax
je case.0x456c34.6
mov eax, dword [esp + 0x10]
lea esi, [ebx + 0x290]
lea edi, [esp + 0x48]
cmp eax, 4
jb 0x456ee8
nop
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x456e26
sub eax, 4
add esi, 4
add edi, 4
cmp eax, 4
jae 0x456ed0
test eax, eax
je case.0x456c34.6
mov cl, byte [esi]
cmp cl, byte [edi]
jne 0x456e26
cmp eax, 1
jbe case.0x456c34.6
mov dl, byte [esi + 1]
cmp dl, byte [edi + 1]
jne 0x456e26
cmp eax, 2
jbe case.0x456c34.6
mov al, byte [esi + 2]
cmp al, byte [edi + 2]
jmp 0x456e20
mov edx, dword [ebx + 4]
cmp edx, dword [ebx + 0xc]
jae 0x456f4e
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 0x456e20
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 0x456fc1
jb 0x456f66
cmp edx, ecx
jae 0x456fc1
sub ecx, edx
sbb eax, dword [ebx + 0x3c]
xor edx, edx
cmp edx, eax
jb 0x456f7d
ja 0x456f77
cmp esi, ecx
jbe 0x456f7d
mov dword [esp + 0x10], ecx
mov esi, ecx
mov edi, dword [esp + 0xc]
mov ecx, dword [ebx + 0x50]
push 0x4cbca0
push esi
mov edx, edi
call dword [0x4ca178]
push esi
push edi
lea esi, [ebx + 0x208]
mov dword [ebx + 0x50], eax
call fcn.00455740
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.0x456c34.6
and edx, 3
xor esi, esi
or edx, esi
je 0x457010
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 + 0x4cbca0]
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 0x456e20
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.00455860
lea eax, [ebx + 0x270]
lea ecx, [esp + 0x48]
mov edx, 0x20
sub ecx, eax
mov esi, dword [eax + ecx]
cmp esi, dword [eax]
jne 0x456e26
sub edx, 4
add eax, 4
cmp edx, 4
jae 0x457045
jmp case.0x456c34.6
cmp dword [ebx + 4], 4
jae 0x457086
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.0x456c34.6
mov eax, dword [ebx + 0x50]
not eax
cmp eax, dword [ebx + 0x290]
mov dword [ebx], 3
mov dword [ebx + 4], edx
jmp 0x456e20
mov ecx, dword [ebx + 4]
mov eax, 0xc
sub eax, ecx
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x4570b5
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.0048e350
add dword [ebx + 4], esi
add dword [edi], esi
add dword [esp + 0x18], esi
add esp, 0xc
cmp dword [ebx + 4], 0xc
jne case.0x456c34.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 0x456e26
cmp dword [ebx + 0x34], ecx
jne 0x456e26
push edx
call fcn.004565d0
add esp, 4
test eax, eax
jne case.0x456c34.6
jmp 0x456e26
mov eax, dword [esp + 0xc]
cmp byte [eax], dl
je 0x45715a
test byte [ebx + 0x40], 3
jne 0x4571c7
mov dword [ebx + 4], edx
mov dword [ebx], edx
jmp case.0x456c34.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.0x456c34.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.00485631
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00485631
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.00485631
mov esp, ebp
pop ebp
ret
mov eax, 0x11
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.00485631
mov esp, ebp
pop ebp
ret