Function at 0x4569e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [0x54c2c0]
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.0x456c84.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 0x456c71
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 0x456a79
test eax, eax
je 0x4571c1
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.00456440
mov esi, dword [esp + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x190]
add esp, 0x18
dec eax
je 0x456b29
sub eax, 3
je 0x456adc
sub eax, 6
jne 0x456b45
mov ecx, dword [esp + 0x18]
mov eax, esi
push eax
push ecx
lea esi, [ebx + 0x1a0]
call fcn.00455770
mov esi, dword [esp + 0x18]
add esp, 8
jmp 0x456b45
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0x198]
mov edx, dword [ebx + 0x19c]
mov edi, dword [esp + 0x18]
test esi, esi
je 0x456b17
movzx eax, byte [edi]
xor eax, ecx
shrd ecx, edx, 8
and eax, 0xff
xor ecx, dword [eax*8 + 0x556260]
shr edx, 8
xor edx, dword [eax*8 + 0x556264]
inc edi
dec esi
jne 0x456af4
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x198], ecx
mov dword [ebx + 0x19c], edx
jmp 0x456b45
mov ecx, dword [ebx + 0x194]
mov edx, dword [esp + 0x18]
push 0x556a60
push esi
call dword [0x553c48]
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 0x4571e1
mov ecx, dword [esp + 0x1c]
cmp dword [ecx], 1
jne 0x456c4b
movzx eax, word [ebx + 0x10]
and eax, 0xf
je 0x456ba8
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 0x456bc0
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 0x456bc0
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 0x456bec
and byte [edi + eax - 1], 0x7f
lea edi, [eax + esi]
lea eax, [esp + 0x48]
push edi
push eax
lea esi, [ebx + 0x208]
call fcn.00455770
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.0x456c84.6
cmp eax, edx
jne case.0x456c84.6
test esi, esi
jne case.0x456c84.6
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004e0a00
mov esp, ebp
pop ebp
ret
xor edx, edx
cmp esi, edx
je 0x4571f7
cmp eax, 7
ja case.0x456c84.6
jmp dword [eax*4 + 0x457230]
mov eax, dword [ebx + 4]
cmp eax, 0xc
jae 0x456cc6
cmp eax, 6
jae 0x456caa
mov ecx, dword [esp + 0xc]
mov dl, byte [ecx]
cmp dl, byte [eax + 0x54e0a4]
jne 0x457217
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.0x456c84.6
lea esi, [ebx + 0x290]
lea edi, [ebx + 0x10]
call fcn.004565e0
test eax, eax
jne 0x45721c
lea eax, [ebx + 0x208]
mov dword [ebx], 5
call fcn.00455250
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.0x456c84.6
mov ecx, dword [ebx + 4]
cmp ecx, edx
jne 0x456da4
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 0x456d8e
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x28]
push eax
push ecx
lea edi, [ebx + 0x291]
call fcn.00455be0
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.00455890
mov eax, edi
call fcn.00455250
mov eax, dword [ebx + 0xc]
push 0x556a60
push eax
lea edx, [ebx + 0x290]
or ecx, 0xffffffff
call dword [0x553c48]
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.0x456c84.6
mov eax, dword [ebx + 0x14]
cmp ecx, eax
je 0x456de1
sub eax, ecx
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x456db9
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.004e51b0
add dword [ebx + 4], esi
add dword [edi], esi
add esp, 0xc
add dword [esp + 0xc], esi
jmp case.0x456c84.6
lea eax, [ebx + 0x290]
push eax
lea esi, [ebx + 0xf8]
push esi
call fcn.00456670
xor edi, edi
add esp, 8
cmp eax, edi
jne 0x45721c
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.00455c50
lea ecx, [ebx + 0x58]
push esi
push ecx
call fcn.00456810
add esp, 8
cmp eax, edi
je case.0x456c84.6
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004e0a00
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 0x456e8f
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.0x456c84.6
mov eax, 3
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004e0a00
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx + 0x10]
and eax, 0xf
jne 0x456e9e
mov dword [esp + 0x10], edx
jmp 0x456eba
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 0x456ee8
cmp eax, esi
jbe 0x456ed1
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 0x456dcb
lea ecx, [ebx + 0x190]
lea eax, [esp + 0x48]
mov dword [ebx], 5
mov dword [ebx + 4], 0
call fcn.00455cb0
test eax, eax
je case.0x456c84.6
mov eax, dword [esp + 0x10]
lea esi, [ebx + 0x290]
lea edi, [esp + 0x48]
cmp eax, 4
jb 0x456f38
nop
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x456e76
sub eax, 4
add esi, 4
add edi, 4
cmp eax, 4
jae 0x456f20
test eax, eax
je case.0x456c84.6
mov cl, byte [esi]
cmp cl, byte [edi]
jne 0x456e76
cmp eax, 1
jbe case.0x456c84.6
mov dl, byte [esi + 1]
cmp dl, byte [edi + 1]
jne 0x456e76
cmp eax, 2
jbe case.0x456c84.6
mov al, byte [esi + 2]
cmp al, byte [edi + 2]
jmp 0x456e70
mov edx, dword [ebx + 4]
cmp edx, dword [ebx + 0xc]
jae 0x456f9e
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 0x456e70
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 0x457011
jb 0x456fb6
cmp edx, ecx
jae 0x457011
sub ecx, edx
sbb eax, dword [ebx + 0x3c]
xor edx, edx
cmp edx, eax
jb 0x456fcd
ja 0x456fc7
cmp esi, ecx
jbe 0x456fcd
mov dword [esp + 0x10], ecx
mov esi, ecx
mov edi, dword [esp + 0xc]
mov ecx, dword [ebx + 0x50]
push 0x556a60
push esi
mov edx, edi
call dword [0x553c48]
push esi
push edi
lea esi, [ebx + 0x208]
mov dword [ebx + 0x50], eax
call fcn.00455770
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.0x456c84.6
and edx, 3
xor esi, esi
or edx, esi
je 0x457060
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 + 0x556a60]
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 0x456e70
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.00455890
lea eax, [ebx + 0x270]
lea ecx, [esp + 0x48]
mov edx, 0x20
sub ecx, eax
mov esi, dword [eax + ecx]
cmp esi, dword [eax]
jne 0x456e76
sub edx, 4
add eax, 4
cmp edx, 4
jae 0x457095
jmp case.0x456c84.6
cmp dword [ebx + 4], 4
jae 0x4570d6
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.0x456c84.6
mov eax, dword [ebx + 0x50]
not eax
cmp eax, dword [ebx + 0x290]
mov dword [ebx], 3
mov dword [ebx + 4], edx
jmp 0x456e70
mov ecx, dword [ebx + 4]
mov eax, 0xc
sub eax, ecx
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x457105
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.004e51b0
add dword [ebx + 4], esi
add dword [edi], esi
add dword [esp + 0x18], esi
add esp, 0xc
cmp dword [ebx + 4], 0xc
jne case.0x456c84.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 0x456e76
cmp dword [ebx + 0x34], ecx
jne 0x456e76
push edx
call fcn.00456620
add esp, 4
test eax, eax
jne case.0x456c84.6
jmp 0x456e76
mov eax, dword [esp + 0xc]
cmp byte [eax], dl
je 0x4571aa
test byte [ebx + 0x40], 3
jne 0x457217
mov dword [ebx + 4], edx
mov dword [ebx], edx
jmp case.0x456c84.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.0x456c84.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.004e0a00
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004e0a00
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.004e0a00
mov esp, ebp
pop ebp
ret
mov eax, 0x11
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.004e0a00
mov esp, ebp
pop ebp
ret