Function at 0x4507d1
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0xd4
movzx ebp, ax
mov edx, dword [0x8017e4]
cmp dword [edx + ebp*4], 0
je 0x4507fa
mov eax, 1
add esp, 0xd4
pop ebx
pop ebp
pop esi
pop edi
ret
push 0x20
call fcn.00403564
mov edx, dword [0x8017e4]
mov dword [edx + ebp*4], eax
lea eax, [esp + 0xc]
push ebp
push 0x807b60
push eax
call fcn.0046868b
add esp, 0x10
xor eax, eax
mov byte [esp + 0x90], al
mov byte [esp + 0x91], al
cmp byte [0x80166c], 1
je 0x450d49
mov byte [esp + 0xd0], 0
mov byte [esp + 0xd1], 1
mov byte [esp + 0xd2], 3
mov byte [esp + 0xd3], 2
xor ebx, ebx
jmp 0x45085f
inc ebx
movsx edx, bl
cmp edx, 4
jge 0x450d42
movsx edx, byte [esp + edx + 0xd0]
test edx, edx
je 0x450d25
cmp edx, 1
je 0x4508b6
cmp edx, 2
jne 0x45089b
lea eax, [esp + 0x88]
lea edx, [esp + 8]
call fcn.0040d82c
test eax, eax
jne 0x4508ca
jmp 0x45085e
cmp edx, 3
jne 0x45085e
lea eax, [esp + 8]
call fcn.0040d808
movsx eax, al
test eax, eax
jne 0x450d18
jmp 0x45085e
lea eax, [esp + 0x88]
lea edx, [esp + 8]
call fcn.0040db08
test eax, eax
je 0x45085e
test eax, eax
jle 0x450bac
movsx eax, byte [esp + 0x90]
cmp eax, 1
je 0x450d03
cmp eax, 2
je 0x450cee
cmp eax, 3
je 0x450cd9
cmp eax, 4
je 0x450cc4
mov eax, 0xfffffffe
movsx eax, al
test eax, eax
jne 0x450bac
mov esi, dword [esp + 0x8c]
mov dword [esp + 0xc4], esi
mov eax, dword [0x8017e4]
mov eax, dword [eax + ebp*4]
mov ecx, dword [esi + 8]
mov dword [eax], ecx
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov dword [esp + 0xcc], edx
mov ecx, dword [esi + 0x14]
mov ebx, dword [esi + 0x18]
mov dword [esp + 0xc0], ebx
lea ebx, [esi + 0x20]
mov dword [esp + 0xc8], ebx
lea ebx, [esi + eax]
lea esi, [esi + eax + 0x20]
mov dword [esp + 0xbc], esi
mov edi, dword [0x8017e4]
lea esi, [edx + ebx]
lea edx, [ebx + edx + 0x20]
mov ebx, dword [edi + ebp*4]
mov dword [ebx + 0x18], edx
lea edx, [esi + ecx + 0x20]
mov ebx, dword [edi + ebp*4]
mov dword [ebx + 0x1c], edx
test eax, eax
mov edx, dword [esp + 0xcc]
jle 0x4509af
xor esi, esi
mov dword [esp + 0xb8], ebp
mov ebp, dword [esp + 0xc8]
inc ebp
mov edi, esi
and edi, 3
movzx ebx, byte [edi + 0x801410]
xor byte [ebp - 1], bl
inc esi
cmp esi, eax
jl 0x450993
mov ebp, dword [esp + 0xb8]
mov esi, dword [esp + 0xbc]
test edx, edx
jle 0x4509d1
xor ebx, ebx
inc esi
mov edi, ebx
and edi, 3
movzx eax, byte [edi + 0x801410]
xor byte [esi - 1], al
inc ebx
cmp ebx, edx
jl 0x4509bc
mov ebx, dword [0x8017e4]
mov esi, dword [ebx + ebp*4]
mov eax, dword [esi + 0x18]
test ecx, ecx
jle 0x450a01
xor ebx, ebx
inc eax
mov esi, ebx
and esi, 3
movzx edx, byte [esi + 0x801410]
xor byte [eax - 1], dl
inc ebx
cmp ebx, ecx
jl 0x4509e3
mov ebx, dword [0x8017e4]
mov esi, dword [ebx + ebp*4]
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0xc0]
test edx, edx
jle 0x450a31
xor ecx, ecx
mov esi, edx
inc eax
mov ebx, ecx
and ebx, 3
movzx edx, byte [ebx + 0x801410]
xor byte [eax - 1], dl
inc ecx
cmp ecx, esi
jl 0x450a13
mov ebx, dword [0x8017e4]
mov esi, dword [ebx + ebp*4]
mov eax, dword [esi]
add eax, eax
add eax, eax
push eax
call fcn.0046788c
pop ecx
mov edx, dword [ebx + ebp*4]
mov dword [edx + 0x14], eax
mov edi, dword [ebx + ebp*4]
cmp dword [edi], 0
jle 0x450a80
xor edx, edx
mov ecx, dword [esp + 0xbc]
mov esi, dword [esp + 0xc4]
movzx eax, byte [esi + edx*4 + 0x21]
mov ebx, dword [edi + 0x14]
mov dword [ebx + edx*4], ecx
add eax, eax
add eax, eax
lea edi, [eax + eax]
add edi, eax
add ecx, edi
mov ebx, dword [0x8017e4]
mov edi, dword [ebx + ebp*4]
inc edx
cmp edx, dword [edi]
jl 0x450a5c
push 8
call fcn.0046788c
mov edx, dword [ebx + ebp*4]
mov dword [edx + 4], eax
mov eax, dword [ebx + ebp*4]
mov ecx, dword [eax]
add ecx, ecx
add ecx, ecx
push ecx
call fcn.0046788c
mov ebx, dword [ebx + ebp*4]
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov ebx, dword [0x8017e4]
mov eax, dword [ebx + ebp*4]
mov ecx, dword [eax]
add ecx, ecx
add ecx, ecx
push ecx
call fcn.0046788c
mov ebx, dword [ebx + ebp*4]
mov edx, dword [ebx + 4]
mov dword [edx + 4], eax
mov ebx, dword [0x8017e4]
mov eax, dword [ebx + ebp*4]
push dword [eax]
call fcn.0046788c
mov edx, dword [ebx + ebp*4]
mov dword [edx + 8], eax
mov eax, dword [ebx + ebp*4]
push dword [eax]
call fcn.0046788c
mov edx, dword [ebx + ebp*4]
mov dword [edx + 0x10], eax
push 0
call fcn.00462af0
add esp, 0x18
mov eax, dword [0x8017e4]
mov esi, dword [eax + ebp*4]
mov edx, dword [esi + 0x18]
mov eax, dword [esi]
test eax, eax
jle 0x450bb9
xor ebx, ebx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xbc], edx
jmp 0x450b22
mov edx, dword [0x8017e4]
mov esi, dword [edx + ebp*4]
lea ecx, [ebx + ebx]
mov dword [esp + 0xcc], ecx
mov edi, dword [esp + 0xc4]
movzx ecx, byte [edi + ebx*4 + 0x20]
movzx eax, byte [edi + ebx*4 + 0x21]
movzx edx, byte [edi + ebx*4 + 0x22]
mov esi, dword [esi + 4]
mov esi, dword [esi]
mov dword [esi + ebx*4], 0x458c08
mov esi, dword [0x8017e4]
mov esi, dword [esi + ebp*4]
mov esi, dword [esi + 4]
mov edi, dword [esi + 4]
mov esi, dword [ecx*4 + 0x7a9c20]
mov dword [edi + ebx*4], esi
mov esi, dword [0x8017e4]
mov esi, dword [esi + ebp*4]
mov esi, dword [esi + 0x10]
mov byte [ebx + esi], al
mov esi, dword [0x8017e4]
mov esi, dword [esi + ebp*4]
mov esi, dword [esi + 8]
mov byte [ebx + esi], dl
cmp ecx, 0x2b
mov edx, dword [esp + 0xcc]
je 0x450c62
cmp ecx, 0x2c
je 0x450bcd
inc ebx
mov edx, dword [esp + 0xc8]
cmp ebx, edx
jl 0x450b19
jmp 0x450bb9
xor eax, eax
add esp, 0xd4
pop ebx
pop ebp
pop esi
pop edi
ret
push 1
call fcn.00462af0
pop ecx
mov eax, ebp
call fcn.00450e74
jmp 0x4507ea
mov ecx, dword [0x8017e4]
mov esi, dword [ecx + ebp*4]
mov edi, dword [esi + 0x14]
mov edi, dword [edi + edx*2]
test eax, eax
jle 0x450b9a
add eax, eax
add eax, eax
lea esi, [eax + eax]
add esi, eax
add esi, edi
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xb8], ebp
mov ebx, dword [esp + 0xbc]
movzx eax, byte [edi]
test eax, eax
jne 0x450c48
xor eax, eax
mov word [edi + 2], ax
mov edx, dword [edi + 8]
mov byte [0x801a00], al
add edx, ebx
push dword [edi + 4]
push edx
push 0x5df080
call dword [0x8019b4]
add esp, 0xc
mov edx, eax
movsx ecx, byte [0x801a00]
test ecx, ecx
jne 0x450c48
mov eax, 0x5df080
call fcn.00450d78
test eax, eax
jl 0x450c48
mov word [edi + 2], ax
add edi, 0xc
cmp edi, esi
jb 0x450c00
mov ebx, dword [esp + 0xc0]
mov ebp, dword [esp + 0xb8]
jmp 0x450b9a
mov esi, dword [0x8017e4]
mov ecx, dword [esi + ebp*4]
mov edi, dword [ecx + 0x14]
mov esi, dword [edi + edx*2]
mov edx, dword [esi + 8]
mov byte [0x801a00], 0
add edx, dword [esp + 0xbc]
push dword [esi + 4]
push edx
push 0x5df480
call dword [0x8019b4]
add esp, 0xc
mov edx, eax
movsx ecx, byte [0x801a00]
test ecx, ecx
jne 0x450b9a
mov eax, 0x5df480
call fcn.00450d78
test eax, eax
jl 0x450b9a
add eax, 0x10000000
mov dword [esi + 4], eax
jmp 0x450b9a
lea eax, [esp + 0x88]
lea edx, [esp + 8]
call fcn.0043e034
jmp 0x450903
lea eax, [esp + 0x88]
lea edx, [esp + 8]
call fcn.0043e0b4
jmp 0x450903
lea eax, [esp + 0x88]
lea edx, [esp + 8]
call fcn.0043e12c
jmp 0x450903
lea eax, [esp + 0x88]
lea edx, [esp + 8]
call fcn.0043ea1c
jmp 0x450903
mov byte [esp + 0x90], 1
jmp 0x4508ca
lea eax, [esp + 0x88]
lea edx, [esp + 8]
call fcn.0040db60
test eax, eax
jne 0x4508ca
jmp 0x45085e
xor eax, eax
jmp 0x4508ca
mov byte [esp + 0xd0], 0
mov byte [esp + 0xd1], 1
mov byte [esp + 0xd2], 2
mov byte [esp + 0xd3], 3
jmp 0x45085a