Function at 0x450b60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor ebx, ebx
push eax
push str.SCRIPT.DAT
mov dword [esp + 0x18], ebx
call fcn.00472090
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [0x7fd18c], eax
mov ecx, eax
add eax, 0x10
mov dword [0x7fd158], ecx
mov dword [0x4bf52c], eax
add eax, 0x28
mov dword [esp + 0x18], eax
mov dword [0x7fd1cc], eax
mov dl, byte [ecx + 0xa]
xor esi, esi
lea eax, [eax + edx*2]
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [0x7fd16c], eax
mov dx, word [ecx + 0xc]
add eax, edx
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [0x4bf524], eax
mov dl, byte [ecx + 9]
lea eax, [eax + edx*2]
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [0x4bf530], eax
mov dx, word [ecx + 0xe]
lea ecx, [esp + 0x1c]
add eax, edx
push ecx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
call fcn.00472090
add esp, 0x10
test eax, eax
jne 0x450c27
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
inc esi
mov dword [esp + 0x14], ebx
lea eax, [edx + ecx + 1]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x18], eax
call fcn.00472090
add esp, 8
test eax, eax
je 0x450bf8
mov eax, dword [esp + 0x14]
mov ecx, dword [0x7fd158]
mov dword [0x7fd154], eax
mov dword [0x7fd14c], eax
mov eax, dword [ecx]
shl esi, 4
xor esi, eax
and esi, 0x70
xor esi, eax
mov dword [ecx], esi
mov edi, dword [0x7fd154]
mov eax, edi
lea esi, [edi + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov ecx, 0xb3
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 8]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x22]
and ecx, 0xffff
and eax, 0xffff
add ecx, eax
mov eax, dword [esp + 0x1e]
movsw word es:[edi], word [esi]
mov edx, dword [0x7fd154]
and eax, 0xffff
add ecx, eax
lea edi, [edx + 0x2ce]
lea esi, [edx + 0x2da]
mov edx, ecx
mov dword [0x7fd198], edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
mov ecx, dword [0x7fd154]
mov ebp, dword [0x7fd198]
xor eax, eax
xor edx, edx
mov ax, word [esi + ecx]
add eax, ebp
mov dword [esp + 0x10], eax
mov cl, byte [eax]
cmp cl, bl
je 0x450ce7
xor cl, 0xa5
inc edx
mov byte [eax], cl
mov eax, dword [esp + 0x10]
add eax, edx
mov cl, byte [eax]
cmp cl, bl
jne 0x450cd5
add esi, 2
cmp esi, 0x2ce
jl 0x450cb5
mov edx, dword [0x7fd158]
xor esi, esi
cmp byte [edx + 9], bl
jbe 0x450d6d
mov edi, dword [0x4bf524]
mov ebp, dword [0x4bf530]
xor eax, eax
mov ax, word [edi + esi*2]
add eax, ebp
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cl, byte [eax]
inc eax
sub ecx, 0x80
mov dword [esp + 0x10], eax
cmp ecx, 0x12
ja case.default.0x450d33
xor ebx, ebx
mov bl, byte [ecx + 0x450d98]
jmp dword [ebx*4 + 0x450d78]
inc eax
jmp 0x450d13
add eax, 3
jmp 0x450d13
add eax, 4
jmp 0x450d13
mov cl, byte [eax]
mov byte [esi + 0x7fd1a0], cl
add eax, 5
jmp 0x450d13
add eax, 9
jmp 0x450d13
add eax, 0x19
jmp 0x450d13
add eax, 2
jmp 0x450d13
xor eax, eax
inc esi
mov al, byte [edx + 9]
cmp esi, eax
jl 0x450d0b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret