Function at 0x450460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
dec eax
cmp eax, 3
ja case.default.0x450478
jmp dword [eax*4 + 0x450914]
mov ecx, dword [esi + 0x38]
lea eax, [esi + 0x3c]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 8], eax
lea eax, [ecx + ebx]
mov dword [ebp - 4], eax
mov dword [edi], eax
cmp eax, 0x10
jae 0x4504bf
push ebx
push dword [ebp + 0xc]
lea eax, [esi + 0x28]
add eax, ecx
push eax
call fcn.004a4500
add dword [esi + 0x38], ebx
add esp, 0xc
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
cmp ebx, dword [ebp + 0x14]
je case.default.0x450478
mov edi, 0x10
lea eax, [esi + 0x28]
sub edi, ecx
add eax, ecx
push edi
push ebx
push eax
call fcn.004a4500
mov ecx, dword [ebp + 0x14]
add edi, ebx
mov eax, dword [esi + 0x28]
mov ebx, dword [ebp - 4]
push ecx
mov dword [ecx], eax
add ebx, 0xfffffff0
mov eax, dword [esi + 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x30]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x34]
mov dword [ecx + 0xc], eax
lea eax, [esi + 0x3c]
push eax
call fcn.00450930
mov eax, dword [ebp + 0x14]
add esp, 0x14
add eax, 0x10
cmp ebx, 0x10
jb 0x450559
sub eax, edi
mov esi, ebx
mov dword [ebp - 4], eax
shr esi, 4
lea ecx, [eax + edi]
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
push ecx
push dword [ebp - 8]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 0xc], eax
call fcn.00450930
mov eax, dword [ebp - 4]
add esp, 8
add edi, 0x10
sub ebx, 0x10
sub esi, 1
jne 0x450523
mov esi, dword [ebp + 8]
push ebx
lea eax, [esi + 0x28]
push edi
push eax
call fcn.004a4500
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov dword [esi + 0x38], ebx
sub dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
lea eax, [esi + 0x3c]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x38]
lea ecx, [eax + edi]
mov dword [ebp - 8], ecx
mov dword [ebx], ecx
cmp ecx, 0x10
jae 0x4505b8
push edi
push dword [ebp + 0xc]
add eax, 0x28
add eax, esi
push eax
call fcn.004a4500
add dword [esi + 0x38], edi
add esp, 0xc
mov dword [ebx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
cmp ebx, dword [ebp + 0x14]
je case.default.0x450478
mov edi, 0x10
sub edi, eax
add eax, 0x28
push edi
add eax, esi
push ebx
push eax
call fcn.004a4500
mov eax, dword [ebp - 8]
add ebx, edi
mov edi, dword [ebp + 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x18]
xor eax, dword [esi + 0x28]
mov dword [edi], eax
mov eax, dword [esi + 0x2c]
xor eax, dword [esi + 0x1c]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x30]
xor eax, dword [esi + 0x20]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x34]
xor eax, dword [esi + 0x24]
mov dword [edi + 0xc], eax
lea eax, [esi + 0x3c]
push edi
push eax
call fcn.00450930
add esp, 0x14
add edi, 0x10
cmp dword [ebp - 4], 0x10
jb 0x450673
mov esi, dword [ebp - 4]
mov eax, esi
shr eax, 4
mov dword [ebp - 4], eax
nop word [eax + eax]
mov eax, dword [edi - 0x10]
xor eax, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebx + 4]
xor eax, dword [edi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
xor eax, dword [edi - 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
xor eax, dword [edi - 4]
push edi
push dword [ebp - 0xc]
mov dword [edi + 0xc], eax
call fcn.00450930
add esp, 8
add ebx, 0x10
add edi, 0x10
sub esi, 0x10
sub dword [ebp - 4], 1
jne 0x450630
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
mov eax, dword [edi - 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [edi - 0xc]
mov dword [esi + 0x1c], eax
mov eax, dword [edi - 8]
mov dword [esi + 0x20], eax
mov eax, dword [edi - 4]
mov edi, dword [ebp - 4]
push edi
mov dword [esi + 0x24], eax
lea eax, [esi + 0x28]
push ebx
push eax
call fcn.004a4500
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov dword [esi + 0x38], edi
sub dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x38]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
lea ecx, [eax + ebx]
mov dword [ebp + 8], ecx
mov dword [edi], ecx
cmp ecx, 0x10
jae 0x4506e7
push ebx
push dword [ebp + 0xc]
add eax, 0x28
add eax, esi
push eax
call fcn.004a4500
add dword [esi + 0x38], ebx
add esp, 0xc
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
cmp ebx, dword [ebp + 0x14]
je case.default.0x450478
mov edi, 0x10
sub edi, eax
add eax, 0x28
push edi
add eax, esi
push ebx
push eax
call fcn.004a4500
lea eax, [esi + 0x18]
add edi, ebx
mov ebx, dword [ebp + 8]
push eax
lea eax, [esi + 0x3c]
add ebx, 0xfffffff0
push eax
call fcn.00450930
mov edx, dword [ebp + 0x14]
lea ecx, [esi + 0x18]
mov eax, dword [ecx]
add esp, 0x14
xor eax, dword [esi + 0x28]
mov dword [edx], eax
mov eax, dword [esi + 0x2c]
xor eax, dword [esi + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [esi + 0x30]
xor eax, dword [esi + 0x20]
mov dword [edx + 8], eax
mov eax, dword [esi + 0x34]
xor eax, dword [esi + 0x24]
mov dword [edx + 0xc], eax
lea eax, [edx + 0x10]
cmp ebx, 0x10
jb 0x4507a4
sub eax, edi
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, 4
mov dword [ebp + 8], eax
nop dword [eax]
push ecx
lea eax, [esi + 0x3c]
push eax
call fcn.00450930
mov eax, dword [edi]
lea ecx, [esi + 0x18]
xor eax, dword [ecx]
add esp, 8
mov edx, dword [ebp - 0xc]
sub ebx, 0x10
mov dword [edx + edi], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x1c]
mov dword [edx + edi + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x20]
mov dword [edx + edi + 8], eax
mov eax, dword [edi + 0xc]
xor eax, dword [esi + 0x24]
mov dword [edx + edi + 0xc], eax
add edi, 0x10
sub dword [ebp + 8], 1
jne 0x450760
push ebx
lea eax, [esi + 0x28]
push edi
push eax
call fcn.004a4500
mov eax, dword [esi + 0x38]
add esp, 0xc
and eax, 0xf0000000
add eax, ebx
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x18]
pop edi
pop esi
sub dword [eax], ebx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x38]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
lea ecx, [eax + ebx]
mov dword [ebp + 8], ecx
mov dword [edi], ecx
cmp ecx, 0x10
jae 0x450807
push ebx
push dword [ebp + 0xc]
add eax, 0x28
add eax, esi
push eax
call fcn.004a4500
add dword [esi + 0x38], ebx
add esp, 0xc
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
cmp ebx, dword [ebp + 0x14]
je case.default.0x450478
mov edi, 0x10
sub edi, eax
add eax, 0x28
push edi
add eax, esi
push ebx
push eax
call fcn.004a4500
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x3c]
add edi, ebx
add ecx, 0xfffffff0
lea ebx, [esi + 0x18]
mov dword [ebp + 8], ecx
push ebx
push eax
call fcn.00450930
mov eax, dword [esi + 0x28]
add esp, 0x14
xor dword [ebx], eax
mov eax, dword [esi + 0x2c]
xor dword [esi + 0x1c], eax
mov eax, dword [esi + 0x30]
xor dword [esi + 0x20], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi + 0x34]
xor dword [esi + 0x24], eax
mov eax, dword [ebx]
mov dword [ecx], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x20]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x24]
mov dword [ecx + 0xc], eax
add ecx, 0x10
mov eax, dword [ebp + 8]
cmp eax, 0x10
jb 0x4508da
sub ecx, edi
shr eax, 4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
lea eax, [esi + 0x3c]
push ebx
push eax
call fcn.00450930
mov eax, dword [edi]
add esp, 8
xor dword [ebx], eax
mov eax, dword [edi + 4]
xor dword [esi + 0x1c], eax
mov eax, dword [edi + 8]
xor dword [esi + 0x20], eax
mov eax, dword [edi + 0xc]
xor dword [esi + 0x24], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebx]
mov dword [ecx + edi], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx + edi + 4], eax
mov eax, dword [esi + 0x20]
mov dword [ecx + edi + 8], eax
mov eax, dword [esi + 0x24]
mov dword [ecx + edi + 0xc], eax
add edi, 0x10
mov eax, dword [ebp + 8]
sub eax, 0x10
sub dword [ebp - 4], 1
mov dword [ebp + 8], eax
jne 0x450888
push eax
lea eax, [esi + 0x28]
push edi
push eax
call fcn.004a4500
mov eax, dword [esi + 0x38]
add esp, 0xc
mov ecx, dword [ebp + 8]
and eax, 0xf0000000
add eax, ecx
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
sub dword [eax], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x1001
pop ebx
mov esp, ebp
pop ebp
ret