Function at 0x457310
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x9c78
call fcn.00481410
mov eax, dword [0x4bacc0]
xor eax, esp
mov dword [esp + 0x9c74], eax
push ebx
mov ebx, dword [esp + 0x9c80]
mov eax, dword [ebx + 0x258]
cmp eax, 0xffffffff
push esi
lea esi, [ebx + 0x10304]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
je 0x4579ac
cmp byte [eax], 0
je 0x4579ac
xor eax, eax
push ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov byte [esp + 0x20], al
mov byte [esp + 0xf], al
mov dword [esp + 0x1c], eax
push edi
jmp 0x457380
push 0x9c40
lea eax, [esp + 0x48]
push 0
push eax
mov edi, esi
call fcn.00481440
mov ebp, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x54]
push edx
push 0x7f
push 0
push ebp
push ebx
call fcn.00454290
add esp, 0x24
test eax, eax
jne 0x457776
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x48]
push 0x49e59c
push ecx
call fcn.0048108c
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
cmp eax, 0x69
setne bl
sub bl, 1
mov byte [esp + edx + 0x40], al
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1f]
lea ecx, [esp + 0x24]
and ebx, 0x80
mov byte [esp + 0x38], bl
mov esi, dword [esp + 0x38]
push esi
push eax
push 0x80
push ebp
push ecx
push edx
call fcn.00455e70
mov edx, dword [esp + 0x38]
push esi
lea eax, [esp + 0x3b]
push eax
push 0x81
push ebp
lea ecx, [esp + 0x4c]
push ecx
push edx
call fcn.00455e70
mov edx, dword [esp + 0x50]
push esi
lea eax, [esp + 0x53]
push eax
push 0x82
push ebp
lea ecx, [esp + 0x64]
push ecx
push edx
call fcn.00455e70
mov edx, dword [esp + 0x68]
add esp, 0x54
push esi
lea eax, [esp + 0x17]
push eax
push 0x83
push ebp
lea ecx, [esp + 0x28]
push ecx
push edx
call fcn.00455e70
mov edx, dword [esp + 0x2c]
push esi
lea eax, [esp + 0x2f]
push eax
push 0x84
push ebp
lea ecx, [esp + 0x40]
push ecx
push edx
call fcn.00455e70
push esi
lea eax, [esp + 0x47]
push eax
push 0x87
push ebp
mov ebp, dword [esp + 0x54]
lea ecx, [esp + 0x58]
push ecx
push ebp
call fcn.00455e70
mov esi, dword [esp + 0x60]
mov al, byte [esp + 0x5b]
mov byte [esi], 0x8f
add esp, 0x48
mov byte [esi + 1], 0
mov dl, byte [esp + 0x24]
mov byte [esi + 2], al
shl dl, 4
add al, 1
or dl, bl
mov byte [esi + 3], dl
cmp dword [esp + 0x28], 0x69
mov byte [esp + 0x13], al
setne al
sub al, 1
and eax, 0x80
mov byte [esi + 4], al
mov byte [esi + 5], 1
mov cl, byte [ebp + 0x1260]
mov byte [esi + 6], cl
xor eax, eax
cmp edi, esi
mov byte [esi + 7], 0
mov byte [esi + 8], 0
je 0x457506
mov ecx, edi
lea esp, [esp]
cmp byte [ecx], 0x80
jne 0x4574f9
add byte [esi + 8], 1
add eax, 1
lea ecx, [eax + eax*8]
lea ecx, [edi + ecx*2]
cmp ecx, esi
jne 0x4574f0
xor eax, eax
cmp edi, esi
mov byte [esi + 9], 0
je 0x457528
mov ecx, edi
cmp byte [ecx], 0x81
jne 0x45751b
add byte [esi + 9], 1
add eax, 1
lea ecx, [eax + eax*8]
lea ecx, [edi + ecx*2]
cmp ecx, esi
jne 0x457512
xor eax, eax
cmp edi, esi
mov byte [esi + 0xa], 0
je 0x45754a
mov ecx, edi
cmp byte [ecx], 0x82
jne 0x45753d
add byte [esi + 0xa], 1
add eax, 1
lea ecx, [eax + eax*8]
lea ecx, [edi + ecx*2]
cmp ecx, esi
jne 0x457534
xor eax, eax
cmp edi, esi
mov byte [esi + 0xb], 0
je 0x45756c
mov ecx, edi
cmp byte [ecx], 0x83
jne 0x45755f
add byte [esi + 0xb], 1
add eax, 1
lea ecx, [eax + eax*8]
lea ecx, [edi + ecx*2]
cmp ecx, esi
jne 0x457556
xor eax, eax
cmp edi, esi
mov byte [esi + 0xc], 0
je 0x45758e
mov ecx, edi
cmp byte [ecx], 0x84
jne 0x457581
add byte [esi + 0xc], 1
add eax, 1
lea ecx, [eax + eax*8]
lea ecx, [edi + ecx*2]
cmp ecx, esi
jne 0x457578
xor eax, eax
cmp edi, esi
mov byte [esi + 0xd], 0
je 0x4575b6
mov ecx, edi
lea ebx, [ebx]
cmp byte [ecx], 0x85
jne 0x4575a9
add byte [esi + 0xd], 1
add eax, 1
lea ecx, [eax + eax*8]
lea ecx, [edi + ecx*2]
cmp ecx, esi
jne 0x4575a0
xor eax, eax
cmp edi, esi
mov byte [esi + 0xe], 0
je 0x4575d8
mov ecx, edi
cmp byte [ecx], 0x86
jne 0x4575cb
add byte [esi + 0xe], 1
add eax, 1
lea ecx, [eax + eax*8]
lea ecx, [edi + ecx*2]
cmp ecx, esi
jne 0x4575c2
xor eax, eax
cmp edi, esi
mov byte [esi + 0xf], 0
je 0x4575fa
mov ecx, edi
cmp byte [ecx], 0x87
jne 0x4575ed
add byte [esi + 0xf], 1
add eax, 1
lea ecx, [eax + eax*8]
lea ecx, [edi + ecx*2]
cmp ecx, esi
jne 0x4575e4
mov al, byte [esp + 0x13]
add esi, 0x12
mov byte [esi], 0x8f
mov byte [esi + 1], 1
mov byte [esi + 2], al
add al, 1
mov byte [esp + 0x13], al
xor eax, eax
cmp edi, esi
mov byte [esi + 3], dl
mov byte [esi + 4], 0
je 0x457636
mov ecx, edi
cmp byte [ecx], 0x88
jne 0x457629
add byte [esi + 4], 1
add eax, 1
lea ecx, [eax + eax*8]
lea ecx, [edi + ecx*2]
cmp ecx, esi
jne 0x457620
xor eax, eax
cmp edi, esi
mov byte [esi + 5], 0
je 0x457658
mov ecx, edi
cmp byte [ecx], 0x89
jne 0x45764b
add byte [esi + 5], 1
add eax, 1
lea ecx, [eax + eax*8]
lea ecx, [edi + ecx*2]
cmp ecx, esi
jne 0x457642
xor eax, eax
cmp edi, esi
mov byte [esi + 6], 0
je 0x45767a
mov ecx, edi
cmp byte [ecx], 0x8a
jne 0x45766d
add byte [esi + 6], 1
add eax, 1
lea ecx, [eax + eax*8]
lea ecx, [edi + ecx*2]
cmp ecx, esi
jne 0x457664
xor eax, eax
cmp edi, esi
mov byte [esi + 7], 0
je 0x45769c
mov ecx, edi
cmp byte [ecx], 0x8b
jne 0x45768f
add byte [esi + 7], 1
add eax, 1
lea ecx, [eax + eax*8]
lea ecx, [edi + ecx*2]
cmp ecx, esi
jne 0x457686
xor eax, eax
cmp edi, esi
mov byte [esi + 8], 0
je 0x4576be
mov ecx, edi
cmp byte [ecx], 0x8c
jne 0x4576b1
add byte [esi + 8], 1
add eax, 1
lea ecx, [eax + eax*8]
lea ecx, [edi + ecx*2]
cmp ecx, esi
jne 0x4576a8
xor eax, eax
cmp edi, esi
mov byte [esi + 9], 0
je 0x4576e6
mov ecx, edi
lea ebx, [ebx]
cmp byte [ecx], 0x8d
jne 0x4576d9
add byte [esi + 9], 1
add eax, 1
lea ecx, [eax + eax*8]
lea ecx, [edi + ecx*2]
cmp ecx, esi
jne 0x4576d0
xor eax, eax
cmp edi, esi
mov byte [esi + 0xa], 0
je 0x457708
mov ecx, edi
cmp byte [ecx], 0x8e
jne 0x4576fb
add byte [esi + 0xa], 1
add eax, 1
lea ecx, [eax + eax*8]
lea ecx, [edi + ecx*2]
cmp ecx, esi
jne 0x4576f2
mov al, byte [esp + 0x13]
mov byte [esi + 0xb], 3
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
mov byte [esi + 0xe], 0
mov byte [esi + 0xf], 0
add esi, 0x12
mov byte [esi], 0x8f
mov byte [esi + 1], 2
mov byte [esi + 2], al
mov byte [esi + 3], dl
mov edx, dword [esp + 0x20]
mov byte [esi + 4], 0
mov byte [esi + 5], 0
mov byte [esi + 6], 0
mov byte [esi + 7], 0
mov byte [esi + 8], 0
mov byte [esi + 9], 0
mov byte [esi + 0xa], 0
mov byte [esi + 0xb], 0
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
mov byte [esi + 0xe], 0
mov byte [esi + 0xf], 0
add esi, 0x12
mov dword [esp + 0x18], esi
mov byte [esp + edx + 0x3c], al
mov byte [esp + 0x13], 0
mov ebx, ebp
mov al, byte [esp + 0x24]
add dword [esp + 0x20], 1
add al, 1
cmp al, 8
mov byte [esp + 0x24], al
jb 0x457380
lea edi, [ebx + 0x10304]
cmp edi, esi
je 0x457984
jmp 0x4577a0
mov bl, byte [edi]
cmp bl, 0x8f
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov byte [esp + 0x1f], bl
jne 0x457822
mov bl, byte [edi + 1]
cmp bl, 1
jne 0x4577dc
mov ebx, dword [esp + 0x3c]
mov byte [edi + 0xc], bl
mov byte [edi + 0xd], bh
movzx ebx, byte [esp + 0x3e]
mov byte [edi + 0xe], bl
movzx ebx, byte [esp + 0x3f]
mov byte [edi + 0xf], bl
mov bl, byte [edi + 1]
cmp bl, 2
jne 0x457822
mov byte [edi + 4], dl
mov byte [edi + 5], dh
movzx edx, byte [esp + 0x42]
mov byte [edi + 6], dl
movzx edx, byte [esp + 0x43]
mov byte [edi + 8], cl
mov byte [edi + 9], ch
movzx ecx, byte [esp + 0x36]
mov byte [edi + 7], dl
movzx edx, byte [esp + 0x37]
mov byte [edi + 0xa], cl
movzx ecx, byte [esp + 0x3b]
mov byte [edi + 0xc], al
mov al, byte [esp + 0x3a]
mov byte [edi + 0xb], dl
mov byte [edi + 0xd], ah
mov byte [edi + 0xe], al
mov byte [edi + 0xf], cl
movzx edx, byte [esp + 0x1f]
movzx eax, word [edx*2 + 0x4b9420]
movzx edx, byte [edi + 1]
mov ecx, eax
shr ecx, 8
xor ecx, edx
xor edx, edx
mov dh, al
and ecx, 0xff
lea ebp, [edi + 5]
xor dx, word [ecx*2 + 0x4b9420]
movzx eax, dx
movzx edx, byte [edi + 2]
mov ecx, eax
shr ecx, 8
xor ecx, edx
xor edx, edx
mov dh, al
and ecx, 0xff
xor dx, word [ecx*2 + 0x4b9420]
movzx eax, dx
movzx edx, byte [edi + 3]
mov ecx, eax
shr ecx, 8
xor ecx, edx
xor edx, edx
mov dh, al
and ecx, 0xff
xor dx, word [ecx*2 + 0x4b9420]
mov ecx, 2
movzx eax, dx
movzx edx, byte [ebp - 1]
mov ebx, eax
shr ebx, 8
xor edx, ebx
xor ebx, ebx
mov bh, al
and edx, 0xff
add ebp, 6
xor bx, word [edx*2 + 0x4b9420]
movzx eax, bx
movzx ebx, byte [ebp - 6]
mov edx, eax
shr edx, 8
xor edx, ebx
xor ebx, ebx
mov bh, al
and edx, 0xff
xor bx, word [edx*2 + 0x4b9420]
movzx edx, byte [ebp - 5]
movzx eax, bx
mov ebx, eax
shr ebx, 8
xor edx, ebx
xor ebx, ebx
mov bh, al
and edx, 0xff
xor bx, word [edx*2 + 0x4b9420]
movzx edx, byte [ebp - 4]
movzx eax, bx
mov ebx, eax
shr ebx, 8
xor edx, ebx
xor ebx, ebx
mov bh, al
and edx, 0xff
xor bx, word [edx*2 + 0x4b9420]
movzx edx, byte [ebp - 3]
movzx eax, bx
mov ebx, eax
shr ebx, 8
xor edx, ebx
xor ebx, ebx
mov bh, al
and edx, 0xff
xor bx, word [edx*2 + 0x4b9420]
movzx edx, byte [ebp - 2]
movzx eax, bx
mov ebx, eax
shr ebx, 8
xor edx, ebx
xor ebx, ebx
mov bh, al
and edx, 0xff
xor bx, word [edx*2 + 0x4b9420]
sub ecx, 1
movzx eax, bx
jne 0x457897
movzx eax, ax
not eax
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004529e0
add edi, 0x12
add esp, 8
cmp edi, esi
jne 0x4577a0
mov ebx, dword [esp + 0x14]
sub esi, ebx
sub esi, 0x10302
lea edx, [ebx + 0x10300]
push esi
push edx
call fcn.004529e0
add esp, 8
pop edi
mov byte [ebx + 0x10303], 0
mov byte [ebx + 0x10302], 0
pop ebp
mov ecx, dword [esp + 0x9c7c]
pop esi
pop ebx
xor ecx, esp
call fcn.004810ab
add esp, 0x9c78
ret