Function at 0x4224b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [esp + 0x80]
mov dword [esp + 4], 0xfff0b9d7
mov dword [esp], eax
call sym.fennel_bin.exe_lua_touserdata
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov ebx, eax
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
xor ebp, dword [eax + 0x10]
xor ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x30], ebp
lea ebp, [edi + edi*4]
xor eax, esi
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x1c]
xor eax, edi
mov dword [esp + 0x14], eax
mov eax, 5
mul esi
add edx, ebp
mov ebp, eax
shld eax, edx, 7
shld edx, ebp, 7
lea ebp, [edx + edx*8]
mov dword [esp + 0x20], ebp
mov ebp, 9
mul ebp
mov ebp, dword [ebx]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
xor edx, dword [ebx + 4]
xor ebp, eax
mov dword [ebx + 4], edx
mov dword [ebx], ebp
mov ebp, dword [esp + 0x30]
mov edx, ebp
xor edx, esi
mov dword [ebx + 8], edx
mov edx, edi
shld edi, esi, 0x11
shl esi, 0x11
xor edx, ecx
xor ecx, edi
mov eax, esi
mov esi, ebp
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x14]
xor esi, eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x10], esi
mov edi, eax
shrd eax, edx, 0x13
shrd edx, edi, 0x13
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call sym.fennel_bin.exe_lua_gettop
mov ebp, eax
cmp eax, 1
je 0x4225c4
cmp eax, 2
je 0x422660
test eax, eax
je 0x422603
mov eax, dword [esp + 0x80]
mov dword [esp + 4], str.wrong_number_of_arguments
mov dword [esp], eax
call sym.fennel_bin.exe_luaL_error
mov ebp, eax
add esp, 0x6c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x80]
mov dword [esp + 4], 1
mov dword [esp], eax
call sym.fennel_bin.exe_luaL_checkinteger
mov edi, edx
or edx, eax
mov esi, eax
je 0x422950
mov dword [esp + 0x40], 1
mov ecx, 1
xor ebp, ebp
mov dword [esp + 0x44], 0
jmp 0x4226a4
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
shrd eax, edx, 0xb
shr edx, 0xb
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
fild qword [esp + 0x10]
test edx, edx
js 0x422940
mov eax, dword [esp + 0x80]
fstp qword [esp + 0x58]
mov ebp, 1
fld qword [esp + 0x58]
fmul dword [0x4731f8]
mov dword [esp], eax
fstp qword [esp + 4]
call sym.fennel_bin.exe_lua_pushnumber
add esp, 0x6c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x80]
mov dword [esp + 4], 1
mov dword [esp], eax
call sym.fennel_bin.exe_luaL_checkinteger
mov dword [esp + 4], 2
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x80]
mov ebp, edx
mov dword [esp], eax
call sym.fennel_bin.exe_luaL_checkinteger
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x44], ebp
mov esi, eax
mov edi, edx
mov dword [esp + 0x40], ecx
cmp esi, ecx
mov eax, edi
sbb eax, ebp
jl 0x422974
sub esi, dword [esp + 0x40]
sbb edi, dword [esp + 0x44]
mov ebp, edi
mov eax, esi
mov dword [esp + 0x20], esi
add eax, 1
mov edx, ebp
mov dword [esp + 0x24], ebp
adc edx, 0
and eax, esi
mov ecx, edx
mov edx, ecx
and edx, dword [esp + 0x24]
or edx, eax
jne 0x422730
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ebp, eax
mov eax, edx
and ebp, ecx
and eax, ebx
mov esi, ebp
mov edi, eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebp, 1
add eax, esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x80]
adc edx, edi
mov dword [esp + 8], edx
mov dword [esp], eax
call sym.fennel_bin.exe_lua_pushinteger
add esp, 0x6c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
shrd esi, edi, 1
shr edi, 1
or edi, dword [esp + 0x24]
or ecx, esi
mov edx, edi
mov esi, ecx
shrd esi, edi, 2
shr edi, 2
or ecx, esi
or edx, edi
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x14]
shrd eax, edx, 4
shr edx, 4
or ecx, eax
mov esi, ecx
mov ecx, dword [esp + 0x14]
or ecx, edx
mov edx, esi
shrd edx, ecx, 8
mov edi, ecx
shr ecx, 8
mov ebp, edx
mov edx, ecx
or ebp, esi
or edx, edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov esi, edx
mov eax, edx
mov edx, dword [esp + 0x28]
mov edi, ecx
shrd esi, ecx, 0x10
mov ebp, ecx
mov ecx, dword [esp + 0x2c]
shr edi, 0x10
or eax, esi
or ebp, edi
or eax, ebp
mov dword [esp + 0x4c], ebp
mov ebp, edx
mov edx, dword [esp + 0x4c]
and ebp, eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
and edx, ecx
mov esi, ebp
mov edi, edx
mov edx, dword [esp + 0x24]
cmp eax, ebp
mov eax, edx
sbb eax, edi
jae 0x4226f6
mov eax, dword [ebx]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x10], esi
mov ecx, dword [ebx + 0x14]
mov ebp, dword [ebx + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [ebx + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x54], ebx
mov ebx, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
lea esi, [esi]
nop
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
xor edi, ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x48], edi
mov edi, ecx
xor ebp, esi
xor edi, eax
mov dword [esp + 0x18], edi
mov edi, ebx
mov ecx, dword [esp + 0x18]
xor edi, edx
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x48]
xor esi, ecx
mov ecx, eax
mov ebx, dword [esp + 0x1c]
xor dword [esp + 0x34], ebx
mov ebx, ebp
shl ecx, 0x11
xor ebx, eax
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x18]
xor ebp, ecx
mov dword [esp + 0x38], ebx
mov ebx, edi
xor ebx, edx
mov ecx, esi
mov dword [esp + 0x48], ebx
mov ebx, edx
shld ebx, eax, 0x11
xor ebx, edi
mov edi, dword [esp + 0x1c]
shrd esi, edi, 0x13
shrd edi, ecx, 0x13
lea ecx, [edx + edx*4]
mov dword [esp + 0x28], esi
mov esi, 5
mul esi
mov esi, 9
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x24]
add edx, ecx
mov ecx, eax
shld eax, edx, 7
shld edx, ecx, 7
lea ecx, [edx + edx*8]
mul esi
mov esi, dword [esp + 0x20]
add edx, ecx
mov ecx, dword [esp + 0x50]
and ecx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], ecx
and eax, edx
cmp esi, ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x14], eax
sbb edi, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
jb 0x422830
mov edx, ebx
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov dword [ebx], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x14], edx
mov edx, dword [esp + 0x2c]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x10], ebp
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x18], eax
jmp 0x4226f6
fadd dword [0x4731f4]
jmp 0x422626
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym.fennel_bin.exe_lua_pushinteger
jmp 0x4225ba
mov eax, dword [esp + 0x80]
mov dword [esp + 8], str.interval_is_empty
mov dword [esp + 4], 1
mov dword [esp], eax
call sym.fennel_bin.exe_luaL_argerror
jmp 0x4226b0