Function at 0x454120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, edx
add dword [ecx + 0x38], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edx
mov ecx, dword [ecx + 0x3c]
test ecx, ecx
je 0x454166
mov eax, 8
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], ecx
sub eax, ecx
cmp eax, edi
cmovb edi, eax
cmp edi, 4
jb 0x45416d
mov edx, dword [ebx]
mov esi, ebx
mov ebx, 4
jmp 0x454173
xor eax, eax
jmp 0x4542e6
mov esi, ebx
xor ebx, ebx
xor edx, edx
mov ecx, ebx
mov dword [ebp - 0x18], eax
or ecx, 1
cmp ecx, edi
jae 0x4541a7
movzx esi, word [esi + ebx]
lea ecx, [ebx*8]
xor eax, eax
shld eax, esi, cl
shl esi, cl
test cl, 0x20
mov ecx, 0
cmovne eax, esi
cmovne esi, ecx
or ebx, 2
or dword [ebp - 0x14], eax
or edx, esi
cmp ebx, edi
mov dword [ebp - 0x10], edx
jae 0x4541de
mov eax, dword [ebp - 0x28]
xor esi, esi
xor edx, edx
movzx edi, byte [eax + ebx]
shl ebx, 3
mov ecx, ebx
shld esi, edi, cl
shl edi, cl
test bl, 0x20
mov ebx, dword [ebp - 0x10]
cmovne esi, edi
cmovne edi, edx
mov edx, dword [ebp - 0x14]
or ebx, edi
mov edi, dword [ebp - 0x20]
or edx, esi
mov esi, dword [ebp - 0x24]
jmp 0x4541ea
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
lea ecx, [edi*8]
xor eax, eax
shld edx, ebx, cl
shl ebx, cl
test cl, 0x20
cmove eax, ebx
cmovne edx, ebx
or eax, dword [esi + 0x30]
or edx, dword [esi + 0x34]
mov dword [ebp - 0x34], eax
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x34], edx
cmp dword [ebp - 0x18], eax
jbe 0x454221
add edi, eax
mov ecx, edi
jmp 0x4544b4
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov dword [ebp - 0x14], edx
xor eax, edx
xor ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x20]
mov edx, dword [ebp - 0x38]
add edi, eax
mov dword [ebp - 0x1c], edi
mov edi, dword [esi + 0x24]
adc ebx, edi
mov dword [ebp - 0x10], ebx
mov ebx, eax
shld ebx, edi, 0xd
shld edi, eax, 0xd
mov eax, dword [esi + 0x18]
mov esi, dword [esi + 0x1c]
xor edi, dword [ebp - 0x10]
xor ebx, dword [ebp - 0x1c]
add eax, ecx
mov dword [ebp - 0x30], eax
mov eax, ecx
adc esi, edx
shrd ecx, edx, 0x10
shld eax, edx, 0x10
xor ecx, esi
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], esi
xor eax, dword [ebp - 0x30]
add dword [ebp - 0x10], eax
mov esi, eax
adc edx, ecx
shld esi, ecx, 0x15
shrd eax, ecx, 0xb
mov ecx, dword [ebp - 0x24]
xor esi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
xor eax, edx
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x28], esi
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
add edx, ebx
mov dword [esi + 0x2c], eax
adc ecx, edi
mov eax, ebx
shrd ebx, edi, 0xf
xor ebx, ecx
shld eax, edi, 0x11
mov edi, dword [ebp + 8]
mov dword [esi + 0x24], ebx
mov ebx, dword [ebp - 0x10]
xor eax, edx
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], edx
xor ebx, dword [ebp - 0x34]
xor ecx, dword [ebp - 0x14]
mov dword [esi + 0x10], ebx
mov ebx, dword [ebp - 0x28]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x3c], 0
sub edi, eax
mov ecx, edi
and edi, 0xfffffff8
and ecx, 7
cmp eax, edi
mov dword [ebp - 0x20], ecx
jae 0x454402
mov ecx, dword [esi + 0x2c]
mov dword [ebp - 0x3c], edi
mov edx, esi
mov edi, dword [esi + 0x28]
mov dword [ebp - 0x18], eax
mov ebx, dword [edx + 0x24]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0x14]
mov dword [ebp - 0x10], esi
mov esi, dword [edx + 0x1c]
mov edx, dword [edx + 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x2c], esi
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov esi, dword [esi + edx + 4]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], esi
xor dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x18]
mov esi, dword [edx + esi]
mov edx, dword [ebp - 0x1c]
xor edi, esi
add ecx, eax
mov dword [ebp - 0x30], esi
mov esi, eax
adc dword [ebp - 0x10], ebx
shld esi, ebx, 0xd
shld ebx, eax, 0xd
mov eax, dword [ebp - 0x2c]
xor esi, ecx
xor ebx, dword [ebp - 0x10]
add dword [ebp - 0x14], edi
mov dword [ebp - 0x38], esi
mov esi, edi
adc eax, edx
shld esi, edx, 0x10
shrd edi, edx, 0x10
mov dword [ebp - 0x2c], eax
xor edi, eax
xor esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, esi
mov edx, eax
mov dword [ebp - 0x40], eax
mov eax, esi
adc ecx, edi
shrd esi, edi, 0xb
shld eax, edi, 0x15
xor esi, ecx
mov edi, eax
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
xor edi, edx
mov edx, dword [ebp - 0x38]
add esi, edx
adc eax, ebx
xor ecx, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov eax, edx
shld eax, ebx, 0x11
shld ebx, edx, 0x11
mov edx, dword [ebp - 0x18]
xor ebx, dword [ebp - 0x14]
xor eax, esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x40]
add edx, 8
mov dword [ebp - 0x18], edx
xor ecx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x3c]
jb 0x454324
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x28], edi
mov edi, dword [ebp - 0x1c]
mov dword [edx + 0x2c], edi
mov dword [edx + 0x10], ecx
mov ecx, dword [ebp - 0x10]
mov dword [edx + 0x14], ecx
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x24], ebx
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov dword [edx + 0x1c], esi
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x18]
cmp ecx, 4
jb 0x45441d
mov ecx, dword [ebx + eax]
mov esi, ebx
mov ebx, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], ecx
jmp 0x45442f
mov esi, ebx
mov dword [ebp - 0x14], 0
xor ebx, ebx
mov dword [ebp - 0x10], 0
mov edi, dword [ebp - 0x20]
mov ecx, ebx
mov dword [ebp - 0x18], eax
or ecx, 1
cmp ecx, edi
jae 0x454470
lea ecx, [ebx + eax]
xor eax, eax
mov edi, dword [ebp - 0x14]
movzx edx, word [esi + ecx]
lea ecx, [ebx*8]
xor esi, esi
shld eax, edx, cl
shl edx, cl
test cl, 0x20
mov ecx, dword [ebp - 0x20]
cmovne eax, edx
cmovne edx, esi
mov esi, dword [ebp - 0x10]
or ebx, 2
or edi, eax
or esi, edx
jmp 0x454478
mov ecx, edi
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
cmp ebx, ecx
jae 0x4544a9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
xor edx, edx
add ecx, ebx
shl ebx, 3
movzx eax, byte [eax + ecx]
mov ecx, ebx
shld edx, eax, cl
shl eax, cl
mov ecx, dword [ebp - 0x20]
test bl, 0x20
mov ebx, 0
cmovne edx, eax
cmovne eax, ebx
or edi, edx
or esi, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x30], esi
mov esi, eax
mov dword [eax + 0x34], edi
mov dword [esi + 0x3c], ecx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret